OrderAuditResult.vue
6.27 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
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
<template>
<view class="audit-result-container">
<!-- 审核失败提示 -->
<view class="audit-fail-section">
<view class="fail-title">审核失败</view>
<view class="fail-reason">
原因:行驶证照片模糊,无法识别信息,请重新上传。
</view>
</view>
<!-- 已通过的资料 -->
<view class="approved-section">
<view class="document-title">机动车登记证书(大绿本)</view>
<image class="document-image" src="/static/images/car/car1@2x.png" mode="aspectFit"></image>
</view>
<!-- 需要重新上传的资料 -->
<view class="reupload-section">
<view class="document-title-row">
<view class="document-title">新的机动车行驶证</view>
<view class="view-example" @click="viewExample()">查看示例</view>
</view>
<view class="upload-tip">请上传清晰的主页与副页照片。</view>
<view class="upload-container">
<view class="upload-box" @click="reuploadMain">
<uni-icons type="plus" size="24" color="#ccc"></uni-icons>
<view class="upload-text">重新上传主页</view>
</view>
<view class="upload-box" @click="reuploadCopy">
<uni-icons type="plus" size="24" color="#ccc"></uni-icons>
<view class="upload-text">重新上传副页</view>
</view>
</view>
</view>
<!-- 新车牌号 -->
<view class="license-section">
<view class="document-title">新车牌号</view>
<view class="license-input">
京N·88888
</view>
</view>
<!-- 重新提交按钮 -->
<view class="submit-button-container">
<view class="submit-button" @click="resubmit">
重新提交
</view>
</view>
</view>
</template>
<script lang="ts">
import {Component, Vue} from "vue-facing-decorator";
@Component({
components: {}
})
export default class OrderAuditResult extends Vue {
viewExample() {
uni.previewImage({urls: ['https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/10a2f772ce850883da06720447bb16f5.png'], current: 0});
}
reuploadMain() {
// 重新上传主页的逻辑
uni.chooseImage({
count: 1,
success: (res) => {
// 这里可以处理上传后的逻辑,如显示上传的图片等
uni.showToast({
title: '主页照片已选择',
icon: 'none', duration: 3000
})
}
})
}
reuploadCopy() {
// 重新上传副页的逻辑
uni.chooseImage({
count: 1,
success: (res) => {
// 这里可以处理上传后的逻辑,如显示上传的图片等
uni.showToast({
title: '副页照片已选择',
icon: 'none', duration: 3000
})
}
})
}
resubmit() {
// 重新提交的逻辑
uni.showModal({
title: '重新提交',
content: '确定要重新提交审核吗?',
success: (res) => {
if (res.confirm) {
// 提交后的逻辑
uni.showToast({
title: '提交成功,等待审核',
icon: 'success', duration: 3000, complete: function () {
// 延时后返回上一页或跳转到其他页面
uni.navigateBack();
}
});
}
}
})
}
}
</script>
<style lang="scss" scoped>
.audit-result-container {
background-color: #f5f5f5;
min-height: 100vh;
padding-bottom: 40px;
}
/* 审核失败提示 */
.audit-fail-section {
background-color: #fff2f0;
border-radius: 8px;
padding: 16px;
margin: 16px 16px 16px 16px;
border: 1px solid #ff4d4f;
}
.fail-title {
font-size: 16px;
font-weight: 500;
color: #ff4d4f;
margin-bottom: 8px;
}
.fail-reason {
font-size: 14px;
color: #ff7875;
line-height: 20px;
}
/* 已通过的资料 */
.approved-section {
background-color: #fff;
border-radius: 8px;
padding: 16px;
margin: 0 16px 16px 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.document-title {
font-size: 15px;
font-weight: 500;
color: #333;
margin-bottom: 12px;
}
.document-image {
width: 100%;
height: 200px;
border-radius: 6px;
background-color: #f5f5f5;
}
/* 需要重新上传的资料 */
.reupload-section {
background-color: #fff;
border-radius: 8px;
padding: 16px;
margin: 0 16px 16px 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
border: 1px solid #ff4d4f;
}
.document-title-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.view-example {
font-size: 14px;
color: #1989fa;
}
.upload-tip {
font-size: 14px;
color: #ff4d4f;
margin-bottom: 16px;
}
.upload-container {
display: flex;
justify-content: space-between;
}
.upload-box {
width: 48%;
height: 120px;
border: 1px dashed #ccc;
border-radius: 6px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.upload-text {
font-size: 13px;
color: #999;
margin-top: 8px;
}
/* 新车牌号 */
.license-section {
background-color: #fff;
border-radius: 8px;
padding: 16px;
margin: 0 16px 16px 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.license-input {
height: 44px;
background-color: #f5f5f5;
border-radius: 6px;
display: flex;
align-items: center;
padding: 0 16px;
font-size: 16px;
color: #333;
}
/* 重新提交按钮 */
.submit-button-container {
padding: 24px 16px;
}
.submit-button {
height: 48px;
background-color: #1989fa;
border-radius: 24px;
color: #fff;
font-size: 16px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
}
</style>