oneSubmitted.vue
3.2 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
<template>
<view class="oneSubmitted">
<!-- 1提交,2支付成功,3通行证 -->
<view class="header-wrap"></view>
<view class="content-wrap area flex">
<!-- 提交 -->
<view class="content-item flex" v-if="pageType==1">
<icon :type="iconSccess" size="58" color="#14B614" />
<view class="botm-text">
提交成功
</view>
<view class="botm-btn" @tap="$sjuNav.switchTab(`/pages/index/index`)">
确定
</view>
</view>
<!-- 支付成功 -->
<view class="content-item flex" v-if="pageType===2">
<icon :type="iconSccess" size="58" color="#14B614" />
<view class="botm-text">
支付成功
</view>
<view class="samll-text">
快去看看自己的床铺吧
</view>
<view class="botm-btn">
确定
</view>
</view>
<!-- 通行证 -->
<view v-if="pageType==3">
<view class="content-item flex" v-if="userDatas.pass_type==2">
<icon :type="iconWaiting" size="58" color="#F7B500" />
<view class="botm-text">
审核中
</view>
</view>
<view class="content-item flex" v-else>
<icon :type="iconClear" size="58" color="#FF4646" />
<view class="botm-text">
审核失败
</view>
<view class="botm-btn" @click="goReset">
重新上传
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import Vue from 'vue'
import {
mapState,
mapMutations
} from 'vuex'
var that
export default {
data() {
return {
pageType: 1, //1提交,2支付成功,3通行证
iconSccess: "success", //提交成功
iconWaiting: "waiting", //审核中
iconClear: "clear", //审核失败
auditing: true, //false审核失败 ,true 审核中
}
},
onLoad(option) {
console.log(option);
// let id = JSON.parse(option.param).id
let id = option.id
console.log(id);
if (id == 1) { //动态更改 标题
uni.setNavigationBarTitle({
title: option.title||'提交'
})
} else if (id == 2) {
uni.setNavigationBarTitle({
title: "住宿办理"
})
} else if (id == 3) {
uni.setNavigationBarTitle({
title: "通行证"
})
}
this.pageType = id
},
computed: {
...mapState(['hasLogin', 'forcedLogin', 'userDatas']),
},
methods: {
goReset(){
uni.redirectTo({
url:'/pagesB/onePass/onePass'
})
}
}
}
</script>
<style lang="scss" scoped>
.oneSubmitted {
position: relative;
}
.content-wrap {
height: 608rpx;
background: #FFFFFF;
border-radius: 10rpx;
justify-content: center;
align-items: center;
}
.content-item {
flex-direction: column;
justify-content: center;
align-items: center;
}
.botm-text {
height: 30rpx;
line-height: 30rpx;
font-size: 30rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #333333;
margin-top: 26rpx;
}
.botm-btn {
min-width: 250rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border: 1px solid #2D81FF;
border-radius: 40rpx;
font-size: 30rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #2D81FF;
margin-top: 50rpx;
}
.samll-text {
height: 28rpx;
line-height: 28rpx;
margin-top: 18rpx;
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #999999;
}
</style>