funeralreservation.vue
3.7 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
<template>
<view class="page">
<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>
<view class="listBox" :style="{'padding-top':(pageTop+'px')}">
<view class="content">
<!-- 订单列表 -->
<view class="order-list">
<view class="list" @click="funeralcremation">
<view class="goods-list">
<view class="goods">
<view class="goods-name">
<view class="goods-name-title">遗体火化</view>
<view>遗体火化,又称火葬,是一种处理尸体的科学方法。</view>
</view>
<view>
<view class="btn">
<image src="../../static/btn.png" mode="widthFix"></image>
<text>预约</text>
</view>
</view>
</view>
</view>
</view>
<view class="list" @click="auditorium">
<view class="goods-list">
<view class="goods">
<view class="goods-name">
<view class="goods-name-title">礼堂预约</view>
<view>殡仪馆或墓园等场所预约使用礼堂进行追悼会或告别仪式</view>
</view>
<view>
<view class="btn">
<image src="../../static/btn.png" mode="widthFix"></image>
<text>预约</text>
</view>
</view>
</view>
</view>
</view>
<view class="list" @click="funeralash">
<view class="goods-list">
<view class="goods">
<view class="goods-name">
<view class="goods-name-title">骨灰寄存</view>
<view>骨灰寄存是指将逝者的骨灰存放在殡仪馆或墓园的骨灰寄存室中</view>
</view>
<view>
<view class="btn">
<image src="../../static/btn.png" mode="widthFix"></image>
<text>预约</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<u-toast ref="uToast"></u-toast>
</view>
</template>
<script>
export default {
data() {
return {
OrderType: 0,
nvConfig:{
title:"线上预约",
bgColor:"#ffffff",
color:"#000000",
fixedAssist:{
hide:true,
},
},
tz:true
};
},
onPageScroll(e) {this.$refs.nv.pageScroll(e)},
computed:{
pageTop(){return parseInt(88*uni.getSystemInfoSync().windowWidth/750) + uni.getSystemInfoSync().statusBarHeight}
},
onLoad(params) {
this.OrderType = params.type;
this.getbsinfo();
},
methods:{
getbsinfo(){
console.log("userinfo",uni.getStorageSync("USERS_KEY"));
var info = {
userId:uni.getStorageSync("USERS_KEY").userId
}
this.API.getbsinfo(info).then(res=>{
console.log("获取用户报丧信息",res);
if(res.rows.length == 0){
this.tz = false
}
})
},
funeralcremation(){
if(this.tz){
uni.navigateTo({
url: '/pages/funeralcremation/funeralcremation',
})
}else{
this.$refs.uToast.show({
type: 'error',
title: '成功主题(带图标)',
message: "请先进行线上报丧",
iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
})
}
},
funeralash(){
if(this.tz){
uni.navigateTo({
url: '/pages/funeralash/funeralash',
})
}else{
this.$refs.uToast.show({
type: 'error',
title: '成功主题(带图标)',
message: "请先去线上报丧",
iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
})
}
},
auditorium(){
if(this.tz){
uni.navigateTo({
url: '/pages/auditorium/auditorium',
})
}else{
this.$refs.uToast.show({
type: 'error',
title: '成功主题(带图标)',
message: "请先去线上报丧",
iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
})
}
}
}
}
</script>
<style scoped lang="scss">
@import 'funeralreservation.scss';
</style>