1
jhzh
2025-08-12 e88c67ddf91ce593785f565912837c9a3ffe3930
src/views/cryptos/Withdraw/withdrawPage.vue
@@ -122,7 +122,7 @@
<script>
import { Popup, ActionSheet, showToast } from "vant"
import Axios from "@/service/recharge.js"
import { _withdrawFee } from "@/service/withdraw.api.js"
import { _withdrawFee,_withdrawApply } from "@/service/withdraw.api.js"
import assetsHead from "@/components/Transform/assets-head/index.vue";
import BarScan from '@/components/Transform/scan/scan.vue';
import { _getAllWallet } from "@/service/fund.api";
@@ -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: "", //余额
@@ -341,29 +341,30 @@
      }
      if (this.amount && this.address) {
        this.$router.push({
          path: '/cryptos/withdraw/securityVerification',
          query: {
            amount: this.amount,
            from: this.address,
            channel: this.value + '_' + this.blockName
          }
        })
        // AxiosWithdraw.WithdrawApply({
        //     session_token:this.sessionToken,
        //     amount:this.amount,
        //     from:this.address,
        //     channel:this.value+'_'+ this.blockName
        // }).then((res)=> {
        //     if(res.code==0) {
        //         this.$router.push({
        //             path:"/withdraw/withdrawSumbit"
        //         });
        //     }else{
        //       this.$toast(this.$t(res.msg));
        //     }
        //     this.getToken();
        // });
        // this.$router.push({
        //   path: '/cryptos/withdraw/securityVerification',
        //   query: {
        //     amount: this.amount,
        //     from: this.address,
        //     channel: this.value + '_' + this.blockName
        //   }
        // })
        _withdrawApply({
            session_token:this.sessionToken,
            amount:this.amount,
            from:this.address,
            channel:this.value+'_'+ this.blockName
        }).then((res)=> {
         console.log('123123123123123',res);
            if(res.code==0) {
                this.$router.push({
                    path:"/withdraw/withdrawSumbit"
                });
            }else{
              this.$toast(this.$t(res.msg));
            }
            this.getToken();
        });
      } else {
        showToast(this.$t('请输入提币数量'));
      }