From ff3f0c6141fdbe0ab7832fb3d8d1695015cbbf06 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Wed, 15 May 2024 18:56:46 +0800
Subject: [PATCH] 提款更改

---
 src/page/user/recharge-sure.vue |   50 ++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 42 insertions(+), 8 deletions(-)

diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index 97dcace..c08111d 100644
--- a/src/page/user/recharge-sure.vue
+++ b/src/page/user/recharge-sure.vue
@@ -16,10 +16,24 @@
       </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
@@ -29,8 +43,11 @@
         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('請選擇')"
@@ -46,7 +63,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,7 +97,7 @@
 <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: {
@@ -92,7 +109,7 @@
   data() {
     return {
       value: 0,
-
+      paymentActions: [],
       paymentSelectData: "US",
 
       show: false,
@@ -134,8 +151,20 @@
   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,
@@ -207,8 +236,13 @@
       });
     },
     paymentSelect(e) {
-      this.paymentSelectData = e.name;
+      this.paymentSelectData = e;
       console.log(e);
+      this.rechargeAccountActions.map((item) => {
+        if (item.key === e.assetsType) {
+          this.rechargeAccountData = item;
+        }
+      });
     },
   },
 };

--
Gitblit v1.9.3