Blame view

pages/home/home.vue 13.5 KB
1f3f2378   起风了   我的第一次
1
2
  <template>

  	<view class="page">

53c27360   smile   1111
3
4
5
  		<view class="bg">

  			<image src="/static/bg.jpg"></image>

  		</view>

1f3f2378   起风了   我的第一次
6
7
8
  		<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>

  		<view class="listBox" :style="{'padding-top':(pageTop+'px')}">

  			<view class="content">

53c27360   smile   1111
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  				<view class="banner">

  					<swiper class="screen-swiper" indicator-dots="true" circular="true" autoplay="true" interval="5000"

  						duration="500">

  						<swiper-item v-for="(item,index) in swiperList" :key="index">

  							<image :src="item.url" mode="aspectFill"></image>

  						</swiper-item>

  					</swiper>

  				</view>

  

  				<view class="menu-nav">

  					<view class="nav">

  						<view class="list" @click="tzyl">

  							<view>

  								<image src="/static/new/1.png" mode="heightFix"></image>

  							</view>

  							<view class="text">养老</view>

  						</view>

  						<view class="list" @click="minor">

  							<view>

  								<image src="/static/new/2.png" mode="heightFix"></image>

  							</view>

63d2069f   李宇   1
30
  							<view class="text">未成年</view>

53c27360   smile   1111
31
  						</view>

1f3f2378   起风了   我的第一次
32
  						<view class="list" @click="map">

53c27360   smile   1111
33
34
35
  							<view>

  								<image src="/static/new/3.png" mode="heightFix"></image>

  							</view>

63d2069f   李宇   1
36
  							<view class="text">地名</view>

1f3f2378   起风了   我的第一次
37
38
  						</view>

  						<view class="list" @click="funeral">

53c27360   smile   1111
39
40
41
  							<view>

  								<image src="/static/new/4.png" mode="heightFix"></image>

  							</view>

fe62b839   起风了   1
42
  							<view class="text">殡葬</view>

1f3f2378   起风了   我的第一次
43
  						</view>

fe62b839   起风了   1
44
  						<!-- <view class="list" @click="toponym">

1f3f2378   起风了   我的第一次
45
  							<view><image src="/static/new/image 1.png" mode="heightFix"></image></view>

d7d4c017   李宇   1
46
  							<view class="text">地名申报</view>

1f3f2378   起风了   我的第一次
47
  						</view>

d7d4c017   李宇   1
48
  						<view class="list" @click="lmpsb">

1f3f2378   起风了   我的第一次
49
  							<view><image src="/static/new/image 2.png" mode="heightFix"></image></view>

d7d4c017   李宇   1
50
  							<view class="text">地名查询</view>

1f3f2378   起风了   我的第一次
51
52
53
54
55
56
57
58
  						</view>

  						<view class="list" @click="gopath('/pages/policy/policy')">

  							<view><image src="/static/new/image 3.png" mode="heightFix"></image></view>

  							<view class="text">政策文件</view>

  						</view>

  						<view class="list" @click="journalism">

  							<view><image src="/static/new/image 4.png" mode="heightFix"></image></view>

  							<view class="text">新闻资讯</view>

fe62b839   起风了   1
59
  						</view> -->

53c27360   smile   1111
60
61
  					</view>

  				</view>

1f3f2378   起风了   我的第一次
62
  			</view>

63d2069f   李宇   1
63
  			<view class="xw" style="">

1f3f2378   起风了   我的第一次
64
65
66
  				<view class="title">

  					<view class="box1">

  						<image src="../../static/new/矩形 331.png" mode=""></image>

