jhzh
2024-04-28 2fdedd7395852f207a25acaf0b57c09dbf8cda4d
src/page/withdraw/withdrawPage.vue
@@ -36,7 +36,7 @@
                    </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"
@@ -112,7 +112,7 @@
            </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>
@@ -140,7 +140,7 @@
            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: "", //余额
@@ -180,7 +180,7 @@
                isGetdata = true
            }
            if (isGetdata) {
                this.getBlock(this.value);
                // this.getBlock(this.value);
                this.getAvailable(this.actions[0].name);
@@ -263,7 +263,7 @@
            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
@@ -283,14 +283,14 @@
            }
        },
        //根据币种获取链地址
        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;