Blame view

lvdao-miniapp/pages/field/field.vue 5.73 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
  <template>
  	<view class="page">
  		<!-- 搜索 -->
  		<view class="head-search">
  			
f692f3a5   wesley88   1
6
  	<!-- 		<view class="search">
e5b57447   杨鑫   '分包问卷'
7
8
  				<u-search bg-color="#fff" placeholder="请输入" v-model="query.venueName" :show-action="false" @search="search" @clear="clearGet"></u-search>
  				<u-button type="success" @click="search">搜索</u-button>
f692f3a5   wesley88   1
9
  			</view> -->
e3789a75   杨鑫   '最新'
10
11
  			<view style="background-color: #FFFFFF;border-radius: 18rpx;border: 2rpx solid #E8E8E8;overflow: hidden;width: 100%;" >
  				<u-search :action-style="{'background':'#19be6b','color':'#fff','height':'32px','line-height':'32px','border-radius':'18rpx'}" bg-color="#fff" placeholder="请输入关键词" v-model="query.venueName" action-text="搜索" @clear="search" @search="search" @custom="search"></u-search>
3f535f30   杨鑫   '初始'
12
13
14
  			</view>
  		</view>
  		<view class="screen-list">
e5b57447   杨鑫   '分包问卷'
15
  			<view class="list"  @click="show = true">
3f535f30   杨鑫   '初始'
16
17
  				<text>区域</text>
  				<image :src="$imgUrl('/down.png')"></image>
e5b57447   杨鑫   '分包问卷'
18
  				<u-select v-model="show" :list="areList" @confirm="(v) => {queryChange('district', v)}"></u-select>
3f535f30   杨鑫   '初始'
19
  			</view>
e5b57447   杨鑫   '分包问卷'
20
  		<!-- 	<view class="list">
3f535f30   杨鑫   '初始'
21
22
23
24
25
26
27
28
29
30
  				<text>租金</text>
  				<image :src="$imgUrl('/down.png')"></image>
  			</view>
  			<view class="list">
  				<text>默认排序</text>
  				<image :src="$imgUrl('/down.png')"></image>
  			</view>
  			<view class="list">
  				<text>筛选</text>
  				<image :src="$imgUrl('/down.png')"></image>
e5b57447   杨鑫   '分包问卷'
31
  			</view> -->
3f535f30   杨鑫   '初始'
32
33
  		</view>
  		<!-- 订单列表 -->
e5b57447   杨鑫   '分包问卷'
34
  		<!-- <view class="goods-data">
3f535f30   杨鑫   '初始'
35
  			<view class="goods-list">
e5b57447   杨鑫   '分包问卷'
36
  				<view class="list" v-for="(item,index) in 10" :key="index">
3f535f30   杨鑫   '初始'
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
  					<view class="thumb">
  						<image  :src="$imgUrl('/img/3.jpg')"  mode=""></image>
  					</view>
  					<view class="item">
  						<view class="title">
  							<text class="one-omit">这里有标题这里有标题这里有标题这里有标题这里有标题这里有标题这里有标题</text>
  						</view>
  						<view class="tag">
  							<text>标签标签</text>
  							<text>标签标签</text>
  						</view>
  						<view class="introduce">
  							<image  :src="$imgUrl('/kefu.png')"></image>
  							<text class="one-omit">这里有地址这里有地址这里有地址这里有地址</text>
  						</view>
  						<view class="like-goods">
  							<view class="retail-price">
  								<text>租金:</text>
  								<text class="min">¥</text>
  								<text class="max">1067</text>
  								<text class="min">/月</text>
  								<text class="line"></text>
  								<text>面积:</text>
  								<text class="max">81</text>
  								<text class="min">/m²</text>
  							</view>
  						</view>
  					</view>
  				</view>
  			</view>
e5b57447   杨鑫   '分包问卷'
67
68
  		</view> -->
  		<view class="goods-data">
d64cd58f   wesley88   上传验收小程序
69
  			<view v-if="tableData.length == 0" style="padding: 50rpx 0;text-align: center;">暂无数据</view>
e5b57447   杨鑫   '分包问卷'
70
71
72
  			<view class="goods-list">
  				<view class="list" v-for="(item,index) in tableData" :key="index" @click="reconciliationdetail(item)">
  					<view class="thumb">
440bccda   wesley88   1
73
  						<u-image width="25vw" height="25vw"  border-radius="20" :src="item.displayImage.length>0?imgurl +item.displayImage.split(',')[0]:'' " ></u-image>
e5b57447   杨鑫   '分包问卷'
74
75
76
77
78
79
  						<!-- <image :src="item.displayMainImage" mode=""></image> -->
  					</view>
  					<view class="item">
  						<view class="title">
  							<text class="one-omit">{{item.venueName}}</text>
  						</view>
