Browse Source

修改钱包充值不进行请求多次,增加二维码

master
liaoxinyu 2 years ago
parent
commit
aa50f290e4
  1. BIN
      src/assets/img/home/qrcode.png
  2. 6
      src/components/CommonFooter.vue
  3. 5
      src/router/index.js
  4. 2
      src/views/contract/index.vue
  5. 2
      src/views/exchange/index.vue
  6. 2
      src/views/home/index.vue
  7. 2
      src/views/wallet/contract-assets.vue
  8. 23
      src/views/wallet/exchange-assets.vue

BIN
src/assets/img/home/qrcode.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

6
src/components/CommonFooter.vue

@ -129,10 +129,10 @@
>
{{ $t("common.contactUs") }}
</p>
<p class="foot_p" style="font-size: 14px">
<p class="foot_p" style="font-size: 14px;color:#797979;">
{{ $t("common.email") }}:
</p>
<p class="foot_p" style="font-size: 14px;">
<p class="foot_p" style="font-size: 14px;color:#797979;">
{{ email }}
</p>
</div>
@ -260,7 +260,7 @@
<div style="font-size: 20px;">{{ $t("homeNewText.ee19",{name:'QNTcoin'}) }}</div>
<router-link v-if="!isLogin" class="jump_btn" to="/sign-up">{{ $t("homeNewText.ee21") }}</router-link>
<router-link v-else class="jump_btn" to="/exchange">{{ $t("homeNewText.ee22") }}</router-link>
<img src="" alt="" style="width: 120px;height: 120px;">
<img src="@/assets/img/home/qrcode.png" alt="" style="width: 120px;height: 120px;">
<div style="font-size: 16px; color: #9c9c9c;margin-top: 12px;">{{ $t("homeNewText.ee20",{name:'QNTcoin'}) }}</div>
</div>
</div>

5
src/router/index.js

@ -147,6 +147,11 @@ const routes = [{
const router = new VueRouter({
routes
});
// 跳转路由后进行回到顶部
router.afterEach((to, from) => {
// 在路由跳转后滚动到顶部
window.scrollTo(0, 0);
})
// 添加路由导航守卫 非登录状态禁止进入wallet

2
src/views/contract/index.vue

@ -9,7 +9,7 @@
<!-- </div>-->
<div class="d-flex align-items-center" style="background-color: #121212;min-height:58px;">
<div class="price px-3" >
<img :src="currentIcon" alt="" style="width: 26px;height: 26px;" v-if="currentIcon.includes('https://djs.jedcoin.com/storage/')">
<img :src="currentIcon" alt="" style="width: 26px;height: 26px;" v-if="currentIcon.includes('https://seee.qntcoin.com/storage/')">
</div>
<div class="price">
<div class="item fn-16" style="font-weight: bold;">{{ activeContract.pair_name }}</div>

2
src/views/exchange/index.vue

@ -9,7 +9,7 @@
<!-- </div>-->
<div class="d-flex align-items-center" style="background-color: #121212;min-height:58px;">
<div class="price px-3">
<img :src="currentIcon" alt="" style="width: 26px;height: 26px;" v-if="currentIcon.includes('https://djs.jedcoin.com/storage/')">
<img :src="currentIcon" alt="" style="width: 26px;height: 26px;" v-if="currentIcon.includes('https://seee.qntcoin.com/storage/')">
</div>
<div class="price">
<div class="item fn-16" style="font-weight: bold;">{{ activeContract.pair_name }}</div>

2
src/views/home/index.vue

@ -484,7 +484,7 @@
<div class="positionBox d-flex" style="align-items: center;justify-content: space-between;">
<div style="width: 480px;">
<div class="trade_box">
<div class="trade_img"><img src="" style="border-radius: 10px;" alt=""></div>
<div class="trade_img"><img src="@/assets/img/home/qrcode.png" style="border-radius: 10px;" alt=""></div>
<div style="margin-left: 15px;">
<div>{{ $t("homeNewText.ee18") }}</div>
<div style="font-weight: bold;">IOS & Android apps</div>

2
src/views/wallet/contract-assets.vue

@ -49,7 +49,7 @@
</td>
</tr>
<tr v-if="!list.length">
<td colspan="3">
<td colspan="4">
<no-record />
</td>
</tr>

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

@ -511,7 +511,10 @@ export default {
JStime: 0,
tiemr: null,
// Graph_che: '',
lang:''
lang:'',
bool:false,
address1:"",
address2:""
};
},
@ -520,7 +523,15 @@ export default {
watch: {
//
depositeAdressType() {
this.getDepositeAdress();
this.deposite.address = ""
if(this.depositeAdressType==3&&this.bool==true){
this.getDepositeAdress();
}else{
this.deposite.address = this.address2
}
if(this.depositeAdressType==2){
this.deposite.address = this.address1
}
},
allAssets(val) {
@ -619,6 +630,13 @@ export default {
})
.then(data => {
this.deposite.address = data.address;
if(this.depositeAdressType==2){
this.address1 = data.address
}
if(this.depositeAdressType==3){
this.address2 = data.address
this.bool = false
}
})
.catch(err => { });
},
@ -630,6 +648,7 @@ export default {
this.deposite.coin_id = item.coin_id;
//
this.getDepositeAdress();
this.bool = true;
$("#deposite").modal("show");
}else{
// this.$message.error(this.$t("wallet.auth"))

Loading…
Cancel
Save