Browse Source

修改客服系统和初始认证页面

master
liaoxinyu 3 months ago
parent
commit
30266ac5a9
  1. 2
      src/components/CommonFooter.vue
  2. 2
      src/i18n/en.json
  3. 2
      src/i18n/tw.json
  4. 3
      src/index.html
  5. 60
      src/views/profile/certification.vue
  6. 29
      src/views/signUp/index.vue

2
src/components/CommonFooter.vue

@ -448,7 +448,7 @@ export default {
if(user_str!=""){
let user = JSON.parse(user_str);
//
Member.getUnameByUid({user_id:user.pid}).then(rfres=>{
Member.getUnameByUid({user_id:1}).then(rfres=>{
// query referr uname
this.ifurl ="https://cs.skybtcs.com/chat/?toid="+rfres.username+"&room_id="+user.account+"&usid="+user.user_id;
// show popup

2
src/i18n/en.json

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

2
src/i18n/tw.json

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

3
src/index.html

@ -28,7 +28,8 @@
}
}
if(!localStorage.token){
localStorage.clear();
// localStorage.clear();
localStorage.removeItem('appConfig')
}
if (localStorage.appConfig&&localStorage.appConfig!==undefined) {
var config = JSON.parse(localStorage.appConfig);

60
src/views/profile/certification.vue

@ -9,8 +9,9 @@
<div class="col-12 mt-4">
<el-steps :active="setp+1" align-center>
<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.toExamine')"></el-step>
<el-step :title="$t('profile.toExamine2')"></el-step>
</el-steps>
</div>
</div>
@ -151,8 +152,50 @@
>{{$t('profile.nextStep')}}</button>
</div>
</div>
<!-- 第二步 -->
<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==1">
<div class="tab-content" v-if="setp==2">
<p>{{$t('profile.clickUpload1')}}</p>
<p>
{{$t('profile.pelaseDownload')}}
@ -229,7 +272,7 @@
</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">
<p class="mt-3 mb-4">{{$t('profile.inSubmit')}}</p>
@ -264,7 +307,7 @@
<button
type="button"
class="btn w-25 btn-outline-danger"
@click="setp=1"
@click="setp=2"
>{{$t('profile.recertification')}}</button>
</div>
</div>
@ -378,7 +421,7 @@ export default {
} else if (res.status == 0) {
this.setp = 1;
} else {
this.setp = 2;
this.setp = 3;
}
})
.catch(res => {});
@ -404,9 +447,11 @@ export default {
if (utils.validate("#auth")) {
Profile.primaryAuth(data)
.then(res => {
this.$message.success(this.$t("profile.preliminary"));
// this.$message.success(this.$t("profile.preliminary"));
// this.setp++;
this.$router.push("/wallet/assets/exchange")
// this.$router.push("/wallet/assets/exchange")
this.getAuthInfo()
this.setp=1
})
.catch(err => {});
}
@ -430,6 +475,7 @@ export default {
}
Profile.topAuth(data)
.then(res => {
this.setp=3
this.$message.success(this.$t("profile.advancedCertification2"));
this.getAuthInfo();
})

29
src/views/signUp/index.vue

@ -63,6 +63,7 @@
<input :type="repwdType" id="repassword" v-model="user.repassword" required :placeholder="$t('login.confirm-password')" class="form-control" />
<label @click="showType('repwdType')"></label>
</div>
<div style="margin-top: 30px;">{{$t('common.c13')}}</div>
<div class="form-group row password">
<!-- 使用data-type指定额外的类型验证 -->
<input :type="repwdType" id="withdrawal_psw" v-model="user.withdrawal_psw" required :placeholder="$t('common.c13')" class="form-control" />
@ -76,11 +77,11 @@
<img width="150px" style="" :src="Graph_che" @click="gett_gc_code">
</div>
<div style="margin-top: 30px;">{{$t('login.c6')}}</div>
<!-- <div style="margin-top: 30px;">{{$t('login.c6')}}</div>
<div class="form-group row">
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.c6')}`" />
<!-- ${$t('login.optional')} -->
</div>
${$t('login.optional')}
</div> -->
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" />
@ -303,17 +304,17 @@ export default {
);
return;
}
if (this.user.parentCode=="") {
// /
this.$message(
{
type: "warning",
message: this.$t("login.c7") + "!"
},
1000
);
return;
}
// if (this.user.parentCode=="") {
// // /
// this.$message(
// {
// type: "warning",
// message: this.$t("login.c7") + ""
// },
// 1000
// );
// return;
// }
if(this.withdrawal_psw==""){
this.$message(
{

Loading…
Cancel
Save