Blame view

lvdao-miniapp/pages/workbench/workbench.vue 12.5 KB
3f535f30   杨鑫   '初始'
1
2
3
  <template>
  	<view class="page">
  		<view style="position: absolute; top: 0; width: 100%;">
ad7d1a78   杨鑫   '最新'
4
5
6
  			<image :src="$imgUrl('/bg.png')" style="width: 100%; height: 490rpx;border-radius: 0 0 40rpx 40rpx;">
  			</image>
  		</view>
3f535f30   杨鑫   '初始'
7
8
9
10
11
12
  		<view class="my-top">
  			<view class="head" :style="'background-color: rgba(38,197,112,'+(scrollTop/50)+');'">
  				<view class="logo-title">
  					<image :src="$imgUrl('/logo.png')"></image>
  				</view>
  				<view class="title">
ad7d1a78   杨鑫   '最新'
13
  
3f535f30   杨鑫   '初始'
14
15
16
17
  				</view>
  				<view class="setting-mess"></view>
  			</view>
  		</view>
e3789a75   杨鑫   '最新'
18
  		<!-- <view class="main">
e5b57447   杨鑫   '分包问卷'
19
20
  			<view class="bg-white" v-for="item in pageList1" :key="item.id">
  				<view class="bidding-title"><view class="bidding-title-line"></view>{{item.title}}</view>
3f535f30   杨鑫   '初始'
21
  				<view class="wallet-info">
e5b57447   杨鑫   '分包问卷'
22
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
3f535f30   杨鑫   '初始'
23
  						<view class="icon">
e5b57447   杨鑫   '分包问卷'
24
  							<image :src="$imgUrl(`${v.img}`)"></image>
3f535f30   杨鑫   '初始'
25
26
  						</view>
  						<view class="title">
e5b57447   杨鑫   '分包问卷'
27
  							<text>{{v.name}}</text>
3f535f30   杨鑫   '初始'
28
29
30
31
  						</view>
  					</view>
  				</view>
  			</view>
e3789a75   杨鑫   '最新'
32
  		</view> -->
e5b57447   杨鑫   '分包问卷'
33
34
  		<view class="main">
  			<view class="bg-white" v-for="item in pageList2" :key="item.id">
ad7d1a78   杨鑫   '最新'
35
36
37
  				<view class="bidding-title">
  					<view class="bidding-title-line"></view>{{item.title}}
  				</view>
3f535f30   杨鑫   '初始'
38
  				<view class="wallet-info">
e5b57447   杨鑫   '分包问卷'
39
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
3f535f30   杨鑫   '初始'
40
  						<view class="icon">
e5b57447   杨鑫   '分包问卷'
41
  							<image :src="$imgUrl(`${v.img}`)"></image>
3f535f30   杨鑫   '初始'
42
43
  						</view>
  						<view class="title">
e5b57447   杨鑫   '分包问卷'
44
  							<text>{{v.name}}</text>
3f535f30   杨鑫   '初始'
45
46
  						</view>
  					</view>
3f535f30   杨鑫   '初始'
47
48
  				</view>
  			</view>
e5b57447   杨鑫   '分包问卷'
49
50
51
  		</view>
  		<view class="main">
  			<view class="bg-white" v-for="item in pageList3" :key="item.id">
ad7d1a78   杨鑫   '最新'
52
53
54
  				<view class="bidding-title">
  					<view class="bidding-title-line"></view>{{item.title}}
  				</view>
3f535f30   杨鑫   '初始'
55
  				<view class="wallet-info">
e5b57447   杨鑫   '分包问卷'
56
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
3f535f30   杨鑫   '初始'
57
  						<view class="icon">
e5b57447   杨鑫   '分包问卷'
58
  							<image :src="$imgUrl(`${v.img}`)"></image>
3f535f30   杨鑫   '初始'
59
60
  						</view>
  						<view class="title">
e5b57447   杨鑫   '分包问卷'
61
  							<text>{{v.name}}</text>
3f535f30   杨鑫   '初始'
62
63
64
65
66
  						</view>
  					</view>
  				</view>
  			</view>
  		</view>
