Browse Source

优化充币

master
ltlzx 4 years ago
parent
commit
16542900c0
  1. 12
      pages/assets/recharge.vue

12
pages/assets/recharge.vue

@ -26,11 +26,11 @@
> >
<!-- <span>{{$t('assets.b7')}}</span> --> <!-- <span>{{$t('assets.b7')}}</span> -->
<view class="group d-flex fn-12 color-light"> <view class="group d-flex fn-12 color-light">
<view class="rounded-xs p-x-lg p-y-ms m-r-md" <!-- <view class="rounded-xs p-x-lg p-y-ms m-r-md"
:class="rechargeType==1?'bor-active':'bg-panel-3 border'" :class="rechargeType==1?'bor-active':'bg-panel-3 border'"
size="mini" size="mini"
@click="changeRechargeType(1)" @click="changeRechargeType(1)"
>OMNI</view> >OMNI</view> -->
<view class="rounded-xs p-x-lg p-y-ms m-r-md" <view class="rounded-xs p-x-lg p-y-ms m-r-md"
size="mini" size="mini"
@click="changeRechargeType(2)" @click="changeRechargeType(2)"
@ -141,7 +141,7 @@ export default {
return { return {
coinListShow: false, coinListShow: false,
coin: "", coin: "",
rechargeType: 1, rechargeType: 2,
address: "", address: "",
form: { form: {
coin_id: "", coin_id: "",
@ -172,9 +172,12 @@ export default {
coin(n) { coin(n) {
if (n) { if (n) {
this.form.address = ""; this.form.address = "";
console.info(this.coin)
if (this.coin != "USDT") { if (this.coin != "USDT") {
this.rechargeType = 1; this.rechargeType = 1;
} }else{
this.rechargeType = 2;
}
this.walletImage(); this.walletImage();
} }
}, },
@ -208,6 +211,7 @@ export default {
address_type: this.rechargeType, address_type: this.rechargeType,
}; };
Wallet.walletImage(data).then((res) => { Wallet.walletImage(data).then((res) => {
console.info(res)
this.form.address = res.data.address; this.form.address = res.data.address;
}); });
}, },

Loading…
Cancel
Save