|
|
@ -30,7 +30,7 @@ |
|
|
|
<view class="text">{{ i18n.To }}</view> |
|
|
|
<view class="input-item"> |
|
|
|
<u-input class="input" v-model="i18toWays" color="#fff" fontSize="32rpx" border="none" |
|
|
|
:placeholder="i18n.TradingAccount" :disabled="true"> |
|
|
|
:placeholder="i18n.OptionAccount" :disabled="true"> |
|
|
|
</u-input> |
|
|
|
<view class="downSelect" @click="accountPopupShowTo = true"></view> |
|
|
|
</view> |
|
|
@ -94,18 +94,17 @@ |
|
|
|
@touchmove.stop.prevent=""> |
|
|
|
<radio-group class="radioGroup" > |
|
|
|
<!-- v-for="(item, index) in 3" :key="index" --> |
|
|
|
<label class="checkBox" @click="getAccount('exchange','form')"> |
|
|
|
<label class="checkBox" @click="getAccount('exchange','form'),getCoinOrAccount()"> |
|
|
|
<view class="name">{{i18n.Balanceaccount}}</view> |
|
|
|
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Balance account'"></radio> |
|
|
|
</label> |
|
|
|
<label class="checkBox" @click="getAccount('contract','form')"> |
|
|
|
<label class="checkBox" @click="getAccount('contract','form'),getCoinOrAccount()"> |
|
|
|
<view class="name">{{i18n.Contractaccount}}</view> |
|
|
|
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.fromWays=='Contract account'"></radio> |
|
|
|
</label> |
|
|
|
</radio-group> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<u-button class="button" color="#00E8A2" throttleTime="500" @click="getCoinOrAccount">OK |
|
|
|
<u-button class="button" color="#00E8A2" throttleTime="500" @click="accountPopupShow=false">OK |
|
|
|
</u-button> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
@ -119,11 +118,11 @@ |
|
|
|
@touchmove.stop.prevent=""> |
|
|
|
<radio-group class="radioGroup" > |
|
|
|
<!-- v-for="(item, index) in 3" :key="index" --> |
|
|
|
<label class="checkBox" @click="getAccount('contract','to')"> |
|
|
|
<label class="checkBox" @click="getAccount('contract','to'),getCoinOrAccount()"> |
|
|
|
<view class="name">{{i18n.Contractaccount}}</view> |
|
|
|
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Contract account'"></radio> |
|
|
|
</label> |
|
|
|
<label class="checkBox" @click="getAccount('exchange','to')"> |
|
|
|
<label class="checkBox" @click="getAccount('exchange','to'),getCoinOrAccount()"> |
|
|
|
<view class="name">{{i18n.Balanceaccount}}</view> |
|
|
|
<radio color="#00E8A2" shape="square" :checked="transCoinInfo.toWays=='Balance account'"></radio> |
|
|
|
</label> |
|
|
@ -131,7 +130,7 @@ |
|
|
|
</radio-group> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<u-button class="button" color="#00E8A2" throttleTime="500" @click="getCoinOrAccount">OK |
|
|
|
<u-button class="button" color="#00E8A2" throttleTime="500" @click="accountPopupShowTo=false">OK |
|
|
|
</u-button> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
@ -187,6 +186,14 @@ |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.baseURL = constant.BASE_URL |
|
|
|
|
|
|
|
this.coinInfo.fromWays='exchange'; |
|
|
|
this.coinInfo.toWays='contract'; |
|
|
|
this.transCoinInfo.fromWays='Balance account'; |
|
|
|
this.i18fromWays=this.$t("me").Balanceaccount |
|
|
|
this.transCoinInfo.toWays='Contract account'; |
|
|
|
this.i18toWays=this.$t("me").Contractaccount |
|
|
|
|
|
|
|
this.getInfo() |
|
|
|
}, |
|
|
|
onShow() {}, |
|
|
@ -213,12 +220,13 @@ |
|
|
|
if(e=='exchange'){ |
|
|
|
this.transCoinInfo.fromWays='Balance account' |
|
|
|
this.i18fromWays=this.$t("me").Balanceaccount |
|
|
|
|
|
|
|
}else{ |
|
|
|
console.log(123456) |
|
|
|
this.transCoinInfo.fromWays='Contract account' |
|
|
|
this.i18fromWays=this.$t("me").Contractaccount |
|
|
|
} |
|
|
|
this.coinInfo.fromWays=e |
|
|
|
this.getInfo() |
|
|
|
}else{ |
|
|
|
if(e=='exchange'){ |
|
|
|
this.transCoinInfo.toWays='Balance account' |
|
|
@ -267,13 +275,16 @@ |
|
|
|
fromWays:this.coinInfo.fromWays, |
|
|
|
}).then(res => { |
|
|
|
this.coinWayInfo=res |
|
|
|
this.accountPopupShow = false |
|
|
|
this.accountPopupShowTo = false |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取配置信息 |
|
|
|
getInfo(type) { |
|
|
|
api.getTransferConfig({}).then(res => { |
|
|
|
this.coinWayInfo={}; |
|
|
|
this.info={}; |
|
|
|
api.getTransferConfig({ |
|
|
|
fromWays:this.coinInfo.fromWays |
|
|
|
}).then(res => { |
|
|
|
this.info = res |
|
|
|
// 首次进来才默认选择 |
|
|
|
if(type){ |
|
|
@ -283,13 +294,7 @@ |
|
|
|
this.coinInfo.coinCode=this.info.coinList[0].enname |
|
|
|
this.coinCode = this.info.coinList[0].enname |
|
|
|
this.coinCode2 = this.info.coinList[0].code |
|
|
|
this.coinInfo.fromWays='exchange'; |
|
|
|
this.coinInfo.toWays='contract'; |
|
|
|
this.transCoinInfo.fromWays='Balance account'; |
|
|
|
this.i18fromWays=this.$t("me").Balanceaccount |
|
|
|
|
|
|
|
this.transCoinInfo.toWays='Contract account'; |
|
|
|
this.i18toWays=this.$t("me").Contractaccount |
|
|
|
}) |
|
|
|
}, |
|
|
|
USDTRadioChange(e) {}, |
|
|
|