e3789a75   杨鑫   '最新'
67
68
  		<view class="main">
  			<view class="bg-white" v-for="item in pageList4" :key="item.id">
ad7d1a78   杨鑫   '最新'
69
70
71
72
  				<view class="bidding-title">
  					<view class="bidding-title-line"></view>{{item.title}}
  				</view>
  				<view class="wallet-info">
6b583a85   wesley88   1
73
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath1(v.path)">
ad7d1a78   杨鑫   '最新'
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  						<view class="icon">
  							<image :src="$imgUrl(`${v.img}`)"></image>
  						</view>
  						<view class="title">
  							<text>{{v.name}}</text>
  						</view>
  					</view>
  				</view>
  			</view>
  		</view>
  		<view class="main">
  			<view class="bg-white" v-for="item in pageList6" :key="item.id">
  				<view class="bidding-title">
  					<view class="bidding-title-line"></view>{{item.title}}
  				</view>
e3789a75   杨鑫   '最新'
89
90
91
92
93
94
95
96
97
98
99
100
  				<view class="wallet-info">
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
  						<view class="icon">
  							<image :src="$imgUrl(`${v.img}`)"></image>
  						</view>
  						<view class="title">
  							<text>{{v.name}}</text>
  						</view>
  					</view>
  				</view>
  			</view>
  		</view>
e4b57ea5   杨鑫   '最新'
101
  
a6a3878d   杨鑫   最新绿道
102
  		<view class="main" style="margin-bottom: 20px;">
40a0b33d   杨鑫   '最新'
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  			<view class="bg-white" v-for="item in pageList5" :key="item.id">
  				<view class="bidding-title">
  					<view class="bidding-title-line"></view>{{item.title}}
  				</view>
  				<view class="wallet-info">
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
  						<view class="icon">
  							<image :src="$imgUrl(`${v.img}`)"></image>
  						</view>
  						<view class="title">
  							<text>{{v.name}}</text>
  						</view>
  					</view>
  				</view>
  			</view>
  		</view>
3f535f30   杨鑫   '初始'
119
  		<!-- tabbar -->
53c1431a   wesley88   1
120
  		<view style="height: 300rpx;"></view>
