Browse Source

修复图形验证码不显示

master
453530270@qq.com 2 years ago
parent
commit
1677b58de6
  1. 2
      src/components/CommonFooter.vue
  2. 2
      src/utils/consts.js
  3. 42
      src/views/forgotPwd/index.vue
  4. 44
      src/views/profile/certification.vue
  5. 4
      src/views/signUp/index.vue
  6. 68
      src/views/wallet/exchange-assets.vue
  7. 5
      src/views/wallet/funding.vue

2
src/components/CommonFooter.vue

@ -17,7 +17,7 @@
</div>
<div class="footer-upper-section-left">
<!-- service -->
<div class="service">
<div class="service" v-if="service.length>0">
<div class="item" style="width: 100%;text-align: left">
<p
class="item_p"

2
src/utils/consts.js

@ -15,7 +15,7 @@ export default {
FAIL : 2,
}
},
mobileUrl:'https://ssers.clscoin.com',
mobileUrl:'https://app.clscoin.com',
Server: {
Path: {
// API: isProduct ? `http://qkladmin2.ruanmeng.top/api/` : `/api/`,

42
src/views/forgotPwd/index.vue

@ -29,6 +29,11 @@
<el-input v-model="user.password_confirmation" type="password" data-type="repassword" show-password required :placeholder="$t('login.confirm-password')" ></el-input>
</div>
<!-- 图形验证码 -->
<div class="input-group mb-3">
<input type="text" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-6" />
<img class="col-6" :src="Graph_che" @click="gett_gc_code" />
</div>
<div class="input-group mb-3" v-if="user.google_status">
<input type="text" v-model="codes.google_code" class="form-control" required pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.google-code')" />
</div>
@ -36,7 +41,7 @@
<div class="input-group mb-3" v-if="user.email_status">
<input type="text" v-model="codes.email_code" required class="form-control" pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.email-code')" />
<div class="input-group-append">
<get-code class="btn get-code btn-outline-primary" :data="{email:user.email}" :type="7" />
<get-code class="btn get-code btn-outline-primary" :data="{email:user.email,gc_code:user.gc_code,gc_key:user.gc_key}" :type="7" />
</div>
</div>
@ -50,8 +55,8 @@
</template>
</form>
<h2>Remembered your password?
<router-link to="/sign-in">Log In</router-link>
<h2>{{$t("login.Remembered")}}
<router-link to="/sign-in">{{$t("common.sign_in")}}</router-link>
</h2>
</div>
</div>
@ -69,12 +74,15 @@ export default {
account: "",
password : "",
password_confirmation : "",
gc_code: '',
gc_key: ''
},
codes : {
google_code : '',
email_code : '',
sms_code : ''
}
},
Graph_che: ''
}
},
@ -95,6 +103,7 @@ export default {
step2() {
if (utils.validate(".chk-body")) {
Member.forgetPwdSumit(Object.assign(this.user, this.codes)).then(dta => {
// console.log(dta, '121323')
this.$message({
type : "success",
message : "修改密码成功,正在跳转到登录页",
@ -104,9 +113,30 @@ export default {
this.$router.push("/sign-in");
}
})
}).catch(err => {})
}
}).catch(err => {
this.gett_gc_code();
})
}
},
// get gc code from api
gett_gc_code(){
Member.sendGCode().then( (res) =>{
this.gc_key = res.key
this.Graph_che = res.img
// console.log("gc",res);
this.$message({
message: `${type} ${this.$t("login.sendOK")}`,
type: "success",
duration : 2000,
});
}).catch( err =>{
console.log(err)
});
},
},
mounted(){
// bind get gc code
this.gett_gc_code();
}
}
</script>

44
src/views/profile/certification.vue

@ -73,28 +73,28 @@
:placeholder="$t('profile.residentialAddress1')"
/>
</div>
<!-- <div class="form-row">-->
<!-- <div class="form-group col-md-6">-->
<!-- <label>{{$t('profile.ciy')}}*</label>-->
<!-- <input-->
<!-- type="text"-->
<!-- required-->
<!-- v-model="form.city"-->
<!-- class="form-control"-->
<!-- :placeholder="$t('profile.incity')"-->
<!-- />-->
<!-- </div>-->
<!-- <div class="form-group col-md-6">-->
<!-- <label>{{$t('profile.postalCode')}}*</label>-->
<!-- <input-->
<!-- type="text"-->
<!-- required-->
<!-- v-model="form.postal_code"-->
<!-- class="form-control"-->
<!-- :placeholder="$t('profile.thePostcode')"-->
<!-- />-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-row">
<div class="form-group col-md-6">
<label>{{$t('profile.ciy')}}*</label>
<input
type="text"
required
v-model="form.city"
class="form-control"
:placeholder="$t('profile.incity')"
/>
</div>
<div class="form-group col-md-6">
<label>{{$t('profile.postalCode')}}*</label>
<input
type="text"
required
v-model="form.postal_code"
class="form-control"
:placeholder="$t('profile.thePostcode')"
/>
</div>
</div> -->
<!-- <div class="form-group">
<label>{{$t('profile.additionalInformation')}}{{$t('profile.optional')}}</label>
<input type="text" v-model="form.extra" class="form-control" placeholder />