2feeb765   李宇   1
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
  						<span>养老服务</span>

  					</view>

  				</view>

  				<view class="content" style="padding-bottom: 0;">

  					<view class="box_item" @click="goyl('http://icare.rsxmzj.91xxt.com:81/admin/resources/wsShop/html/index/oIndex_index.html')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="../../static/yl/image-2.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">服务预约</view>

  					</view>

  					<view class="box_item" @click="goyl('http://icare.rsxmzj.91xxt.com:81/admin/resources/H5_YLZS/html/login.html')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="../../static/yl/image.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">高龄津贴认证</view>

  					</view>

  					<view class="box_item" @click="goyl('http://show.rsxmzj.91xxt.com:81/2020/orgMap/html/map/list.html')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="../../static/yl/image-4.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">关爱地图</view>

  					</view>

  	

  					<view class="box_item" @click="goyl('http://icare.rsxmzj.91xxt.com:81/admin/mobile/meal_aid_copy/html/login.html')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="../../static/yl/image-5.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">养老助餐</view>

  					</view>

  				</view>

  				<view class="content" style="padding-top: 0;">

  					<view class="box_item" @click="goyl('http://cwservice.rsxmzj.91xxt.com:81/icare-admin/resources/cwbt/html/login.html')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="../../static/yl/image-3.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">床位补贴机构资质申请</view>

  					</view>

  				</view>

  			</view>

  			<view class="xw" style="">

  				<view class="title">

  					<view class="box1">

  						<image src="../../static/new/矩形 331.png" mode=""></image>

63d2069f   李宇   1
110
  						<span>未成年服务</span>

1f3f2378   起风了   我的第一次
111
112
  					</view>

  				</view>

fe62b839   起风了   1
113
  				<view class="content">

63d2069f   李宇   1
114
115
116
  					<view class="box_item" @click="minor">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/new/2.png" style="height: 100rpx;" mode="heightFix"></image>

53c27360   smile   1111
117
  						</view>

63d2069f   李宇   1
118
  						<view class="text">个案登记</view>

53c27360   smile   1111
119
  					</view>

63d2069f   李宇   1
120
121
122
  					<view class="box_item" @click="whisper">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/new/whisper.png" style="height: 100rpx;" mode="heightFix"></image>

53c27360   smile   1111
123
  						</view>

63d2069f   李宇   1
124
  						<view class="text">悄悄话</view>

53c27360   smile   1111
125
  					</view>

2feeb765   李宇   1
126
127
128
129
130
131
  			<!-- 		<view class="box_item" @click="gopath('/pages/activitylist/activitylist?activeType=未成年')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/new/image 4.png" style="height: 100rpx;" mode="heightFix"></image>

  						</view>

  						<view class="text">未成年活动</view>

  					</view> -->

53c27360   smile   1111
132
133
134
135
136
137
138
  				</view>

  			</view>

  

  			<view class="xw" style="padding-top: 20rpx;padding-left: 20rpx;">

  				<view class="title">

  					<view class="box1">

  						<image src="../../static/new/矩形 331.png" mode=""></image>

63d2069f   李宇   1
139
  						<span>区划地名服务</span>

53c27360   smile   1111
140
141
142
  					</view>

  				</view>

  				<view class="content" style="margin-bottom:40rpx;">

63d2069f   李宇   1
143
  					<view class="box_item" @click="gopath('/pages/declaration/newDeclaration')">

53c27360   smile   1111
144
  						<view style="margin-bottom: 20rpx;">

63d2069f   李宇   1
145
  							<image src="/static/ly/image6.png" style="width: 60%;height: 90rpx;" mode=""></image>

53c27360   smile   1111
146
  						</view>

63d2069f   李宇   1
147
148
149
150
151
152
153
  						<view class="text">地名备案</view>

  					</view>

  					<view class="box_item" @click="lmpsb">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/new/image 2.png" style="width: 60%;height: 90rpx;" mode=""></image>

  						</view>

  						<view class="text">地名查询</view>

53c27360   smile   1111
154
155
156
157
158
  					</view>

  					<view class="box_item" @click="gopath('/pages/mapdoorplate/mapdoorplate')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/ly/image8.png" style="width: 60%;height: 90rpx;" mode=""></image>

  						</view>

63d2069f   李宇   1
159
  						<view class="text">地名标志备案</view>

53c27360   smile   1111
160
  					</view>

63d2069f   李宇   1
161
162
  

  

53c27360   smile   1111
163
164
165
166
167
168
  					<view class="box_item" @click="gopath('/pages/declaration/declaration?type=3')">

  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/ly/image5.png" style="width: 60%;height: 90rpx;" mode=""></image>

  						</view>

  						<view class="text">建筑物备案</view>

  					</view>

63d2069f   李宇   1
169
  

53c27360   smile   1111
170
171
  				</view>

  				<view class="content" style="margin-top: -70rpx;z-index: 10000;padding: 0 20rpx;">

63d2069f   李宇   1
172
  					<view class="box_item" @click="gopath('/pages/declaration/declaration?type=5')">

53c27360   smile   1111
173
  						<view style="margin-bottom: 20rpx;">

63d2069f   李宇   1
174
  							<image src="/static/ly/image11.png" style="width: 60%;height: 90rpx;" mode=""></image>

53c27360   smile   1111
175
  						</view>

63d2069f   李宇   1
176
  						<view class="text">门楼牌备案</view>

53c27360   smile   1111
177
  					</view>

63d2069f   李宇   1
178
  		<!-- 			<view class="box_item" @click="gopath('/pages/maptask/maptask')">

53c27360   smile   1111
179
180
181
182
  						<view style="margin-bottom: 20rpx;">

  							<image src="/static/new/image 1.png" style="width: 60%;height: 90rpx;" mode=""></image>

  						</view>

  						<view class="text">巡检任务</view>

63d2069f   李宇   1
183
184
  					</view> -->

  					<view class="box_item" @click="gopath('/pages/policy/policy')">

53c27360   smile   1111
185
  						<view style="margin-bottom: 20rpx;">

63d2069f   李宇   1
186
  							<image src="/static/new/image 3.png" style="width: 60%;height: 90rpx;" mode=""></image>

53c27360   smile   1111
187
  						</view>

63d2069f   李宇   1
188
  						<view class="text">政策文件</view>

53c27360   smile   1111
189
  					</view>

2feeb765   李宇   1
190
  			

1f3f2378   起风了   我的第一次
191
  				</view>

1f3f2378   起风了   我的第一次
192
  			</view>

63d2069f   李宇   1
193
194
195
  

  

  			<!-- 服务 -->

fcc32898   smile   111
196
197
198
199
  			<view class="xw" style="padding-top: 20rpx;padding-left: 20rpx;">

  				<view class="title">

  					<view class="box1">

  						<image src="../../static/new/矩形 331.png" mode=""></image>

63d2069f   李宇   1
200
  						<span>殡葬服务</span>

fcc32898   smile   111
201
202
  					</view>

  				</view>

63d2069f   李宇   1
203
204
205
206
  				<view class="content">

  					<view class="box_item" @click="funeralculture">

  						<view>

  							<image src="/static/nav/nav_ico5.png" style="width: 90%;" mode="widthFix"></image>

fcc32898   smile   111
207
  						</view>

63d2069f   李宇   1
208
  						<view class="text">线上报丧</view>

fcc32898   smile   111
209
  					</view>

63d2069f   李宇   1
210
211
212
  					<view class="box_item" @click="funerallaw">

  						<view>

  							<image src="/static/nav/nav_ico6.png" style="width: 90%;" mode="widthFix"></image>

fcc32898   smile   111
213
  						</view>

63d2069f   李宇   1
214
  						<view class="text">线上预约</view>

fcc32898   smile   111
215
  					</view>

63d2069f   李宇   1
216
217
218
  					<view class="box_item" @click="funeralguide">

  						<view>

  							<image src="/static/nav/nav_ico9.png" style="width: 90%;" mode="widthFix"></image>

fcc32898   smile   111
219
  						</view>

63d2069f   李宇   1
220
  						<view class="text">办事指南</view>

fcc32898   smile   111
221
  					</view>

63d2069f   李宇   1
222
223
224
  					<view class="box_item" @click="funeralproblem">

  						<view>

  							<image src="/static/nav/nav_ico10.png" style="width: 90%;" mode="widthFix"></image>

fcc32898   smile   111
225
  						</view>

63d2069f   李宇   1
226
  						<view class="text">常见问题</view>

fcc32898   smile   111
227
228
229
  					</view>

  				</view>

  			</view>

2feeb765   李宇   1
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
  			<view class="xw" style="padding-top: 20rpx;padding-left: 20rpx;">

  					<view class="title">

  						<view class="box1">

  							<image src="../../static/new/矩形 331.png" mode=""></image>

  							<span>活动服务</span>

  						</view>

  					</view>

  					<view class="content" >

  						<view class="box_item" @click="gopath('/pages/activitylist/activitylist')">

  							<view style="margin-bottom: 20rpx;">

  								<image src="/static/new/image 4.png" style="width: 60%;height: 90rpx;" mode=""></image>

  							</view>

  							<view class="text">活动</view>

  						</view>

  					</view>

  				</view>

63d2069f   李宇   1
246
  

1f3f2378   起风了   我的第一次
247
248
  		</view>

  	</view>

53c27360   smile   1111
249
  

1f3f2378   起风了   我的第一次
250
251
252
253
254
255
256
  </template>

  

  <script>

  	import md5 from "../../common/md5.js";

  	export default {

  		data() {

  			return {

53c27360   smile   1111
257
258
259
260
261
262
  				nvConfig: {

  					title: "数字民政服务平台",

  					bgColor: "#ffffff",

  					color: "#000000",

  					fixedAssist: {

  						hide: true,

1f3f2378   起风了   我的第一次
263
  					},

53c27360   smile   1111
264
265
  					transparent: {

  						initColor: "#000",

1f3f2378   起风了   我的第一次
266
  					},

53c27360   smile   1111
267
268
  					back: {

  						hide: true

1f3f2378   起风了   我的第一次
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
  					},

  				},

  				swiperList: [{

  						id: 0,

  						type: 'image',

  						url: '/static/img/1.jpg'

  					},

  					{

  						id: 1,

  						type: 'image',

  						url: '/static/img/1.jpg'

  					},

  				],

  			}

  		},

53c27360   smile   1111
284
285
286
287
288
289
290
  		onPageScroll(e) {

  			this.$refs.nv.pageScroll(e)

  		},

  		computed: {

  			pageTop() {

  				return parseInt(88 * uni.getSystemInfoSync().windowWidth / 750) + uni.getSystemInfoSync().statusBarHeight

  			}

1f3f2378   起风了   我的第一次
291
292
293
294
  		},

  		onLoad() {

  			uni.hideTabBar();

  		},

53c27360   smile   1111
295
  		methods: {

2feeb765   李宇   1
296
297
298
299
300
301
  			goyl(e) {

  				console.log(e)

  				uni.navigateTo({

  					url: '/pages/webviewyl/webviewyl?url='+e

  				})

  			},

53c27360   smile   1111
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
  			// 

  			funeralculture() {

  				uni.setStorageSync('dh', 1)

  				uni.navigateTo({

  					url: '/pages/funeralreport/funeralreport'

  				})

  			},

  			funerallaw() {

  				uni.navigateTo({

  					url: '/pages/funeralreservation/funeralreservation'

  				})

  			},

  			funeralguide() {

  				uni.navigateTo({

  					url: '/pages/funeralguide/funeralguide'

  				})

  			},

  			funeralproblem() {

  				uni.navigateTo({

  					url: '/pages/funeralproblem/funeralproblem'

  				})

  			},

  			// 

  			gopath(e) {

  				uni.navigateTo({

  					url: e

  				})

  			},

fe62b839   起风了   1
330
  			// 

1f3f2378   起风了   我的第一次
331
332
333
334
335
336
337
  			gopath(e) {

  				uni.navigateTo({

  					url: e

  				})

  			},

  			toponym() {

  				uni.navigateTo({

53c27360   smile   1111
338
  					url: "/pages/declaration/newDeclaration"

1f3f2378   起风了   我的第一次
339
340
  				})

  			},

53c27360   smile   1111
341
  			tzyl() {

1f3f2378   起风了   我的第一次
342
343
  				// window.location.href = `http://show.rsxmzj.91xxt.com:81/2023/renshou/index.html?p=${t}&t=${time}&sign=${encryptedstr}`

  				uni.navigateTo({

53c27360   smile   1111
344
  					url: "/pages/webview/webview"

1f3f2378   起风了   我的第一次
345
346
  				})

  			},

53c27360   smile   1111
347
  			lmpsb() {

1f3f2378   起风了   我的第一次
348
  				uni.navigateTo({

d7d4c017   李宇   1
349
  					// url:'/pages/mapdoorplate/mapdoorplate'

53c27360   smile   1111
350
  					url: '/pages/map1/map'

0d8fdbbf   起风了   gps修改
351
  					// url: '/pages/receiptRegistration/receiptRegistration'

1f3f2378   起风了   我的第一次
352
353
  				})

  			},

53c27360   smile   1111
354
355
356
357
358
359
360
361
  			minor() {

  				uni.navigateTo({

  					url: '/pages/receiptRegistration/receiptRegistration'

  				})

  			},

  			whisper() {

  				uni.navigateTo({

  					url: '/pages/whisper/index'

1f3f2378   起风了   我的第一次
362
  				})

1f3f2378   起风了   我的第一次
363
364
365
366
367
  			},

  			journalism() {

  				uni.navigateTo({

  					url: '/pages/journalism/journalism'

  				})

1f3f2378   起风了   我的第一次
368
  			},

53c27360   smile   1111
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
  			// 获取用户信息

  			hquserinfo() {

  				var info = {

  					userId: uni.getStorageSync("USERS_KEY").userId,

  				}

  				this.API.hquserinfo(info).then(res => {

  					console.log("获取用户信息", res);

  					this.user.nickName = res.data.nickName;

  					this.user.avatar = res.data.avatar

  					this.user.deptId = res.data.deptId

  					console.log("信息", this.user);

  				})

  			},

  			funeral() {

  				var info = {

  					userId: uni.getStorageSync("USERS_KEY").userId,

  				}

  				this.API.hquserinfo(info).then(res => {

  					console.log("获取用户信息", res);

  					console.log("信息1", res.data.roles[0].roleName, uni.getStorageSync('userjs'));

  					if (res.data.roles[0].roleName != uni.getStorageSync('userjs')) {

  						uni.reLaunch({

  							url: '/pages/login/login'

  						});

  						return

  					}

  					if (uni.getStorageSync('userjs') == null || uni.getStorageSync('userjs') == undefined) {

  						uni.reLaunch({

  							url: '/pages/login/login'

  						});

  						return

  					}

  

  					if (uni.getStorageSync('userjs') != '普通用户') {

  						uni.switchTab({

  							url: '/pages/my/my'

  						})

  					} else {

  						uni.switchTab({

  							url: '/pages/funeral/funeral'

  						})

  					}

  				})

  

1f3f2378   起风了   我的第一次
413
414
415
416
417
418
419
420
421
422
423
424
425
426
  			},

  			map() {

  				uni.navigateTo({

  					url: '/pages/declaration/list'

  				})

  				// uni.navigateTo({

  				// 	url: '/pages/map/map'

  				// })

  			},

  			map1() {

  				uni.navigateTo({

  					url: '/pages/map1/map'

  				})

  			},

53c27360   smile   1111
427
  			xwtz() {

1f3f2378   起风了   我的第一次
428
  				uni.navigateTo({

53c27360   smile   1111
429
  					url: "/pages/xw/xw"

1f3f2378   起风了   我的第一次
430
431
432
433
434
435
436
  				})

  			}

  		}

  	};

  </script>

  <style scoped lang="scss">

  	@import 'home.scss';

53c27360   smile   1111
437
  </style>