3f535f30   杨鑫   '初始'
121
122
123
124
125
126
127
128
129
130
131
132
  		<tabbar :tabBarShow="1"></tabbar>
  	</view>
  </template>
  
  <script>
  	import tabbar from '../../components/tabbar/tabbar.vue';
  	export default {
  		components: {
  			tabbar
  		},
  		data() {
  			return {
e5b57447   杨鑫   '分包问卷'
133
  				pageList1: [
e3789a75   杨鑫   '最新'
134
135
136
137
138
139
140
141
  					// {
  					// 	id: 1,
  					// 	title: '招商服务',
  					// 	children: [
  					// 		{ name: '问卷调查', img: '/workbench1.png', path: '/pages/questionnaire/questionnaire' },
  					// 		{ name: '意向申请', img: '/workbench5.png', path: '/pages/rsaManagement/rsaManagement' },
  					// 	]
  					// },
e5b57447   杨鑫   '分包问卷'
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
  					// {
  					// 	id: 2,
  					// 	title: '推广策划',
  					// 	children: [
  					// 		{ name: '推广方案申请', img: '/workbench2.png', path: '/pages/application/application' },
  					// 		{ name: '推广方案管理', img: '/workbench7.png', path: '/pages/projectManagement/projectManagement' },
  					// 		{ name: '效果查看', img: '/workbench8.png', path: '' },
  					// 	]
  					// },
  					// {
  					// 	id: 3,
  					// 	title: '在线商城',
  					// 	children: [
  					// 		// { name: '新增商品', img: '/workbench9.png', path: '' },
  					// 		{ name: '订单查询', img: '/workbench10.png', path: '/pages/orderList/orderList' },
  					// 		// { name: '售后管理', img: '/workbench11.png', path: '' },
  					// 		// { name: '库存管理', img: '/workbench12.png', path: '' },
  					// 		{ name: '销售统计', img: '/workbench15.png', path: '/pages/salesSta/salesSta' },
  					// 		// { name: '综合查询', img: '/workbench14.png', path: '' },
  					// 		// { name: '优惠券发放', img: '/workbench13.png', path: '' },
  					// 	]
  					// },
  					// {
  					// 	id: 4,
  					// 	title: '支付服务',
  					// 	children: [
  					// 		{ name: '明细查询', img: '/workbench16.png', path: '' },
  					// 		{ name: '日志查询', img: '/workbench7.png', path: '' },
  					// 	]
  					// },
  				],
ad7d1a78   杨鑫   '最新'
173
174
175
176
177
178
179
180
181
182
  				pageList2: [{
  					id: 1,
  					title: '活动与意向申请',
  					children: [{
  							name: '问卷调查',
  							img: '/wjdc.png',
  							path: '/pages/questionnaire/questionnaire'
  						},
  						// { name: '招商方案', img: '/workbench2.png', path: '/pages/Iproposal/Iproposal' },
  						{
3a1f257b   杨鑫   最新
183
  							name: '我的活动',
ad7d1a78   杨鑫   '最新'
184
  							img: '/wdhd.png',
3a1f257b   杨鑫   最新
185
186
187
  							path: '/pages/mycreated/mycreated'
  							
  							// path: '/pages/participation/participation'
ad7d1a78   杨鑫   '最新'
188
189
  						},
  						{
fa21ce0f   杨鑫   最新更改bug
190
  							name: '活动发布',
ad7d1a78   杨鑫   '最新'
191
192
193
194
  							img: '/hdsq.png',
  							path: '/pages/activityAdd/activityAdd'
  						},
  						{
2210df30   wesley88   1
195
  							name: '寻租申请',
ad7d1a78   杨鑫   '最新'
196
197
198
199
200
201
202
  							img: '/yxsq.png',
  							path: '/pages/rsaManagement/rsaManagement'
  						},
  					]
  				}, ],
  				pageList3: [{
  						id: 2,
e5b57447   杨鑫   '分包问卷'
203
204
205
206
207
208
  						title: '销售上报与统计',
  						children: [
  							// { name: '文件调查', img: '/workbench1.png', path: '/pages/questionnaire/questionnaire' },
  							// { name: '招商方案', img: '/workbench2.png', path: '/pages/Iproposal/Iproposal' },
  							// { name: '我的活动', img: '/workbench3.png', path: '/pages/participation/participation' },
  							// { name: '活动申请', img: '/workbench4.png', path: '/pages/mycreated/mycreated' },
ad7d1a78   杨鑫   '最新'
209
210
211
212
213
214
215
216
217
218
  							{
  								name: '销售上报',
  								img: '/xssb.png',
  								path: '/pages/saleReport/saleReport'
  							},
  							{
  								name: '销售统计',
  								img: '/xstj.png',
  								path: '/pages/salesReporting/salesReporting'
  							},
e3789a75   杨鑫   '最新'
219
220
  						]
  					},
ad7d1a78   杨鑫   '最新'
221
  
e3789a75   杨鑫   '最新'
222
  				],
ad7d1a78   杨鑫   '最新'
223
224
225
226
227
  				pageList4: [{
  					id: 3,
  					title: '在线商城',
  					children: [{
  							name: '订单查询',
40a0b33d   杨鑫   '最新'
228
  							img: '/ddcx.png',
ad7d1a78   杨鑫   '最新'
229
230
231
232
  							path: '/pages/orderList/orderList'
  						},
  						{
  							name: '售后查询',
40a0b33d   杨鑫   '最新'
233
  							img: '/shcx.png',
ad7d1a78   杨鑫   '最新'
234
235
236
237
  							path: '/pages/orderList/aftersale',
  						},
  						{
  							name: '商品库存',
40a0b33d   杨鑫   '最新'
238
  							img: '/spkc.png',
ad7d1a78   杨鑫   '最新'
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
  							path: '/pages/orderList/inventory'
  						},
  					]
  				}],
  
  				pageList5: [{
  					id: 4,
  					title: '商铺缴费',
  					children: [
  						// { name: '文件调查', img: '/workbench1.png', path: '/pages/questionnaire/questionnaire' },
  						// { name: '招商方案', img: '/workbench2.png', path: '/pages/Iproposal/Iproposal' },
  						// { name: '我的活动', img: '/workbench3.png', path: '/pages/participation/participation' },
  						// { name: '活动申请', img: '/wyjf.png', path: '/pages/mycreated/mycreated' },
  						{
  							name: '租金缴费',
06dc87e6   wesley88   1
254
  							img: '/wyjf.png',
ad7d1a78   杨鑫   '最新'
255
256
  							path: '/pagesA/rentPay/rentPay'
  						},
2210df30   wesley88   1
257
258
  						{
  							name: '物业缴费',
06dc87e6   wesley88   1
259
  							img: '/zjjf.png',
2210df30   wesley88   1
260
261
  							path: '/pages/propertyPay/propertyPayList/propertyPayList'
  						},
a6a3878d   杨鑫   最新绿道
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
  						// {
  						// 	name: '打卡活动',
  						// 	img: '/zjjf.png',
  						// 	path: '/pagesA/PunchInAct/PunchInAct'
  						// },
  						// {
  						// 	name: '抽奖活动',
  						// 	img: '/zjjf.png',
  						// 	path: '/pagesA/lotteryActivity/lotteryActivity'
  						// },
  						// {
  						// 	name: '预约核销',
  						// 	img: '/zjjf.png',
  						// 	path: '/pagesA/writeOffs/writeOffs'
  						// }
ad7d1a78   杨鑫   '最新'
277
278
  					]
  				}, ],
2210df30   wesley88   1
279
  				pageList6: [{
ad7d1a78   杨鑫   '最新'
280
281
282
283
  					id: 5,
  					title: '推广管理',
  					children: [{
  							name: '推广申请',
40a0b33d   杨鑫   '最新'
284
285
  							img: '/tgsq.png',
  							path: '/pagesA/application/application'
ad7d1a78   杨鑫   '最新'
286
287
288
  						},
  						{
  							name: '我的推广',
40a0b33d   杨鑫   '最新'
289
290
  							img: '/wdtg.png',
  							path: '/pagesA/projectManagement/projectManagement',
ad7d1a78   杨鑫   '最新'
291
292
293
  						}
  					]
  				}],
3f535f30   杨鑫   '初始'
294
295
296
  				scrollTop: 0,
  			};
  		},
e5b57447   杨鑫   '分包问卷'
297
  		onShow() {
844aa73a   杨鑫   '最新'
298
299
300
301
302
303
304
305
  			const isLogin = uni.getStorageSync('token');
  			if (isLogin == '') {
  				// 如果未登录,跳转到登录页面
  				uni.navigateTo({
  					url: '/pages/login/login'
  				})
  			} else {
  
ad7d1a78   杨鑫   '最新'
306
307
308
309
  				this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', {
  					"pageSize": 10,
  					pageNumber: 0,
  					phone: uni.getStorageSync('user').phone
e94be901   wesley88   1
310
  				},1).then(res => {
ad7d1a78   杨鑫   '最新'
311
312
313
314
315
  					if (res.data.code == '20004' || res.data.code == '20003') {
  						uni.navigateTo({
  							url: '/pages/login/login'
  						})
  					}
844aa73a   杨鑫   '最新'
316
317
318
  				})
  			}
  
