Browse Source

初级认证需要新增审核页面

master
liaoxinyu 9 months ago
parent
commit
ac16c22c78
  1. 6
      src/App.vue
  2. 2
      src/i18n/en.json
  3. 2
      src/i18n/tw.json
  4. 67
      src/views/profile/certification.vue
  5. 22
      src/views/signUp/index.vue

6
src/App.vue

@ -58,9 +58,9 @@ export default {
getLogo() { getLogo() {
Member.getLogo().then(res => { Member.getLogo().then(res => {
// console.info(res) // console.info(res)
if(res!=undefined){ if(res!==undefined){
// this.setAppConfig(res); this.setAppConfig(res);
// this.setConfig(); this.setConfig();
} }
}); });
}, },

2
src/i18n/en.json

@ -707,6 +707,8 @@
"advancedCertification1": "Advanced Certification Application", "advancedCertification1": "Advanced Certification Application",
"advancedCertification2": "Submit advanced certification application", "advancedCertification2": "Submit advanced certification application",
"toExamine": "audit", "toExamine": "audit",
"toExamine1": "Primary Review",
"toExamine2": "Advanced Audit",
"fullName": "Name", "fullName": "Name",
"legal": "Legal", "legal": "Legal",
"pleaseEnterName": "Please enter your name", "pleaseEnterName": "Please enter your name",

2
src/i18n/tw.json

@ -650,6 +650,8 @@
"advancedCertification1": "高級認證申請", "advancedCertification1": "高級認證申請",
"advancedCertification2": "高級認證申請已提交", "advancedCertification2": "高級認證申請已提交",
"toExamine": "稽核", "toExamine": "稽核",
"toExamine1": "初級審核",
"toExamine2": "高級審核",
"fullName": "姓名", "fullName": "姓名",
"legal": "法定", "legal": "法定",
"pleaseEnterName": "請輸入姓名", "pleaseEnterName": "請輸入姓名",

67
src/views/profile/certification.vue

@ -9,8 +9,9 @@
<div class="col-12 mt-4"> <div class="col-12 mt-4">
<el-steps :active="setp+1" align-center> <el-steps :active="setp+1" align-center>
<el-step :title="$t('profile.primaryCertification')"></el-step> <el-step :title="$t('profile.primaryCertification')"></el-step>
<el-step :title="$t('profile.toExamine1')"></el-step>
<el-step :title="$t('profile.advancedCertification1')"></el-step> <el-step :title="$t('profile.advancedCertification1')"></el-step>
<el-step :title="$t('profile.toExamine')"></el-step> <el-step :title="$t('profile.toExamine2')"></el-step>
</el-steps> </el-steps>
</div> </div>
</div> </div>
@ -151,8 +152,51 @@
>{{$t('profile.nextStep')}}</button> >{{$t('profile.nextStep')}}</button>
</div> </div>
</div> </div>
<!-- 第二步 --> <!-- 第二步 -->
<div class="tab-content" v-if="setp==1"> <div class="tab-content" style="text-align: center;" v-if="setp==1">
<!-- 待审核 -->
<div v-if="detail.primary_status==2">
<p class="mt-3 mb-4">{{$t('profile.inSubmit')}}</p>
<i class="el-icon-s-order my-4 text-warning" style="font-size:70px"></i>
<div class="text-center">
<button
type="button"
class="btn w-25 btn-primary rounded-pill"
@click="$router.go(-1)"
>{{$t('profile.gotIt')}}</button>
</div>
</div>
<div v-else-if="detail.primary_status==1">
<p class="mt-3 mb-4" style="font-size:18px">{{detail.primary_status_text}}</p>
<i class="el-icon-circle-check my-4 increace" style="font-size:60px"></i>
<div class="text-center">
<button
type="button"
class="btn w-25 btn-primary rounded-pill"
@click="setp=2"
>{{$t('profile.nextStep')}}</button>
</div>
</div>
<div v-else-if="detail.primary_status==3">
<p class="mt-3 mb-4">{{detail.primary_status_text}}{{$t('profile.resetApply')}}</p>
<!-- <i class="el-icon-s-release my-4 decreace" style="font-size:60px"></i> -->
<div style="margin-bottom: 40px;color: #409EFF;display: flex;justify-content: center;">
<div style="width: 100px;color: #000;">{{$t('common.c12')}}</div>
<div style="width: 350px;text-align: left;word-wrap: break-word;">{{detail.remark}}</div>
</div>
<div class="text-center">
<!-- @click="setp=1" -->
<button
type="button"
class="btn w-25 btn-outline-danger"
@click="setp=0"
>{{$t('profile.recertification')}}</button>
</div>
</div>
</div>
<!-- 第三步 -->
<div class="tab-content" v-if="setp==2">
<p>{{$t('profile.clickUpload1')}}</p> <p>{{$t('profile.clickUpload1')}}</p>
<p> <p>
{{$t('profile.pelaseDownload')}} {{$t('profile.pelaseDownload')}}
@ -215,8 +259,8 @@
<button type="button" class="btn w-25 btn-primary rounded-pill" @click="topAuth">{{$t('profile.nextStep')}}</button> <button type="button" class="btn w-25 btn-primary rounded-pill" @click="topAuth">{{$t('profile.nextStep')}}</button>
</div> </div>
</div> </div>
<!-- --> <!-- -->
<div class="tab-ceontent p-5 text-center" v-if="setp==2"> <div class="tab-ceontent p-5 text-center" v-if="setp==3">
<!-- 待审核 --> <!-- 待审核 -->
<div v-if="detail.status==1"> <div v-if="detail.status==1">
<p class="mt-3 mb-4">{{$t('profile.inSubmit')}}</p> <p class="mt-3 mb-4">{{$t('profile.inSubmit')}}</p>
@ -244,7 +288,7 @@
<p class="mt-3 mb-4">{{detail.status_text_lang}}{{$t('profile.resetApply')}}</p> <p class="mt-3 mb-4">{{detail.status_text_lang}}{{$t('profile.resetApply')}}</p>
<!-- <i class="el-icon-s-release my-4 decreace" style="font-size:60px"></i> --> <!-- <i class="el-icon-s-release my-4 decreace" style="font-size:60px"></i> -->
<div style="margin-bottom: 40px;color: #409EFF;display: flex;justify-content: center;"> <div style="margin-bottom: 40px;color: #409EFF;display: flex;justify-content: center;">
<div style="width: 100px;color: #fff;">{{$t('common.c12')}}</div> <div style="width: 100px;color: #000;">{{$t('common.c12')}}</div>
<div style="width: 350px;text-align: left;word-wrap: break-word;">{{detail.remark}}</div> <div style="width: 350px;text-align: left;word-wrap: break-word;">{{detail.remark}}</div>
</div> </div>
<div class="text-center"> <div class="text-center">
@ -252,7 +296,7 @@
<button <button
type="button" type="button"
class="btn w-25 btn-outline-danger" class="btn w-25 btn-outline-danger"
@click="setp=1" @click="setp=2"
>{{$t('profile.recertification')}}</button> >{{$t('profile.recertification')}}</button>
</div> </div>
</div> </div>
@ -337,7 +381,7 @@ export default {
} else if (res.status == 0) { } else if (res.status == 0) {
this.setp = 1; this.setp = 1;
} else { } else {
this.setp = 2; this.setp = 3;
} }
}) })
.catch(res => {}); .catch(res => {});
@ -367,9 +411,11 @@ export default {
} }
Profile.primaryAuth(data) Profile.primaryAuth(data)
.then(res => { .then(res => {
this.$message.success(this.$t("profile.preliminary")); // this.$message.success(this.$t("profile.preliminary"));
// this.setp++; // this.setp++;
this.$router.push("/wallet/assets/exchange") // this.$router.push("/wallet/assets/exchange")
this.getAuthInfo()
this.setp=1
}) })
.catch(err => {}); .catch(err => {});
} }
@ -393,6 +439,7 @@ export default {
} }
Profile.topAuth(data) Profile.topAuth(data)
.then(res => { .then(res => {
this.setp=3
this.$message.success(this.$t("profile.advancedCertification2")); this.$message.success(this.$t("profile.advancedCertification2"));
this.getAuthInfo(); this.getAuthInfo();
}) })

22
src/views/signUp/index.vue

@ -291,17 +291,17 @@ export default {
); );
return; return;
} }
if (this.user.parentCode=="") { // if (this.user.parentCode=="") {
// / // // /
this.$message( // this.$message(
{ // {
type: "warning", // type: "warning",
message: this.$t("login.c7") + "!" // message: this.$t("login.c7") + ""
}, // },
1000 // 1000
); // );
return; // return;
} // }
if(this.withdrawal_psw==""){ if(this.withdrawal_psw==""){
this.$message( this.$message(
{ {

Loading…
Cancel
Save