plantManage.vue
5.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<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>