From 3a34daa4a070e3c13e399dad567e78b5a136e2c8 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 17 May 2024 14:18:03 +0800
Subject: [PATCH] 111

---
 src/page/user/recharge-sure.vue |   56 ++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 36 insertions(+), 20 deletions(-)

diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index 1f2f100..97dcace 100644
--- a/src/page/user/recharge-sure.vue
+++ b/src/page/user/recharge-sure.vue
@@ -6,7 +6,15 @@
       :title="$t('提款')"
       left-arrow
       @click-left="onClickLeft"
-    />
+    >
+      <template #right>
+        <van-icon
+          @click="$router.push('/cashlist')"
+          name="orders-o"
+          size="20"
+        />
+      </template>
+    </van-nav-bar>
     <main>
       <div class="main-title">{{ $t("請選擇提款账户") }}</div>
       <van-cell
@@ -48,21 +56,16 @@
       </div>
       <div>
         <div class="dz-title" v-if="rechargeAccountData.key !== undefined">
-          <div>餘額</div>
+          <div>{{ $t("可用餘額") }}</div>
           <div class="balance-text">
             {{ availableBalanceUSD }} {{ symbolCode }}
+            <!-- {{ symbolCode }} -->
           </div>
         </div>
-
-        <!-- <div class="dz-title">
-          <div>實際到帳</div>
-          <div class="balance-text">0.0000</div>
-        </div> -->
-        <!-- <div class="dz-title" v-if="rechargeAccountData.key !== undefined">
-          <div>最小提款金額</div>
-          <div class="balance-text">0.0000</div>
-        </div> -->
       </div>
+<!--      <van-cell-group>-->
+<!--        <van-cell :title="$t('最低取款金额')" value="内容" />-->
+<!--      </van-cell-group>-->
       <van-button
         class="but"
         type="primary"
@@ -75,12 +78,17 @@
 </template>
 
 <script>
-import { ActionSheet, Notify } from "vant";
+import { ActionSheet, Notify,Cell, CellGroup } from "vant";
 import ClipboardJS from "clipboard";
 import { getBankCard, getMoney, outMoney } from "../../axios/api";
 
 export default {
-  components: { ActionSheet, [Notify.Component.name]: Notify.Component },
+  components: {
+    ActionSheet,
+    [Notify.Component.name]: Notify.Component,
+    Cell,
+    CellGroup
+  },
   data() {
     return {
       value: 0,
@@ -103,10 +111,19 @@
           key: "US",
         },
         {
-          name: this.$t("MAS"),
-          key: "MAS",
+          name: this.$t("IN"),
+          key: "IN",
         },
+        // {
+        //   name: this.$t("MAS"),
+        //   key: "MAS",
+        // },
+        // {
+        //   name: this.$t("HK"),
+        //   key: "HK",
+        // },
       ],
+
       bankCard: {},
       availableBalanceUSD: "0.0000",
       getMoneyList: [],
@@ -125,9 +142,9 @@
         assetsType: this.accectType,
       });
       if (res.status === 0) {
-        Notify({ type: "success", message: this.$t("提款成功,等待审核") });
+        Notify({ type: "success", message: this.$t("hj182") });
         setTimeout(() => {
-          this.onClickLeft();
+          this.$router.push("/cashlist");
         }, 500);
       } else {
         Notify(res.msg);
@@ -149,7 +166,6 @@
         this.getMoneyList = res.data;
         res.data.map((item) => {
           if (item.accectType === this.rechargeAccountData.key) {
-            console.log(item.accectType, "assetsType1");
             this.availableBalanceUSD = item.availableBalance;
             this.symbolCode = item.symbolCode;
             this.accectType = item.accectType;
@@ -184,7 +200,7 @@
       this.rechargeAccountData = e;
       (this.getMoneyList || []).map((item) => {
         if (item.accectType === this.rechargeAccountData.key) {
-          this.availableBalanceUSD = item.availableBalanceUSD;
+          this.availableBalanceUSD = item.availableBalance;
           this.symbolCode = item.symbolCode;
           this.accectType = item.accectType;
         }
@@ -338,4 +354,4 @@
     color: #4f5257;
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3