| | |
| | | <script> |
| | | import { ActionSheet, Notify } from "vant"; |
| | | import ClipboardJS from "clipboard"; |
| | | import _ from 'lodash'; |
| | | import _ from "lodash"; |
| | | import { getBankCard, getMoney, outMoney } from "../../axios/api"; |
| | | |
| | | export default { |
| | |
| | | // 请选择提款账户 |
| | | rechargeAccountData: {}, |
| | | rechargeAccountActions: [ |
| | | // { |
| | | // name: this.$t("IN"), |
| | | // key: "IN", |
| | | // }, |
| | | { |
| | | name: this.$t("IN"), |
| | | key: "IN", |
| | | }, |
| | | name: "MEX", |
| | | key: "MEX" |
| | | } |
| | | // { |
| | | // name: this.$t("MAS"), |
| | | // key: "MAS", |
| | |
| | | getMoneyList: [], |
| | | assetsType: "", |
| | | symbolCode: "", |
| | | yhkid:'', |
| | | yhkid: "" |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | methods: { |
| | | async setOutMoney() { |
| | | if (this.isclick) return; |
| | | console.log('11111'); |
| | | console.log("11111"); |
| | | const res = await outMoney({ |
| | | amt: this.value, |
| | | assetsType: this.accectType, |
| | |
| | | const res = await getBankCard(); |
| | | if (res.status === 0) { |
| | | this.bankCard = res.data; |
| | | this.yhkactions = res.data |
| | | this.yhkactions = res.data; |
| | | for(var i = 0;i<this.yhkactions.length;i++){ |
| | | this.yhkactions[i].name = this.yhkactions[i].bankName |
| | | this.yhkactions[i].name = this.yhkactions[i].bankName; |
| | | } |
| | | } |
| | | }, |
| | |
| | | const res = await getMoney(); |
| | | if (res.status === 0) { |
| | | this.getMoneyList = res.data; |
| | | res.data.map((item) => { |
| | | res.data.map(item => { |
| | | if (item.accectType === this.rechargeAccountData.key) { |
| | | this.availableBalanceUSD = item.availableBalance; |
| | | this.symbolCode = item.symbolCode; |
| | |
| | | }, |
| | | copyText(e, data) { |
| | | var clipboard = new ClipboardJS(".copy-button", { |
| | | text: () => data, |
| | | text: () => data |
| | | }); |
| | | |
| | | clipboard.on("success", () => { |
| | |
| | | }, |
| | | yhkselect(e) { |
| | | this.yhkrechargeSelect = e; |
| | | this.yhkid = e.id |
| | | this.yhkid = e.id; |
| | | console.log(e); |
| | | }, |
| | | select(e) { |
| | |
| | | }, |
| | | rechargeAccountSelect(e) { |
| | | this.rechargeAccountData = e; |
| | | (this.getMoneyList || []).map((item) => { |
| | | (this.getMoneyList || []).map(item => { |
| | | if (item.accectType === this.rechargeAccountData.key) { |
| | | this.availableBalanceUSD = item.availableBalance; |
| | | this.symbolCode = item.symbolCode; |
| | |
| | | paymentSelect(e) { |
| | | this.paymentSelectData = e.name; |
| | | console.log(e); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |