funeral.vue
3.72 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
<template>
<view class="page">
<view class="bg">
<image src="/static/bg.jpg"></image>
</view>
<view class="back" @click="home"><image src="../../static/left.png"></image></view>
<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>
<view class="listBox" :style="{'padding-top':(pageTop+'px')}">
<view class="content">
<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="funeralreport">
<view>
<image src="/static/nav/nav_ico5.png" mode=""></image>
</view>
<view class="text">线上报丧</view>
</view>
<view class="list" @click="funeralreservation">
<view>
<image src="/static/nav/nav_ico6.png" mode=""></image>
</view>
<view class="text">线上预约</view>
</view>
</view>
<view class="nav">
<view class="list" @click="funeralculture">
<view>
<image src="/static/nav/nav_ico7.png" mode=""></image>
</view>
<view class="text">殡葬文化</view>
</view>
<view class="list" @click="funerallaw">
<view>
<image src="/static/nav/nav_ico8.png" mode=""></image>
</view>
<view class="text">殡葬普法宣传</view>
</view>
</view>
<view class="nav">
<view class="list" @click="funeralguide">
<view>
<image src="/static/nav/nav_ico9.png" mode=""></image>
</view>
<view class="text">殡葬办事指南</view>
</view>
<view class="list" @click="funeralproblem">
<view>
<image src="/static/nav/nav_ico10.png" mode=""></image>
</view>
<view class="text">常见问题</view>
</view>
</view>
</view>
</view>
</view>
<!-- tabbar -->
<TabBar :tabBarShow="0"></TabBar>
</view>
</template>
<script>
import TabBar from '../../components/TabBar/TabBar.vue';
export default {
components: {
TabBar
},
data() {
return {
nvConfig:{
title:"殡葬公共服务",
bgColor:"#ffffff",
color:"#000000",
fixedAssist:{
hide:true,
},
transparent:{
initColor:"#000",
},
back:{
hide:true
},
},
swiperList: [{
id: 0,
type: 'image',
url: '/static/img/1.jpg'
},
{
id: 1,
type: 'image',
url: '/static/img/1.jpg'
},
],
}
},
onPageScroll(e) {this.$refs.nv.pageScroll(e)},
computed:{
pageTop(){return parseInt(88*uni.getSystemInfoSync().windowWidth/750) + uni.getSystemInfoSync().statusBarHeight}
},
onLoad() {
uni.hideTabBar();
},
methods: {
home() {
uni.navigateTo({
url: '/pages/home/home'
})
},
minor() {
uni.navigateTo({
url: '/pages/minor/minor'
})
},
funeralculture() {
uni.navigateTo({
url: '/pages/funeralculture/funeralculture'
})
},
funerallaw() {
uni.navigateTo({
url: '/pages/funerallaw/funerallaw'
})
},
funeralguide() {
uni.navigateTo({
url: '/pages/funeralguide/funeralguide'
})
},
funeralproblem() {
uni.navigateTo({
url: '/pages/funeralproblem/funeralproblem'
})
},
funeralreservation() {
uni.navigateTo({
url: '/pages/funeralreservation/funeralreservation'
})
},
funeralreport() {
uni.setStorageSync('dh',1)
uni.navigateTo({
url: '/pages/funeralreport/funeralreport'
})
},
}
};
</script>
<style scoped lang="scss">
@import 'funeral.scss';
</style>