| | |
| | | </template> |
| | | </van-nav-bar> |
| | | <main> |
| | | <div class="main-title">{{ $t("請選擇提款账户") }}</div> |
| | | <div class="main-title">IFSC</div> |
| | | <van-cell |
| | | is-link |
| | | :title="rechargeAccountData.name || $t('請選擇')" |
| | | :title="paymentSelectData.channelAccount || $t('请设置ifsc')" |
| | | @click="paymentShow = true" |
| | | /> |
| | | <!-- paymentSelectData.channelMinLimit --> |
| | | <van-action-sheet |
| | | v-model="paymentShow" |
| | | :actions="paymentActions" |
| | | :cancel-text="$t('qx')" |
| | | close-on-click-action |
| | | @select="paymentSelect" |
| | | /> |
| | | <div class="main-title">{{ $t("银行帐号") }}</div> |
| | | <van-cell |
| | | is-link |
| | | :title="rechargeAccountData.name || $t('请将银行账户设置为')" |
| | | @click="rechargeAccountShow = true" |
| | | /> |
| | | <van-action-sheet |
| | |
| | | close-on-click-action |
| | | @select="rechargeAccountSelect" |
| | | /> |
| | | |
| | | <div class="main-title">{{ $t("支持得提款渠道") }}</div> |
| | | <div class="main-title">{{ $t("hj213") }}</div> |
| | | <van-cell is-link :title="bankCard.bankName || $t('请设置银行名称')" /> |
| | | <div class="main-title">{{ $t("姓名") }}</div> |
| | | <van-cell is-link :title="paymentSelectData.channelName || $t('请将姓名设置为')" /> |
| | | <!-- <div class="main-title">{{ $t("支持得提款渠道") }}</div> |
| | | <van-cell |
| | | is-link |
| | | :title="rechargeSelect.name || $t('請選擇')" |
| | |
| | | <div v-if="rechargeSelect.key !== undefined"> |
| | | <div class="main-title">{{ $t("請選擇銀行卡") }}</div> |
| | | <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" /> |
| | | </div> |
| | | </div>--> |
| | | <div class="main-title">{{ $t("請選擇充值金額") }}</div> |
| | | <div class="white-input"> |
| | | <input type="number" :value="value" @input="inputValue" /> |
| | |
| | | <script> |
| | | import { ActionSheet, Notify,Cell, CellGroup } from "vant"; |
| | | import ClipboardJS from "clipboard"; |
| | | import { getBankCard, getMoney, outMoney } from "../../axios/api"; |
| | | import {getBankCard, getMoney, outMoney, siteGetPayInfo} from "../../axios/api"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | data() { |
| | | return { |
| | | value: 0, |
| | | |
| | | paymentActions: [], |
| | | paymentSelectData: "US", |
| | | |
| | | show: false, |
| | |
| | | mounted() { |
| | | this.getykh(); |
| | | this.getMoneys(); |
| | | this.getPayInfos(); |
| | | }, |
| | | methods: { |
| | | async getPayInfos() { |
| | | const res = await siteGetPayInfo(); |
| | | if (res.status === 0) { |
| | | res.data.map((item) => { |
| | | item.name = item.channelType; |
| | | }); |
| | | this.paymentActions = res.data; |
| | | console.log(this.paymentActions) |
| | | } |
| | | console.log(res); |
| | | }, |
| | | async setOutMoney() { |
| | | const res = await outMoney({ |
| | | amt: this.value, |
| | |
| | | }); |
| | | }, |
| | | paymentSelect(e) { |
| | | this.paymentSelectData = e.name; |
| | | this.paymentSelectData = e; |
| | | console.log(e); |
| | | this.rechargeAccountActions.map((item) => { |
| | | if (item.key === e.assetsType) { |
| | | this.rechargeAccountData = item; |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | }; |