OrderAuditResult.vue 6.27 KB
<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>