| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <p class="font-35 mt-44 textColor">{{ $t('数量') }}</p> |
| | | <p class="font-35 mt-44 textColor">{{ $t('提币数量') }}</p> |
| | | <div class="inputBackground flex items-center justify-between h-96 rounded mt-22"> |
| | | <input :placeholder="$t('请输入提币数量')" maxlength="10" |
| | | class="h-full flex-1 border-none bg-none px-16 font-22 textColor" type="number" v-model="amount" |
| | |
| | | </div> |
| | | </van-popup> |
| | | <!-- 币种 --> |
| | | <van-action-sheet v-model="showSymbol" :actions="actions.filter(item => item.name !== value)" @select="onSelect" /> |
| | | <van-action-sheet v-model="showSymbol" :actions="actions" @select="onSelect" /> |
| | | <bar-scan :scancode="scancode" v-if="scancode" @ok="getResult"></bar-scan> |
| | | </div> |
| | | </template> |
| | |
| | | value: 'USDT', //选中的币种 |
| | | show: false, |
| | | showSymbol: false, |
| | | actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' }], |
| | | actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' },{ name: 'USDC' }], |
| | | blockList: [], |
| | | blockchainIndex: "", |
| | | usdtBalance: "", //余额 |
| | |
| | | isGetdata = true |
| | | } |
| | | if (isGetdata) { |
| | | this.getBlock(this.value); |
| | | // this.getBlock(this.value); |
| | | this.getAvailable(this.actions[0].name); |
| | | |
| | | |
| | |
| | | this.showSymbol = false; |
| | | this.value = item.name; |
| | | this.withdraw_fee_type = '' |
| | | this.getBlock(item.name); |
| | | // this.getBlock(item.name); |
| | | this.getAvailable(item.name) |
| | | if (item.name == 'BTC' || item.name == 'ETH') { |
| | | this.numLenth = 7 |
| | |
| | | } |
| | | }, |
| | | //根据币种获取链地址 |
| | | getBlock(symbol) { |
| | | Axios.getBlock({ |
| | | coin: symbol |
| | | }).then((res) => { |
| | | this.blockList = res.data; |
| | | this.blockName = res.data[0].blockchain_name; |
| | | }); |
| | | }, |
| | | // getBlock(symbol) { |
| | | // Axios.getBlock({ |
| | | // coin: symbol |
| | | // }).then((res) => { |
| | | // this.blockList = res.data; |
| | | // this.blockName = res.data[0].blockchain_name; |
| | | // }); |
| | | // }, |
| | | //选中链名称 |
| | | changeBlockchain(item, index) { |
| | | this.blockchainIndex = index; |