<template>
    <!-- 顶部导航栏 -->
    <van-nav-bar class="navBar" :fixed="true">
            <template #left>
                <div>
                    <van-icon name="cross" size="18" color="#333333"/>
                </div>
            </template>
            <template #right>
                <van-icon name="ellipsis" size="18" color="#333333"/>
            </template>
    </van-nav-bar>
    <div class="content">
        <div class="real_name_authentication">实名认证</div>
        <div class="real_name_authentication_tip">认证成功后不能修改，请使用本人身份信息完成认证</div>
        <div class="real_name_authentication_text">
            <div class="real_name_authentication_text_title">姓名</div>
            <input type="text" placeholder="请输入您真实姓名" class="real_name_authentication_text_input">
        </div>
        <div class="real_name_authentication_text">
            <div class="real_name_authentication_text_title">手机号码</div>
            <input type="text" placeholder="请输入您的手机号码" class="real_name_authentication_text_input">
        </div>
        <div class="real_name_authentication_text">
            <div class="real_name_authentication_text_title">身份证号</div>
            <input type="text" placeholder="请输入18位身份证号" class="real_name_authentication_text_input">
        </div>
        <div class="iD_card_upload">
            <div class="iD_card_upload_title">身份证照片(正面照)</div>
            <div class="iD_card_upload_con">
                <van-uploader :after-read="afterRead" class="avatar"/>
                <img :src="require('@assets/icon_shangchuan.png')" alt="" class="iD_card_upload_con_img">
                <div class="iD_card_upload_con_text">点击上传</div>
            </div>
        </div>
        <div class="iD_card_upload">
            <div class="iD_card_upload_title">身份证照片(正面照)</div>
            <div class="iD_card_upload_con">
                <van-uploader :after-read="afterRead" class="avatar"/>
                <img :src="require('@assets/icon_shangchuan.png')" alt="" class="iD_card_upload_con_img">
                <div class="iD_card_upload_con_text">点击上传</div>
            </div>
        </div>
        <!-- <van-field
        v-model="userName"
        name="姓名"
        label="姓名"
        placeholder="请输入您真实姓名"
        />
        <van-field
        v-model="userPhone"
        name="手机号码"
        label="手机号码"
        placeholder="请输入您的手机号码"
        :rules="[{ required: true, message: '请填写手机号码' }]"
        />
        <van-field
        v-model="userId"
        name="身份证号"
        label="身份证号"
        placeholder="请输入18位身份证号"
        :rules="[{ required: true, message: '请填写身份证号' }]"
        /> -->
    </div>
    <div class="next_step">
        <div class="next_step_con" @click="submitReview">提交审核</div>
    </div>
</template>

<script>
export default {
    setup() {
        const afterRead = (file) => {
            // 此时可以自行将文件上传至服务器
            console.log("1111111111",file);
        }
        return {
            afterRead,
        }
    },
    data(){
        return{
            
        }
    },
    methods: {
        // 提交审核
        submitReview(){
            this.$router.push("/authenticationStatus")
        }
    }
}
</script>

<style lang="less" scoped>
    .navBar{
        width: 100%;
        height: 44px;
    }
    .content{
        width: 100%;
        height: 100%;
        position: absolute;
        background: @bg;
        margin-top: 44px;
        padding: 16px;
        padding-bottom: 0;
        box-sizing: border-box;
        .real_name_authentication{
            font-size: 20px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            margin-bottom: 6px;
        }
        .real_name_authentication_tip{
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #FFCA5E;
            margin-bottom: 30px;
        }
        .real_name_authentication_text{
            width: 100%;
            height: 36px;
            margin-bottom: 16px;
            display: flex;
            .real_name_authentication_text_title{
                padding-top: 3px;
                box-sizing: border-box;
                width: 56px;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #FFFFFF;
                margin-right: 22px;
            }
            .real_name_authentication_text_input{
                width: 265px;
                padding-bottom: 12px;
                box-sizing: border-box;
                border: none;
                border-bottom: 1px solid #5F646F;
                background: @bg;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #5F646F;
            }
        }
        .iD_card_upload{
            display: flex;
            margin-bottom: 16px;
            .iD_card_upload_title{
                width: 70px;
                font-size: 14px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #FFFFFF;
                line-height: 20px;
                margin-right: 8px;
            }
            .iD_card_upload_con{
                position: relative;
                margin-top: 6px;
                width: 160px;
                height: 160px;
                border-radius: 8px;
                opacity: 0.2;
                border: 1px dashed #5F646F;
                .avatar{
                    width: 160px;
                    height: 160px;
                    position: absolute;
                    right: 0;
                    top: 0;
                    opacity: 0;
                    bottom: 0;
                }
                .iD_card_upload_con_img{
                    width: 24px;
                    height: 24px;
                    margin: 56px 0 6px 68px;
                }
                .iD_card_upload_con_text{
                    font-size: 12px;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #5F646F;
                    margin-left: 56px;
                }
            }
        }
    }
    /deep/ .van-uploader__upload{
        width: 160px;
        height: 160px;
    }
    .next_step{
        width: 100%;
        height: 56px;
        position: fixed;
        bottom: 0;
        padding: 8px 16px;
        box-sizing: border-box;
        background: #15152D;
        .next_step_con{
            width: 100%;
            height: 40px;
            background: #28B6FF;
            border-radius: 8px;
            line-height: 40px;
            text-align: center;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
        }
    }
</style>
