From 4f68b98a8aca50845e4d97d8b40deed0df0c9f75 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 31 Mar 2024 15:43:40 +0800
Subject: [PATCH] 注册页面的客服地址错误

---
 src/page/user/recharge-sure.vue |   57 +++++++++++++++++++++++++--------------------------------
 1 files changed, 25 insertions(+), 32 deletions(-)

diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index 3bd1f42..1f2f100 100644
--- a/src/page/user/recharge-sure.vue
+++ b/src/page/user/recharge-sure.vue
@@ -3,59 +3,55 @@
     <van-nav-bar
       :placeholder="true"
       :safe-area-inset-top="true"
-      title="提款"
+      :title="$t('提款')"
       left-arrow
       @click-left="onClickLeft"
     />
     <main>
-      <div class="main-title">請選擇提款账户</div>
+      <div class="main-title">{{ $t("請選擇提款账户") }}</div>
       <van-cell
         is-link
-        :title="rechargeAccountData.name || '請選擇'"
+        :title="rechargeAccountData.name || $t('請選擇')"
         @click="rechargeAccountShow = true"
       />
       <van-action-sheet
         v-model="rechargeAccountShow"
         :actions="rechargeAccountActions"
-        cancel-text="取消"
+        :cancel-text="$t('hj106')"
         close-on-click-action
         @select="rechargeAccountSelect"
       />
 
-      <div class="main-title">支持得提款渠道</div>
+      <div class="main-title">{{ $t("支持得提款渠道") }}</div>
       <van-cell
         is-link
-        :title="rechargeSelect.name || '請選擇'"
+        :title="rechargeSelect.name || $t('請選擇')"
         @click="show = true"
       />
       <van-action-sheet
         v-model="show"
         :actions="actions"
-        cancel-text="取消"
+        :cancel-text="$t('hj106')"
         close-on-click-action
         @select="select"
       />
       <div v-if="rechargeSelect.key !== undefined">
-        <div class="main-title">請選擇銀行卡</div>
-        <van-cell is-link :title="bankCard.bankNo || '請選擇'" />
-        <!-- @click="show = true" -->
-        <!-- <van-action-sheet
-          v-model="show"
-          :actions="actions"
-          cancel-text="取消"
-          close-on-click-action
-          @select="select"
-        /> -->
+        <div class="main-title">{{ $t("請選擇銀行卡") }}</div>
+        <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" />
       </div>
-      <div class="main-title">請選擇充值金額</div>
+      <div class="main-title">{{ $t("請選擇充值金額") }}</div>
       <div class="white-input">
         <input type="number" :value="value" @input="inputValue" />
-        <span class="myr" @click="value = availableBalanceUSD">最大</span>
+        <span class="myr" @click="value = availableBalanceUSD">{{
+          $t("最大")
+        }}</span>
       </div>
       <div>
         <div class="dz-title" v-if="rechargeAccountData.key !== undefined">
           <div>餘額</div>
-          <div class="balance-text">{{ availableBalanceUSD }} USD</div>
+          <div class="balance-text">
+            {{ availableBalanceUSD }} {{ symbolCode }}
+          </div>
         </div>
 
         <!-- <div class="dz-title">
@@ -72,7 +68,7 @@
         type="primary"
         style="margin-top: 1.04rem; margin-bottom: 1.04rem"
         @click="setOutMoney"
-        >提款</van-button
+        >{{ $t("提款") }}</van-button
       >
     </main>
   </div>
@@ -95,7 +91,7 @@
 
       // 提款聚到
       rechargeSelect: {},
-      actions: [{ name: "銀行卡充值", key: "YHK" }],
+      actions: [{ name: this.$t("hj215"), key: "YHK" }],
       paymentShow: false,
 
       rechargeAccountShow: false,
@@ -103,15 +99,11 @@
       rechargeAccountData: {},
       rechargeAccountActions: [
         {
-          name: "美股賬戶",
+          name: this.$t("US"),
           key: "US",
         },
         {
-          name: "印股帳戶",
-          key: "IN",
-        },
-        {
-          name: "馬股賬戶",
+          name: this.$t("MAS"),
           key: "MAS",
         },
       ],
@@ -119,6 +111,7 @@
       availableBalanceUSD: "0.0000",
       getMoneyList: [],
       assetsType: "",
+      symbolCode: "",
     };
   },
   mounted() {
@@ -127,13 +120,12 @@
   },
   methods: {
     async setOutMoney() {
-      console.log(this.assetsType);
       const res = await outMoney({
         amt: this.value,
         assetsType: this.accectType,
       });
       if (res.status === 0) {
-        Notify({ type: "success", message: "提款成功,等待审核" });
+        Notify({ type: "success", message: this.$t("提款成功,等待审核") });
         setTimeout(() => {
           this.onClickLeft();
         }, 500);
@@ -158,7 +150,8 @@
         res.data.map((item) => {
           if (item.accectType === this.rechargeAccountData.key) {
             console.log(item.accectType, "assetsType1");
-            this.availableBalanceUSD = item.availableBalanceUSD;
+            this.availableBalanceUSD = item.availableBalance;
+            this.symbolCode = item.symbolCode;
             this.accectType = item.accectType;
           }
         });
@@ -191,8 +184,8 @@
       this.rechargeAccountData = e;
       (this.getMoneyList || []).map((item) => {
         if (item.accectType === this.rechargeAccountData.key) {
-          console.log(item.accectType, "accectType2", item);
           this.availableBalanceUSD = item.availableBalanceUSD;
+          this.symbolCode = item.symbolCode;
           this.accectType = item.accectType;
         }
       });

--
Gitblit v1.9.3