440bccda   wesley88   1
80
81
82
  		<!-- 				<view class="tag">
  							<text>标签标签</text>
  							<text>标签标签</text>
e5b57447   杨鑫   '分包问卷'
83
84
85
86
  						</view>
  						<view class="introduce">
  							<image  :src="$imgUrl('/kefu.png')"></image>
  							<text class="one-omit">{{item.detailedLocation}}</text>
440bccda   wesley88   1
87
88
89
  						</view> -->
  						<view class="tag">
  							<text>{{item.venueType}}</text>
e5b57447   杨鑫   '分包问卷'
90
91
92
  						</view>
  						<view class="like-goods">
  							<view class="retail-price">
f1b706dd   杨鑫   '最新'
93
94
95
96
  								<text>所属区域:</text>
  								<text class="max">{{item.district}}</text>
  							</view>
  							<view class="retail-price">
e5b57447   杨鑫   '分包问卷'
97
98
99
100
101
102
103
104
  								<text>面积:</text>
  								<text class="max">{{item.actualArea}}</text>
  								<text class="min">/m²</text>
  							</view>
  						</view>
  					</view>
  				</view>
  			</view>
3f535f30   杨鑫   '初始'
105
106
107
108
109
110
111
112
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
2067568a   杨鑫   '租金缴费'
113
  				$img: this.$root.$img,
e5b57447   杨鑫   '分包问卷'
114
115
  				query:{
  					venueName:'',
0fd8b750   杨鑫   '最新落地1'
116
  					pageNumber: 0,
e5b57447   杨鑫   '分包问卷'
117
  					pageSize: 10,
0fd8b750   杨鑫   '最新落地1'
118
  					publishStatus:2
e5b57447   杨鑫   '分包问卷'
119
120
  				},
  				pageindex: {
0fd8b750   杨鑫   '最新落地1'
121
  					pageNumber: 0,
e5b57447   杨鑫   '分包问卷'
122
  					pageSize: 10,
0fd8b750   杨鑫   '最新落地1'
123
124
  					publishStatus:'1',
  					publishStatus:2
e5b57447   杨鑫   '分包问卷'
125
126
127
128
129
130
131
132
133
134
135
136
  				},
  				areList: [
  					{value: '武侯区', label: '武侯区'},
  					{value: '锦江区', label: '锦江区'},
  					{value: '青羊区', label: '青羊区'},
  					{value: '金牛区', label: '金牛区'},
  					{value: '双流区', label: '双流区'},
  					{value: '郫都区', label: '郫都区'},
  					{value: '龙泉驿区', label: '龙泉驿区'},
  					{value: '温江区', label: '温江区'},
  				], // 区域列表
  				tableData: [],
440bccda   wesley88   1
137
138
  				show :false,
  				imgurl:''
3f535f30   杨鑫   '初始'
139
140
  			};
  		},
e5b57447   杨鑫   '分包问卷'
141
  		mounted() {
440bccda   wesley88   1
142
  			this.imgurl = this.$img
e5b57447   杨鑫   '分包问卷'
143
144
145
  			this.getAll()
  		},
  	
3f535f30   杨鑫   '初始'
146
  		methods: {
e5b57447   杨鑫   '分包问卷'
147
148
149
150
151
152
153
154
155
156
157
158
159
  			//请求列表数据
  			getAll() {
  				let query = Object.assign(this.pageindex);
  				this.$http.sendRequest('/cereBasicInformationVenue/queryByPage', 'POST', query, 1).then(res => {
  					//成功回调
  					this.tableData = res.data.data.content
  				}).catch(err => {
  					console.log(err)
  					//请求失败
  				})
  			},
  			reconciliationdetail(item) {
  				let items = JSON.stringify(item)
3f535f30   杨鑫   '初始'
160
  				uni.navigateTo({
e5b57447   杨鑫   '分包问卷'
161
162
163
164
165
166
167
168
169
170
171
172
173
  					url: `/pages/details/details?item=${items}`
  				})
  			},
  			search(){
  				this.$http.sendRequest('/cereBasicInformationVenue/queryByPage', 'POST', this.query, 1).then(res => {
  					//成功回调
  					this.tableData = res.data.data.content
  				})
  			},
  			clearGet(){
  				this.$http.sendRequest('/cereBasicInformationVenue/queryByPage', 'POST', this.pageindex, 1).then(res => {
  					//成功回调
  					this.tableData = res.data.data.content
3f535f30   杨鑫   '初始'
174
175
  				})
  			},
e5b57447   杨鑫   '分包问卷'
176
177
178
  			queryChange(key, val) {
  				this.query[`${key}`] = val[0].value;
  				this.search();
3f535f30   杨鑫   '初始'
179
  			},
e5b57447   杨鑫   '分包问卷'
180
  		}	
3f535f30   杨鑫   '初始'
181
182
183
184
185
186
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'field.scss';
  </style>