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
| <template>
| <view class="content">
| <text class="success-icon yticon icon-xuanzhong2" />
| <text class="tit">
| 支付成功
| </text>
|
| <view class="btn-group">
| <navigator v-if="scene !== 'vip'" url="/pages/order/list?state=0" open-type="redirect" class="mix-btn">
| 查看订单
| </navigator>
| <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">
| 返回首页
| </navigator>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| scene: ''
| }
| },
| onLoad(options) {
| if (options.scene) {
| const that = this
| that.scene = options.scene
| // 更新session
| that.$api.request('user', 'getUser').then(res => {
| uni.setStorageSync('userInfo', res.data)
| that.$store.commit('login', res.data)
| })
| }
| },
| methods: {
|
| }
| }
| </script>
|
| <style lang='scss'>
| .content{
| display: flex;
| flex-direction: column;
| justify-content: center;
| align-items: center;
| }
| .success-icon{
| font-size: 160upx;
| color: #fa436a;
| margin-top: 100upx;
| }
| .tit{
| font-size: 38upx;
| color: #303133;
| }
| .btn-group{
| padding-top: 100upx;
| }
| .mix-btn {
| margin-top: 30upx;
| display: flex;
| align-items: center;
| justify-content: center;
| width: 600upx;
| height: 80upx;
| font-size: $font-lg;
| color: #fff;
| background-color: $base-color;
| border-radius: 10upx;
| &.hollow{
| background: #fff;
| color: #303133;
| border: 1px solid #ccc;
| }
| }
| </style>
|
|