e5b57447   杨鑫   '分包问卷'
319
  		},
3f535f30   杨鑫   '初始'
320
321
322
323
324
325
326
  		onReady() {
  			uni.hideTabBar()
  		},
  		onPageScroll(e) {
  			this.scrollTop = e.scrollTop;
  		},
  		methods: {
6b583a85   wesley88   1
327
  			async toPath1(path) {
cfe2752f   杨鑫   最新
328
  				let h1 = uni.getStorageSync('user').phone
d5f60c72   杨鑫   '最新'
329
  				// let c1 = '18188305496'
2210df30   wesley88   1
330
  				await this.$http.sendRequest('/check/getAll', 'POST', {
cfe2752f   杨鑫   最新
331
  					"shopPhone": h1,
2210df30   wesley88   1
332
333
334
335
  					"checkState": "1",
  					"page": 1,
  					"pageSize": 1
  				}, 1).then(res => {
6fd43d28   wesley88   1
336
337
  					if (res.data.data.content.length > 0) {
  						uni.setStorageSync('shopId', res.data.data.content[0].shopId);
6b583a85   wesley88   1
338
339
340
341
342
  					} else {
  						// uni.show
  						uni.setStorageSync('shopId', '');
  					}
  				})
cfe2752f   杨鑫   最新
343
344
345
346
  				await this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', {
  					"pageSize": 10,
  					pageNumber: 0,
  					phone: uni.getStorageSync('user').phone
e94be901   wesley88   1
347
  				},1).then(res => {
cfe2752f   杨鑫   最新
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
  					if (res.data.code == '20004' || res.data.code == '20003') {
  						uni.navigateTo({
  							url: '/pages/login/login'
  						})
  					}
  					if (res.data.data.content.length > 0) {
  						let c1 = res.data.data.content[0]
  					console.log(c1.checkState,'checkState')
  						if (c1.checkState == '1') {
  							uni.showToast({
  								icon: 'none',
  								title: '商家申请正在审核中',
  								duration: 3000
  							});
  						} else if (c1.checkState == '3') {
  							uni.showToast({
  								icon: 'none',
  								title: '商家申请审核已被拒绝 请重新提交',
  								duration: 3000
  							});
  							setTimeout(() => {
  								uni.navigateTo({
  									url: '/pagesA/leaseAdd/leaseAdd'
  								})
  							}, 3000)
  						} else if (c1.checkState == '2') {
  							uni.navigateTo({
  								url: path,
  							})
  						}
  					} else {
  						uni.showToast({
  							icon: 'none',
  							title: '请先申请成为商家',
  							duration: 3000
  						});
  						setTimeout(() => {
  							uni.navigateTo({
  								url: '/pagesA/leaseAdd/leaseAdd'
  							})
  						}, 3000)
  					}
6b583a85   wesley88   1
390
  				})