4
src/views/signUp/index.vue

@ -183,7 +183,8 @@ export default {
repassword: "",
country_id: "", // id
phone: "",
parentCode: ""
parentCode: "",
gc_code: ""
},
isAgree: false,
@ -377,7 +378,6 @@ export default {
// get gc code from api
gett_gc_code(){
console.log("dddddd")
Member.sendGCode().then( (res) =>{
this.gc_key = res.key
this.Graph_che = res.img

68
src/views/wallet/exchange-assets.vue

@ -360,15 +360,23 @@
<input type="number" v-model="withdraw.amount" step="0.00000001" :placeholder="$t('wallet.enterDrawNum')" class="form-control" />
</div>
<span class="text-right">{{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}</span>
<div class="input-group input-group-sm password">
<input v-model="withdraw.password" required :placeholder="$t('login.password')" class="form-control" />
</div>
</div>
<div class="form-group mt-2">
<label class="d-flex justify-content-between" for="formGroupPWDInput">
<span>{{$t('login.password')}}</span>
<!-- 增加图形验证码 -->
<label class="d-flex justify-content-between" for="" style="align-items: center;">
<span>{{$t('common.GraphicValidation')}}</span>
<img :src="Graph_che" @click="gett_gc_code">
</label>
<div class="input-group input-group-sm">
<input type="password" v-model="withdraw.password" :placeholder="$t('common.enterPwd')" class="form-control" id="formGroupPWDInput" />
<input type="text" id="gccode" v-model="withdraw.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control" />
</div>
</div>
<!-- 提币验证码 -->
<div class="form-group mt-2">
<label class="d-flex justify-content-between" for="" style="align-items: center;">
@ -461,7 +469,8 @@ export default {
code_type: 1,
code: '',
password:'',
emailcode: ''
emailcode: '',
gc_code: ''//
},
withdrawFee: {
@ -484,6 +493,7 @@ export default {
getEmailCodeLock: false,
JStime: 0,
tiemr: null,
Graph_che: ''
};
},
@ -627,12 +637,6 @@ export default {
//
enterWithdraw(item) {
// console.log(this.ProfileDetail.status)
if(this.ProfileDetail.status!=2){
this.$router.push("/profile/certification");
return;
}
$('#withdraw').modal('show');
this.withdrawCoin = item.coin_name;
this.withdraw.coin_id = item.coin_id;
//
@ -640,6 +644,7 @@ export default {
coin_name: item.coin_name
})
.then(data => {
this.gett_gc_code();
this.withdrawFee = data;
})
.catch(err => { });
@ -688,16 +693,6 @@ export default {
this.userInfo = res
});
},
getAuthInfo() {
Profile.getAuthInfo({}).then(res => {
this.ProfileDetail = res;
console.log(this.ProfileDetail, 11111)
});
},
//
PageScrollTo(num){
document.documentElement.scrollTop = num;
},
//
getEmailCode(){
if(!this.withdraw.address){
@ -711,16 +706,15 @@ export default {
if(!this.withdraw.amount){
this.$message({
message: this.$t('wallet.enterDrawNum'),
type: "warn",
// type: "warn",
duration : 2000,
});
return;
}
if(!this.withdraw.password){
this.$message({
// message: this.$t('login.password'),
message: this.$t('common.enterPwd'),
type: "warn",
// type: "warn",
duration : 2000,
});
return;
@ -746,6 +740,23 @@ export default {
type: "success",
duration : 2000,
});
}).catch(err=>{
this.gett_gc_code();
});
},
//
gett_gc_code(){
Member.sendGCode().then( (res) =>{
this.gc_key = res.key
this.Graph_che = res.img
console.log("gc",res);
this.$message({
message: `${type} ${this.$t("login.sendOK")}`,
type: "success",
duration : 2000,
});
}).catch( err =>{
console.log(err)
});
}
},
@ -755,8 +766,7 @@ created() {
this.getUserAssets();
this.getCoinAssets();
this.createWalletAddress();
this.getUserInfo();
this.getAuthInfo();
this.getUserInfo()
},
mounted() {
@ -790,14 +800,6 @@ created() {
// console.error('Action:', e.action);
// console.error('Trigger:', e.trigger);
});
//
let isNeedScroll = this.$route.fullPath.split('?buy=')[1];
// console.log(this.$route.fullPath,121212121, isNeedScroll);
if(isNeedScroll){
setTimeout(() => {
this.PageScrollTo(775);
}, 1500);
}
}
};
</script>

5
src/views/wallet/funding.vue

@ -189,10 +189,7 @@ export default {
},
getDepositHistories() {
Wallet.depositHistory().then(data => {
this.depositHistories = data.data;
console.log( this.depositHistories, ' this.depositHistories')
}).catch(err => { });
Wallet.depositHistory().then(data => this.depositHistories = data.data).catch(err => { });
},
getRechargeManualLog() {

Loading…
Cancel
Save