| | |
| | | <!-- <van-cell is-link :title="bankCard.bankName || $t('請選擇')" /> --> |
| | | <van-cell |
| | | is-link |
| | | :title="yhkrechargeSelect.bankName || $t('請選擇')" |
| | | :title="yhkrechargeSelect.bankName || $t('請選擇')" |
| | | @click="yhkshow = true" |
| | | /> |
| | | <van-action-sheet |
| | |
| | | <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 { |
| | |
| | | value: 0, |
| | | |
| | | paymentSelectData: "IN", |
| | | isclick:false, |
| | | isclick: false, |
| | | show: false, |
| | | yhkshow:false, |
| | | yhkshow: false, |
| | | // 提款聚到 |
| | | rechargeSelect: {}, |
| | | yhkrechargeSelect: {}, |
| | |
| | | // 请选择提款账户 |
| | | 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, |
| | | bankId:this.yhkid |
| | | bankId: this.yhkid |
| | | }); |
| | | this.isclick = false; |
| | | if (res.status === 0) { |
| | | Notify({ type: "success", message: this.$t("hj182") }); |
| | | // setTimeout(() => { |
| | | this.$router.push("/cashlist"); |
| | | this.$router.push("/cashlist"); |
| | | // }, 500); |
| | | } else { |
| | | Notify(res.msg); |
| | |
| | | const res = await getBankCard(); |
| | | if (res.status === 0) { |
| | | this.bankCard = 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 = res.data; |
| | | for (var i = 0; i < this.yhkactions.length; i++) { |
| | | 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", () => { |
| | |
| | | clipboard.onClick(e); |
| | | }, |
| | | onClickLeft() { |
| | | this.$router.push("/user"); |
| | | this.$router.push("/account"); |
| | | }, |
| | | 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> |
| | | |
| | | <style lang="less" scoped> |
| | | @green: #c4d600; |
| | | .but { |
| | | width: 100%; |
| | | color: #ffffff; |
| | | background-color: #1989fa; |
| | | background-color: @green; |
| | | border: none; |
| | | border-radius: 8px; |
| | | height: 66px; |
| | | font-size: 22px; |
| | |
| | | cursor: pointer; |
| | | } |
| | | .myr { |
| | | color: rgb(5, 106, 239); |
| | | color: @green; |
| | | cursor: pointer; |
| | | } |
| | | .dz-title { |