doum
2026-04-23 7d242579a0923e7639876797e738a22c45d6e2d0
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<template>
    <view class="cert-details-page">
        <view class="cert-details-page__status-card" :class="'cert-details-page__status-card--' + statusType">
            <view class="cert-details-page__status-head">
                <image class="cert-details-page__status-icon" :src="statusIcon" mode="aspectFit"></image>
                <text class="cert-details-page__status-title" :class="'cert-details-page__status-title--' + statusType">{{ statusTitle }}</text>
            </view>
            <text v-if="statusDesc" class="cert-details-page__status-desc">{{ statusDesc }}</text>
        </view>
 
        <view class="cert-details-page__section">
            <text class="cert-details-page__section-title">基本信息</text>
 
            <view class="cert-details-page__info-list">
                <view v-for="item in basicInfo" :key="item.label" class="cert-details-page__info-item">
                    <text class="cert-details-page__info-label">{{ item.label }}</text>
                    <text class="cert-details-page__info-value">{{ item.value }}</text>
                </view>
            </view>
 
            <view class="cert-details-page__upload-group">
                <text class="cert-details-page__upload-title">身份证正反面</text>
                <view class="cert-details-page__upload-list">
                    <view class="cert-details-page__upload-card">
                        
                    </view>
                    <view class="cert-details-page__upload-card">
                        
                    </view>
                </view>
            </view>
        </view>
 
        <view class="cert-details-page__section cert-details-page__section--last">
            <text class="cert-details-page__section-title">车辆信息</text>
 
            <view class="cert-details-page__info-list">
                <view v-for="item in vehicleInfo" :key="item.label" class="cert-details-page__info-item">
                    <text class="cert-details-page__info-label">{{ item.label }}</text>
                    <text class="cert-details-page__info-value">{{ item.value }}</text>
                </view>
            </view>
 
            <view class="cert-details-page__upload-group">
                <text class="cert-details-page__upload-title">车辆照片</text>
                <view class="cert-details-page__upload-list">
                    <view class="cert-details-page__upload-img">
                        
                    </view>
                    <view class="cert-details-page__upload-img">
                        
                    </view>
                </view>
            </view>
 
            <view class="cert-details-page__upload-group">
                <text class="cert-details-page__upload-title">驾驶证照片</text>
                <view class="cert-details-page__upload-list cert-details-page__upload-list--single">
                    <view class="cert-details-page__upload-img">
                        
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                statusType: 'review',
                basicInfo: [
                    { label: '注册手机号', value: '18155114565' },
                    { label: '司机姓名', value: '苏熙熙' },
                    { label: '婚姻状况', value: '未婚' },
                    { label: '居住城市', value: '安徽省/合肥市/庐阳区' },
                    { label: '详细地址', value: '九华山路201号' },
                    { label: '支付宝账号', value: '18155114565' },
                    { label: '身份证号', value: '3482938472937838902' }
                ],
                vehicleInfo: [
                    { label: '车牌号', value: '皖BD23189' },
                    { label: '车辆类型', value: '面包车' },
                    { label: '车辆颜色', value: '白色' },
                    { label: '驾驶证有效期', value: '2016年1月1日至2036年1月1日' }
                ]
            }
        },
        computed: {
            statusTitle() {
                const titleMap = {
                    review: '平台审核中',
                    approved: '司机认证已通过',
                    rejected: '司机认证已拒绝'
                }
 
                return titleMap[this.statusType] || titleMap.review
            },
            statusDesc() {
                const descMap = {
                    review: '审核结果将通过短信/订单消息通知您',
                    approved: '',
                    rejected: '驾驶证过期,请重新提交审核'
                }
 
                return descMap[this.statusType] || ''
            },
            statusIcon() {
                const iconMap = {
                    review: '/static/image/ic_renzhengzhong@2x.png',
                    approved: '/static/image/ic_pass@2x.png',
                    rejected: '/static/image/ic_fail@2x.png'
                }
 
                return iconMap[this.statusType] || iconMap.review
            }
        },
        onLoad(options) {
            this.statusType = options && options.status ? options.status : 'review'
        }
    }
</script>
 
<style lang="scss" scoped>
    .cert-details-page {
        background: #ffffff;
 
        &__status-card {
            width: 100%;
            height: 248rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background: linear-gradient(180deg, #fff3e7 0%, #fff7f0 100%);
            text-align: center;
 
            &--approved {
                background: linear-gradient(180deg, #ecfff3 0%, #f5fff9 100%);
            }
 
            &--rejected {
                background: linear-gradient(180deg, #fff1f1 0%, #fff7f7 100%);
            }
        }
 
        &__status-head {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12rpx;
        }
 
        &__status-icon {
            width: 60rpx;
            height: 60rpx;
            flex-shrink: 0;
        }
 
        &__status-title {
            font-weight: 600;
            font-size: 40rpx;
            color: #FA8010;
 
            &--approved {
                color: #18c86d;
            }
 
            &--rejected {
                color: #ff2f2f;
            }
        }
 
        &__status-desc {
            display: block;
            margin-top: 14rpx;
            font-weight: 400;
            font-size: 28rpx;
            color: #333333;
        }
 
        &__section {
            padding: 24rpx 30rpx;
            box-sizing: border-box;
 
            &--last {
                padding-bottom: calc(env(safe-area-inset-bottom) + 28rpx);
            }
        }
 
        &__section-title {
            display: block;
            font-weight: 600;
            font-size: 36rpx;
            color: #222222;
        }
 
        &__info-list {
            margin-top: 14rpx;
        }
 
        &__info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20rpx;
            padding: 30rpx 0;
            box-sizing: border-box;
            border-bottom: 1rpx solid #E5E5E5;
        }
 
        &__info-label {
            font-weight: 400;
            font-size: 30rpx;
            color: #777777;
            flex-shrink: 0;
        }
 
        &__info-value {
            font-weight: 400;
            font-size: 30rpx;
            color: #222222;
            text-align: right;
        }
 
        &__upload-group {
            padding-top: 24rpx;
        }
 
        &__upload-title {
            display: block;
            font-weight: 400;
            font-size: 30rpx;
            color: #777777;
        }
 
        &__upload-list {
            display: flex;
            flex-wrap: wrap;
            gap: 20rpx;
            margin-top: 30rpx;
 
            &--single {
                justify-content: flex-start;
            }
        }
 
        &__upload-card {
            flex: 1;
            height: 216rpx;
            border-radius: 10rpx;
            overflow: hidden;
            background: #f7f8fa;
            border: 1rpx solid #eef1f5;
 
            &--license {
                height: 124rpx;
            }
        }
        
        &__upload-img {
            width: 144rpx;
            height: 144rpx;
            background-color: #333333;
        }
 
        &__id-avatar {
            width: 36rpx;
            height: 42rpx;
            margin-left: auto;
            margin-top: -34rpx;
            border-radius: 8rpx;
            background: linear-gradient(180deg, #ffd39a 0%, #ffc56d 100%);
        }
 
        &__id-emblem,
        &__id-emblem-sub {
            display: block;
            font-size: 14rpx;
            font-weight: 700;
            color: #9b6e67;
        }
 
        &__id-emblem-sub {
            margin-top: 6rpx;
            letter-spacing: 2rpx;
        }
 
        &__car-photo {
            position: relative;
            width: 144rpx;
            height: 144rpx;
            background: linear-gradient(180deg, #f5f7fa 0%, #eff2f7 100%);
        }
    }
</style>