- ID:{{userInfo.uid}} @@ -100,6 +100,7 @@ name: 'me', data() { return { + imgDetail:'', baseURL:'', // 退出登录模态框的显示与否。 showLogOut: false, @@ -132,6 +133,7 @@ // 获取用户信息 getUserInfo() { api.userInfo().then(res => { + this.imgDetail=res.headImg this.userInfo=res }) }, diff --git a/pages/me/transfer.vue b/pages/me/transfer.vue index b05d35a..acae7f8 100644 --- a/pages/me/transfer.vue +++ b/pages/me/transfer.vue @@ -30,7 +30,7 @@ {{ i18n.To }} + :placeholder="i18n.OptionAccount" :disabled="true"> @@ -94,18 +94,17 @@ @touchmove.stop.prevent=""> - - - OK + OK @@ -119,11 +118,11 @@ @touchmove.stop.prevent=""> - - OK + OK @@ -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) {}, diff --git a/pages/withdrawal/chooseAddress.vue b/pages/withdrawal/chooseAddress.vue index 0a3835b..fc676ce 100644 --- a/pages/withdrawal/chooseAddress.vue +++ b/pages/withdrawal/chooseAddress.vue @@ -2,10 +2,23 @@ {{ i18n.ChooseAddress }} - {{ - editFlag ? i18n.OK : i18n.Edit - }} + + + + {{ + editFlag ? i18n.OK : i18n.Edit + }} + + + + {{ + editFlag ? i18n.OK : i18n.Edit + }} + + + + @@ -232,6 +245,22 @@ border-radius: 8px; color: #FFBC1F; } + + + .right2{ + width: 82rpx; + height: 56rpx; + line-height: 56rpx; + position: absolute; + right: 32rpx; + top: 70%; + transform: translateY(-50%); + font-size: 24rpx; + background: rgba(246, 166, 9, 0.1); + border-radius: 8px; + color: #FFBC1F; + } + .content { diff --git a/utils/constant.js b/utils/constant.js index 82370c1..f834123 100644 --- a/utils/constant.js +++ b/utils/constant.js @@ -1,5 +1,5 @@ -const IS_TEST = true; +const IS_TEST = false; const H5_BASE_URL = '/api'; const BASE_URL = IS_TEST?'https://sapi.payairs.com':'https://api.gream.ltd'; const H5_MARKET_URL = '/market'; diff --git a/utils/language/en_US.js b/utils/language/en_US.js index 234b899..603a9ee 100644 --- a/utils/language/en_US.js +++ b/utils/language/en_US.js @@ -448,7 +448,7 @@ export default { SelectCurrency: 'Select currency', PleaseChooseCoin: 'Please choose coin', From: 'From', - OptionAccount: 'Option account', + OptionAccount: 'Choose account', To: 'To', TradingAccount: 'Trading account', TransferNumber: 'Transfer number', diff --git a/utils/language/vi_VN.js b/utils/language/vi_VN.js index 15b1039..eb94074 100644 --- a/utils/language/vi_VN.js +++ b/utils/language/vi_VN.js @@ -437,7 +437,7 @@ export default { SelectCurrency: 'Chọn đơn vị tiền tệ', PleaseChooseCoin: 'Vui lòng chọn đơn vị tiền tệ', From: 'chuyển ra ngoài', - OptionAccount: 'Tài khoản Tùy chọn', + OptionAccount: 'chọn tài khoản', To: 'chuyển giao', TradingAccount: 'tài khoản giao dịch', TransferNumber: 'Số tiền chuyển khoản', diff --git a/utils/language/zh_TW.js b/utils/language/zh_TW.js index e81a19a..bd87a11 100644 --- a/utils/language/zh_TW.js +++ b/utils/language/zh_TW.js @@ -444,7 +444,7 @@ export default { SelectCurrency: '選擇幣種', PleaseChooseCoin: '請選擇幣種', From: '轉出', - OptionAccount: '期權賬戶', + OptionAccount: '選擇帳戶', To: '轉入', TradingAccount: '交易賬戶', TransferNumber: '轉帳金額',