From f15ad3456b47e43646234b9c91c3ddd77ab2cd02 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Wed, 05 Jun 2024 10:05:13 +0800
Subject: [PATCH] 123
---
src/page/user/recharge-sure.vue | 82 ++++++++++-------------------------------
1 files changed, 20 insertions(+), 62 deletions(-)
diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index 3dc2e90..a48a426 100644
--- a/src/page/user/recharge-sure.vue
+++ b/src/page/user/recharge-sure.vue
@@ -16,26 +16,12 @@
</template>
</van-nav-bar>
<main>
- <div class="main-title">IFSC</div>
+ <div class="main-title">{{ $t("請選擇提款账户") }}</div>
<van-cell
is-link
- :title="paymentSelectData.channelAccount || $t('请设置ifsc')"
- @click="paymentShow = true"
+ :title="rechargeAccountData.name || $t('請選擇')"
+ @click="rechargeAccountShow = 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
v-model="rechargeAccountShow"
:actions="rechargeAccountActions"
@@ -43,11 +29,8 @@
close-on-click-action
@select="rechargeAccountSelect"
/>
- <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>
+
+ <div class="main-title">{{ $t("支持得提款渠道") }}</div>
<van-cell
is-link
:title="rechargeSelect.name || $t('請選擇')"
@@ -63,7 +46,7 @@
<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" />
@@ -80,9 +63,6 @@
</div>
</div>
</div>
-<!-- <van-cell-group>-->
-<!-- <van-cell :title="$t('最低取款金额')" value="内容" />-->
-<!-- </van-cell-group>-->
<van-button
class="but"
type="primary"
@@ -95,21 +75,16 @@
</template>
<script>
-import { ActionSheet, Notify,Cell, CellGroup } from "vant";
+import { ActionSheet, Notify } from "vant";
import ClipboardJS from "clipboard";
-import {getBankCard, getMoney, outMoney, siteGetPayInfo} from "../../axios/api";
+import { getBankCard, getMoney, outMoney } from "../../axios/api";
export default {
- components: {
- ActionSheet,
- [Notify.Component.name]: Notify.Component,
- Cell,
- CellGroup
- },
+ components: { ActionSheet, [Notify.Component.name]: Notify.Component },
data() {
return {
value: 0,
- paymentActions: [],
+
paymentSelectData: "US",
show: false,
@@ -128,17 +103,17 @@
key: "US",
},
{
- name: this.$t("IN"),
+ name: this.$t("MAS"),
+ key: "MAS",
+ },
+ {
+ name: this.$t("HK"),
+ key: "HK",
+ },
+ {
+ name: this.$t("yg"),
key: "IN",
},
- // {
- // name: this.$t("MAS"),
- // key: "MAS",
- // },
- // {
- // name: this.$t("HK"),
- // key: "HK",
- // },
],
bankCard: {},
@@ -151,20 +126,8 @@
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,
@@ -236,13 +199,8 @@
});
},
paymentSelect(e) {
- this.paymentSelectData = e;
+ this.paymentSelectData = e.name;
console.log(e);
- this.rechargeAccountActions.map((item) => {
- if (item.key === e.assetsType) {
- this.rechargeAccountData = item;
- }
- });
},
},
};
--
Gitblit v1.9.3