MrShi
昨天 cfeeba575b1a9934bec9e57141a21f17ad96a6ac
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
    <view class="pay-success-page">
        <view class="page-body">
            <view class="success-block">
                <view class="success-line">
                    <view class="success-icon">
                        <image src="/static/icon/diancan_ic_success@2x.png" mode="widthFix"></image>
                    </view>
                    <text class="success-title">支付成功</text>
                </view>
                <text class="success-desc">可在个人中心“我的订单”页面查看</text>
                <view class="action-row">
                    <view class="ghost-btn" @tap="goHome">回到首页</view>
                    <view class="outline-btn" @tap="viewOrder">查看订单</view>
                </view>
            </view>
 
            <view class="pickup-card">
                <text class="pickup-title">自提码</text>
                <view class="qrcode-box">
                    <image class="qrcode-image" src="" mode="aspectFit"></image>
                </view>
                <text class="pickup-code">38389</text>
                <text class="pickup-tip" @tap="copyCode">点击复制自提码</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        methods: {
            goHome() {
                uni.switchTab({
                    url: '/pages/index/index'
                })
            },
            viewOrder() {
                uni.switchTab({
                    url: '/pages/itinerary/itinerary'
                })
            },
            copyCode() {
                uni.setClipboardData({
                    data: '38389',
                    success: () => {
                        uni.showToast({
                            title: '已复制自提码',
                            icon: 'none'
                        })
                    }
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .pay-success-page {
        min-height: 100vh;
        background: #ffffff;
    }
 
    .page-body {
        padding: 62rpx 40rpx;
        box-sizing: border-box;
    }
 
    .success-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .success-line {
        display: flex;
        align-items: center;
    }
 
    .success-icon {
        width: 40rpx;
        height: 40rpx;
        margin-right: 14rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        image {
            width: 100%;
        }
    }
 
    .success-title {
        font-weight: 500;
        font-size: 30rpx;
        color: #333333;
    }
 
    .success-desc {
        font-weight: 400;
        font-size: 24rpx;
        color: #999999;
        margin-top: 40rpx;
    }
 
    .action-row {
        margin-top: 60rpx;
        display: flex;
        justify-content: center;
        gap: 24rpx;
    }
 
    .ghost-btn,
    .outline-btn {
        width: 260rpx;
        height: 88rpx;
        border-radius: 50rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28rpx;
        box-sizing: border-box;
    }
 
    .ghost-btn {
        border: 1rpx solid #CCCCCC;
        color: #666666;
        background: #ffffff;
    }
 
    .outline-btn {
        border: 1rpx solid #10B2FA;
        color: #10B2FA;
        background: #ffffff;
    }
 
    .pickup-card {
        margin-top: 72rpx;
        padding: 46rpx 36rpx 42rpx;
        border-radius: 24rpx;
        background: #f7f9fc;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .pickup-title {
        font-weight: 500;
        font-size: 34rpx;
        color: #222222;
    }
 
    .qrcode-box {
        margin-top: 40rpx;
        width: 360rpx;
        height: 360rpx;
        border-radius: 8rpx;
        box-sizing: border-box;
    }
 
    .qrcode-image {
        width: 100%;
        height: 100%;
        background: #f4f6fa;
    }
 
    .pickup-code {
        margin-top: 32rpx;
        font-weight: 600;
        font-size: 36rpx;
        color: #222222;
    }
 
    .pickup-tip {
        font-weight: 400;
        font-size: 24rpx;
        color: #999999;
        margin-top: 24rpx;
    }
</style>