Browse Source

实名认证

master
luyisha 3 years ago
parent
commit
f922187b9b
  1. BIN
      dist.zip
  2. 4
      src/api/server/index.js
  3. 138
      src/views/profile/certification.vue

BIN
dist88.zip → dist.zip

Binary file not shown.

4
src/api/server/index.js

@ -59,8 +59,8 @@ Object.assign(settings, {
// api请求根地址 打包使用完整地址 调试使用本地服务器代理 避免跨域
// baseURL: process.env.NODE_ENV == 'production' ? 'http://qkladmin2.ruanmeng.top/api/' : '/api/',
// baseURL: process.env.NODE_ENV == 'production' ? 'https://guanli.coin.amatak.net/api/' : '/api/',
// baseURL: process.env.NODE_ENV == 'production' ? 'https://ser.xtzcoin.com/api/' : '/api/',
baseURL: process.env.NODE_ENV == 'production' ? 'https://ser.xtzcoin.com/api/' : 'https://ser.xtzcoin.com/api/',
baseURL: process.env.NODE_ENV == 'production' ? 'https://ser.xtzcoin.com/api/' : '/api/',
// baseURL: process.env.NODE_ENV == 'production' ? 'https://ser.xtzcoin.com/api/' : 'https://ser.xtzcoin.com/api/',
// baseURL: 'https://aaccdd.kixcoin.org/api/' ,
// baseURL: 'https://guanli.coin.amatak.net/api/',
// baseURL: 'https://api.hipc.world/',

138
src/views/profile/certification.vue

@ -9,7 +9,7 @@
<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.advancedCertification')"></el-step>
<!-- <el-step :title="$t('profile.advancedCertification')"></el-step> -->
<el-step :title="$t('profile.toExamine')"></el-step>
</el-steps>
</div>
@ -17,7 +17,7 @@
<div class="row">
<div class="col-9 mx-auto mt-4 panel-box shadow-sm bg-panel" id="auth">
<!-- 第一步 -->
<div class="tab-content" v-if="setp==0">
<div class="tab-content" v-if="setp==0 && detail.status!==1">
<div class="form-row">
<div class="form-group col-md-6">
<label>{{$t('profile.fullName')}}{{$t('profile.legal')}}*</label>
@ -29,7 +29,7 @@
:placeholder="$t('profile.pleaseEnterName')"
/>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-6" v-if="0">
<label>{{$t('profile.dateOfBirth')}}YYYY-MM-DD*</label>
<el-date-picker
required
@ -62,8 +62,8 @@
/>
</div>
</div>
<div class="label my-2 blue">{{$t('profile.addressInfo')}}</div>
<div class="form-group">
<!-- <div class="label my-2 blue">{{$t('profile.addressInfo')}}</div> -->
<!-- <div class="form-group">
<label>{{$t('profile.residentialAddress')}}*</label>
<input
type="text"
@ -72,7 +72,7 @@
class="form-control"
:placeholder="$t('profile.residentialAddress1')"
/>
</div>
</div> -->
<!-- <div class="form-row">
<div class="form-group col-md-6">
<label>{{$t('profile.ciy')}}*</label>
@ -99,8 +99,8 @@
<label>{{$t('profile.additionalInformation')}}{{$t('profile.optional')}}</label>
<input type="text" v-model="form.extra" class="form-control" placeholder />
</div> -->
<div class="label my-2 blue">{{$t('profile.contactInformation')}}</div>
<div class="form-row">
<!-- <div class="label my-2 blue">{{$t('profile.contactInformation')}}</div> -->
<div class="form-row" v-if="0">
<!-- <div class="form-group col-md-12"> -->
<!-- <label>{{$t('profile.phoneNumber')}}*</label> -->
<!-- <div class="input-group mb-3"> -->
@ -142,23 +142,16 @@
<!-- </div>
</div> -->
</div>
<div class="text-center">
<!-- <div class="text-center"> -->
<!-- <button type="button" class="btn w-25 btn-primary rounded-pill" @click="primaryAuth" >{{$t('profile.nextStep')}}</button> -->
<!-- <button
type="button"
class="btn w-25 btn-primary rounded-pill"
@click="primaryAuth"
>{{$t('profile.nextStep')}}</button> -->
<button
type="button"
class="btn w-25 rounded-pill"
@click="primaryAuth"
style="background: #F7D558;"
>{{$t('profile.nextStep')}}</button>
</div>
</div>
<!-- 第二步 -->
<div class="tab-content" v-if="setp==1">
<p>{{$t('profile.clickUpload1')}}</p>
>{{$t('profile.nextStep')}}</button> -->
<!-- </div> -->
<p style="margin-top: 10px;">{{$t('profile.clickUpload1')}}</p>
<p>
{{$t('profile.pelaseDownload')}}
<span
@ -177,32 +170,34 @@
<li class="mb-2">3. {{$t('profile.fileFormat')}}pdf./ gif./ jpeg./jpg./png.</li>
<li class="mb-2">4. {{$t('profile.maximumFileSize')}}5 MB</li>
</ul>
<upload-img
class="mb-3"
v-model="topForm.front_img"
required
:placeholder="$t('profile.uploadPhoto')"
>
<template #text>
<div class="el-upload__text">
{{$t('profile.positive')}}-{{$t('profile.dragHere')}}
<em style="color:#F7D558">{{$t('profile.clickUpload')}}</em>
</div>
</template>
</upload-img>
<upload-img
class="mb-3"
v-model="topForm.back_img"
required
:placeholder="$t('profile.reversePhoto')"
>
<template #text>
<div class="el-upload__text">
{{$t('profile.theOtherSide')}}-{{$t('profile.dragHere')}}
<em style="color:#F7D558">{{$t('profile.clickUpload')}}</em>
</div>
</template>
</upload-img>
<div class="d-flex">
<upload-img
class="mb-3 mr-4"
v-model="topForm.front_img"
required
:placeholder="$t('profile.uploadPhoto')"
>
<template #text>
<div class="el-upload__text">
{{$t('profile.positive')}}-{{$t('profile.dragHere')}}
<em style="color:#F7D558">{{$t('profile.clickUpload')}}</em>
</div>
</template>
</upload-img>
<upload-img
class="mb-3"
v-model="topForm.back_img"
required
:placeholder="$t('profile.reversePhoto')"
>
<template #text>
<div class="el-upload__text">
{{$t('profile.theOtherSide')}}-{{$t('profile.dragHere')}}
<em style="color:#F7D558">{{$t('profile.clickUpload')}}</em>
</div>
</template>
</upload-img>
</div>
<!-- <upload-img
class="mb-3"
v-model="topForm.front_img"
@ -218,11 +213,12 @@
</upload-img> -->
<div class="text-center mt-3">
<!-- <button type="button" class="btn w-25 btn-primary rounded-pill" @click="topAuth">{{$t('profile.nextStep')}}</button> -->
<button type="button" class="btn w-25 rounded-pill" style="background: #F7D558;" @click="topAuth">{{$t('profile.nextStep')}}</button>
<button type="button" class="btn w-25 rounded-pill" style="background: #F7D558;" @click="primaryAuth">{{$t('profile.nextStep')}}</button>
</div>
</div>
<!-- 第三步 -->
<div class="tab-ceontent p-5 text-center" v-if="setp==2">
<!-- 第二步 -->
<div class="tab-ceontent p-5 text-center" v-else>
<!-- 待审核 -->
<div v-if="detail.status==1">
<p class="mt-3 mb-4">{{$t('profile.inSubmit')}}</p>
@ -240,7 +236,7 @@
>{{$t('profile.gotIt')}}</button>
</div>
</div>
<div v-else-if="detail.status==2">
<div v-if="detail.status==2">
<p class="mt-3 mb-4" style="font-size:18px">{{$t('profile.congratulations')}}{{detail.status_text_lang}}</p>
<!-- <i class="el-icon-circle-check my-4 increase" style="font-size:60px"></i> -->
<img src="../../assets/img/success.png" alt="" width="50px" style="margin: 24px auto;">
@ -252,7 +248,7 @@
>{{$t('profile.back')}}</button>
</div>
</div>
<div v-else-if="detail.status==3">
<div v-if="detail.status==3">
<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>
<div class="text-center">
@ -335,14 +331,23 @@ export default {
Profile.getAuthInfo()
.then(res => {
this.detail = res;
/**
* status审核状态
高级认证状态 0未认证,1待审核,2已通过,3已驳回
primary_status实名状态
0未实名1已实名
*/
//
// if (res.primary_status !== 0) {
// this.setp = 0;
// return;
// } else
if (res.primary_status == 0) {
this.setp = 0;
return;
} else if (res.status == 0) {
}
else {
this.setp = 1;
} else {
this.setp = 2;
}
})
.catch(res => {});
@ -364,13 +369,17 @@ export default {
//
primaryAuth() {
let data = this.form;
data.country_code = this.country.country_code;
// data.country_code = this.country.country_code;
data.front_img = this.topForm.front_img;
data.back_img = this.topForm.back_img;
if (utils.validate("#auth")) {
Profile.primaryAuth(data)
.then(res => {
this.$message.success(this.$t("profile.preliminary"));
// this.$message.success(this.$t("profile.preliminary"));
this.$message.success(this.$t("profile.advancedCertification"));
this.getAuthInfo();
// this.setp++;
this.$router.push("/wallet/assets/exchange")
// this.$router.push("/wallet/assets/exchange")
})
.catch(err => {});
}
@ -439,6 +448,17 @@ export default {
.form-control, /deep/ .el-input__inner{
background-color: #fff;
color: #333;
border-color: #ececec;
border: 1px solid #ececec;
}
/deep/ .el-input.is-focus .el-input__inner{
box-shadow: 0 0 0 0.2rem rgba(247,213,88,0.25);
}
/deep/ .el-step__head.is-process{
color: #999;
border-color: #999;
}
/deep/ .el-step__head.is-finish, /deep/ .el-step__title.is-finish{
color: #F7D558;
border-color: #F7D558;
}
</style>

Loading…
Cancel
Save