diff --git a/src/components/CommonFooter.vue b/src/components/CommonFooter.vue index fd34653..fada538 100644 --- a/src/components/CommonFooter.vue +++ b/src/components/CommonFooter.vue @@ -17,7 +17,7 @@ - - - - - - - - - - - - - - - - - - - - - - + + +
+
- -
- -
- -
+
+ + +
+ +
+
+
@@ -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,7 +740,24 @@ 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); - } } }; diff --git a/src/views/wallet/funding.vue b/src/views/wallet/funding.vue index 930a090..9a5c8dc 100644 --- a/src/views/wallet/funding.vue +++ b/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() {