plantManage.vue 5.2 KB
<template>
	<view>
		<!-- 搜索区域 -->
		<view class="searchWrap">
			<view class="searchBg">
				<image src="../../../static/image/index/search@2x.png" mode=""></image>
				搜索
			</view>
		</view>
		<view class="u-m-p-50" style="background: #fff;">
			<view class="u-demo-area u-flex u-row-left">
				<u-dropdown :close-on-click-mask="mask" ref="uDropdown" :activeColor="activeColor" :borderBottom="borderBottom">
					<u-dropdown-item @change="changeDrop" v-model="value1" title="企业类型" :options="options1"></u-dropdown-item>
					<u-dropdown-item @change="changeDrop" v-model="value3" title="厂房状态" :options="options3"></u-dropdown-item>
					<u-dropdown-item @change="changeDrop" v-model="value2" title="位置" :options="options2"></u-dropdown-item>
				</u-dropdown>
			</view>
		</view>
		<view class="productList">
			<view class="productItem">
				<view class="plantInfo">
					<view class="productRight">
						<image src="../../../static/image/del/ic_90@2x.png" mode=""></image>
					</view>
					<view class="productLeft">
						<view class="productName">
							华鑫产业园B座3层102号华鑫产业园B座3层102号
						</view>
						<view class="plantStatus active">
							状态:已租
						</view>
						<view class="productDesc">
							公司名称:朗鑫7智能科技有限公司朗鑫7智能科技有限公司
						</view>
					</view>
				</view>
				<view class="plantAddress">
					区域位置:辽宁省辖市,别称滨城,是副省级城市、计划单是副省级城市、计划单
				</view>
			</view>
			<view class="productItem">
				<view class="plantInfo">
					<view class="productRight">
						<image src="../../../static/image/del/ic_90@2x.png" mode=""></image>
					</view>
					<view class="productLeft">
						<view class="productName">
							华鑫产业园B座3层102号华鑫产业园B座3层102号
						</view>
						<view class="plantStatus">
							状态:未租
						</view>
						<view class="productDesc">
							公司名称:朗鑫7智能科技有限公司朗鑫7智能科技有限公司
						</view>
					</view>
				</view>
				<view class="plantAddress">
					区域位置:辽宁省辖市,别称滨城,是副省级城市、计划单是副省级城市、计划单
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
	// ================================================下拉选项 开始================================================
				current: 0,
				value1: '',
				value2: '2',
				value3: '',
				mask: true,
				options1: [{
						label: '企业类型1',
						value: 1,
					},
					{
						label: '企业类型2',
						value: 2,
					},
					{
						label: '企业类型3',
						value: 3,
					}
				],
				options2: [{
						label: '位置1',
						value: 1,
					},
					{
						label: '位置2',
						value: 2,
					},
					{
						label: '位置3',
						value: 3,
					}
				],
				options3: [{
						label: '状态1',
						value: 1,
					},
					{
						label: '状态2',
						value: 2,
					},
					{
						label: '状态3',
						value: 3,
					}
				],
				borderBottom: false,
				activeColor: '#2979ff',
	// ================================================下拉选项 结束================================================
			}
		},
		methods:{
			changeDrop(index) {
				this.$u.toast(`点击了第${index}项`);
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: $uni-bg-color-hui;
	}
	.searchWrap{
		background: $uni-bg-bai-color;
		height: 108rpx;
		padding: 0 32rpx;
		display: flex;
		align-items: center;
		border-bottom: 2rpx solid $uni-bg-color-hui;
		.searchBg{
			flex: 1;
			height: 80rpx;
			background: $uni-bg-color-hui;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 20rpx;
			color: $uni-text-color-hui;
			font-size: $uni-font-size-28;
			image{width: $uni-img-size-32;height: $uni-img-size-32;margin-right: 10rpx;}
		}
	}
	.productList{	
		margin-top:32rpx;
		.productItem{
			padding: 32rpx;
			background: $uni-bg-bai-color;
			border-bottom: 1rpx solid #ebedf0;
			.plantInfo{
				display: flex;
				.productLeft{
					flex: 1;
					.productName{
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-line-clamp:1;
						-webkit-box-orient:vertical;
						font-size: $uni-font-size-36;
					}
					.plantStatus{
						color: #fa700c;
					}
					.plantStatus.active{
						color: $uni-bg-main-color;
					}
					.productDesc{
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-line-clamp:1;
						-webkit-box-orient:vertical;
						padding-top: 28rpx;
						color: $uni-text-color-hui;
						font-size: $uni-font-size-28;
					}
				}
				.productRight{
					width: 244rpx;
					display: flex;
					justify-content: flex-start;
					image{width: 224rpx;height: 180rpx;border-radius: 20rpx;}
				}
			}
			.plantAddress{
				margin-top: 24rpx;
				background: $uni-bg-color-hui;
				padding: 0 14rpx;
				line-height: 60rpx;
				font-size: $uni-font-size-24;
				color: $uni-text-color-hui;
				border-radius: 8rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp:1;
				-webkit-box-orient:vertical;
			}
		}
	}
</style>