|
@@ -0,0 +1,225 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="right-modifyPsw">
|
|
|
|
+ <div class="right-modifyPsw-title">
|
|
|
|
+ <span style="font-size: 18px;font-weight: bold">个人认证</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="individual-steps-wrapper">
|
|
|
|
+ <el-steps :active="active" process-status="finish" style="margin-bottom: 20px;width: 300px">
|
|
|
|
+ <el-step title="填写认证信息"></el-step>
|
|
|
|
+ <el-step title="认证结果"></el-step>
|
|
|
|
+ </el-steps>
|
|
|
|
+ </div>
|
|
|
|
+ <el-form ref="form" :model="form" label-width="120px" style="width: 70%">
|
|
|
|
+ <el-form-item label="真实姓名">
|
|
|
|
+ <el-input v-model="individualForm.username" placeholder="请输入您的姓名,需与身份证保持一致"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="身份证号码">
|
|
|
|
+ <el-input v-model="individualForm.idnumber" placeholder="身份证前后不能有空格"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="性别">
|
|
|
|
+ <el-radio-group v-model="individualForm.gender">
|
|
|
|
+ <el-radio label="男"></el-radio>
|
|
|
|
+ <el-radio label="女"></el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="身份证到期时间">
|
|
|
|
+ <el-input v-model="individualForm.idDate" placeholder="请按身份证背面“有效期限”如实填写"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="家庭或单位地址">
|
|
|
|
+ <el-input v-model="individualForm.address"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div class="upload-wrapper">
|
|
|
|
+ <el-row style="width: 100%">
|
|
|
|
+ <el-col :span="9" style="padding-left: 30px">
|
|
|
|
+ <div>
|
|
|
|
+ <el-upload
|
|
|
|
+ class="avatar-uploader"
|
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :on-success="handleAvatarSuccess"
|
|
|
|
+ :before-upload="beforeAvatarUpload">
|
|
|
|
+ <img v-if="imageUrl" :src="imageUrl" class="avatar">
|
|
|
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
+ </el-upload>
|
|
|
|
+ <div style="text-align: center">手持身份证正面照</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="15">
|
|
|
|
+ <div class="authentication-detail">
|
|
|
|
+ <div class="authentication-detail-title">证件要求</div>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="11">
|
|
|
|
+ <div class="idcard-example1"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="13" style="padding-left: 10px">
|
|
|
|
+ <ul class="authentication-detail-list">
|
|
|
|
+ <li>请上传本人<span class="authentication-detail-list-blue">手持</span>身份证正面头部照片和上 半身照片</li>
|
|
|
|
+ <li>照片为免冠、未化妆的数码照片原始图片<span class="authentication-detail-list-blue">请勿用任何软件编辑修改</span></li>
|
|
|
|
+ <li>必须看清证件信息,且证件信息不能被遮挡, 持证人五官清晰可见</li>
|
|
|
|
+ <li>仅支持.jpg .bmp .png .gif的图片格式,图 片大小不超过3M</li>
|
|
|
|
+ <li>核实手持证件与原件方向一致,对焦身份证 进行拍照</li>
|
|
|
|
+ <li>您提供的照片众测服务平台将予以保护,不 会用于其他用途</li>
|
|
|
|
+ </ul>
|
|
|
|
+ <a class="authentication-detail-list-blue">实名认证帮助></a>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row style="width: 100%">
|
|
|
|
+ <el-col :span="9" style="padding-left: 30px">
|
|
|
|
+ <div>
|
|
|
|
+ <el-upload
|
|
|
|
+ class="avatar-uploader"
|
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :on-success="handleAvatarSuccess"
|
|
|
|
+ :before-upload="beforeAvatarUpload">
|
|
|
|
+ <img v-if="imageUrl" :src="imageUrl" class="avatar">
|
|
|
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
+ </el-upload>
|
|
|
|
+ <div style="text-align: center">身份证反面照</div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="15">
|
|
|
|
+ <div class="authentication-detail">
|
|
|
|
+ <div style="height: 40px;width: 100%"></div>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="11">
|
|
|
|
+ <div class="idcard-example2"></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="13" style="padding-left: 10px">
|
|
|
|
+ <ul class="authentication-detail-list">
|
|
|
|
+ <li>必须看清证件信息,且证件信息不能被遮挡</li>
|
|
|
|
+ <li>仅支持.jpg .bmp .png .gif的图片格式,图 片大小不超过3M</li>
|
|
|
|
+ <li>您提供的照片众测服务平台将予以保护,不 会用于其他用途</li>
|
|
|
|
+ </ul>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="enterprise-brn-wrapper">
|
|
|
|
+ <button class="enterprise-btn previousBtn">上一步</button>
|
|
|
|
+ <button class="enterprise-btn nextBtn">提交审核</button>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ export default {
|
|
|
|
+ name: "IndividualAuth",
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ active: 0,
|
|
|
|
+ imageUrl: '',
|
|
|
|
+ individualForm:{}
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods:{
|
|
|
|
+ handleAvatarSuccess(res, file) {
|
|
|
|
+ this.imageUrl = URL.createObjectURL(file.raw);
|
|
|
|
+ },
|
|
|
|
+ beforeAvatarUpload(file) {
|
|
|
|
+ const isJPG = file.type === 'image/jpeg';
|
|
|
|
+ const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
|
+
|
|
|
|
+ if (!isJPG) {
|
|
|
|
+ this.$message.error('上传头像图片只能是 JPG 格式!');
|
|
|
|
+ }
|
|
|
|
+ if (!isLt2M) {
|
|
|
|
+ this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
|
|
+ }
|
|
|
|
+ return isJPG && isLt2M;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style scoped lang="less">
|
|
|
|
+
|
|
|
|
+ .right-modifyPsw {
|
|
|
|
+ padding: 20px;
|
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
|
+ box-shadow: 0px 1px 6px 0px rgba(8, 6, 6, 0.13);
|
|
|
|
+
|
|
|
|
+ .right-modifyPsw-title {
|
|
|
|
+ padding: 10px;
|
|
|
|
+ border-bottom: 1px solid #ccc;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .individual-steps-wrapper {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ }
|
|
|
|
+ .upload-wrapper {
|
|
|
|
+ /*display: flex;*/
|
|
|
|
+ /*padding: 0 30px;*/
|
|
|
|
+
|
|
|
|
+ .authentication-detail {
|
|
|
|
+ padding-left:20px;
|
|
|
|
+ border-left: 1px solid rgba(220,220,220,1);
|
|
|
|
+ .authentication-detail-title {
|
|
|
|
+ font-size:16px;
|
|
|
|
+ font-family:Source Han Sans CN;
|
|
|
|
+ font-weight:600;
|
|
|
|
+ border-bottom: 1px dashed rgba(220,220,220,1);
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+ padding-bottom: 5px;
|
|
|
|
+ }
|
|
|
|
+ .idcard-example1 {
|
|
|
|
+ height: 140px;
|
|
|
|
+ background-image: url("../../assets/img/idcard-example1.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ }
|
|
|
|
+ .idcard-example2 {
|
|
|
|
+ height: 140px;
|
|
|
|
+ background-image: url("../../assets/img/idcard-example2.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .authentication-detail-list {
|
|
|
|
+ list-style-type: none;
|
|
|
|
+ padding-left: 0;
|
|
|
|
+ font-size:12px;
|
|
|
|
+ font-family:Source Han Sans CN;
|
|
|
|
+ font-weight:400;
|
|
|
|
+ color:rgba(153,153,153,1);
|
|
|
|
+ li:before{
|
|
|
|
+ content: "\2022";
|
|
|
|
+ color: rgba(153,153,153,1);
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ margin-right: 10px;
|
|
|
|
+ }
|
|
|
|
+ .authentication-detail-list-blue{
|
|
|
|
+ color: #148AE0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .enterprise-brn-wrapper {
|
|
|
|
+ margin-top: 40px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ .enterprise-btn{
|
|
|
|
+ border: 1px solid rgba(0,118,203,1);
|
|
|
|
+ width: 150px;
|
|
|
|
+ background-color: white;
|
|
|
|
+ color:rgba(0,118,203,1) ;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ margin: 0 30px;
|
|
|
|
+ }
|
|
|
|
+ .nextBtn {
|
|
|
|
+ background-color:rgba(0,118,203,1);
|
|
|
|
+ color: white;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+</style>
|