cfe2752f   杨鑫   最新
391
392
393
  				
  			
  			
6b583a85   wesley88   1
394
  			},
ad7d1a78   杨鑫   '最新'
395
  			toPath(path) {
cfe2752f   杨鑫   最新
396
397
398
399
  				 this.$http.sendRequest('/cerePlatformMerchant/queryByPage', 'POST', {
  					"pageSize": 10,
  					pageNumber: 0,
  					phone: uni.getStorageSync('user').phone
e94be901   wesley88   1
400
  				},1).then(res => {
cfe2752f   杨鑫   最新
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
  					if (res.data.code == '20004' || res.data.code == '20003') {
  						uni.navigateTo({
  							url: '/pages/login/login'
  						})
  					}
  					if (res.data.data.content.length > 0) {
  						let c1 = res.data.data.content[0]
  					console.log(c1.checkState,'checkState')
  						if (c1.checkState == '1') {
  							uni.showToast({
  								icon: 'none',
  								title: '商家申请正在审核中',
  								duration: 3000
  							});
  						} else if (c1.checkState == '3') {
  							uni.showToast({
  								icon: 'none',
  								title: '商家申请审核已被拒绝 请重新提交',
  								duration: 3000
  							});
  							setTimeout(() => {
  								uni.navigateTo({
  									url: '/pagesA/leaseAdd/leaseAdd'
  								})
  							}, 3000)
  						} else if (c1.checkState == '2') {
  							uni.navigateTo({
  								url: path,
  							})
  						}
  					} else {
  						uni.showToast({
  							icon: 'none',
  							title: '请先申请成为商家',
  							duration: 3000
  						});
  						setTimeout(() => {
  							uni.navigateTo({
  								url: '/pagesA/leaseAdd/leaseAdd'
  							})
  						}, 3000)
  					}
3f535f30   杨鑫   '初始'
443
  				})
cfe2752f   杨鑫   最新
444
  				
3f535f30   杨鑫   '初始'
445
  			},
3f535f30   杨鑫   '初始'
446
447
448
449
450
451
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'workbench.scss';
ad7d1a78   杨鑫   '最新'
452
  </style>