From 74bcf0374dad94d352b68f10e2e3d6e0ebc2c9dc Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 07 Apr 2024 12:32:13 +0800
Subject: [PATCH] 1
---
src/page/user/recharge-sure.vue | 56 +++++++++++++++++++++++++-------------------------------
1 files changed, 25 insertions(+), 31 deletions(-)
diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index f623b8d..9f81159 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
@@ -38,14 +46,6 @@
<div v-if="rechargeSelect.key !== undefined">
<div class="main-title">{{ $t("請選擇銀行卡") }}</div>
<van-cell is-link :title="bankCard.bankNo || $t('請選擇')" />
- <!-- @click="show = true" -->
- <!-- <van-action-sheet
- v-model="show"
- :actions="actions"
- :cancel-text="$t('hj106')"
- close-on-click-action
- @select="select"
- /> -->
</div>
<div class="main-title">{{ $t("請選擇充值金額") }}</div>
<div class="white-input">
@@ -56,18 +56,16 @@
</div>
<div>
<div class="dz-title" v-if="rechargeAccountData.key !== undefined">
- <div>餘額</div>
- <div class="balance-text">{{ availableBalanceUSD }} USD</div>
+ <div>{{ $t("可用餘額") }}</div>
+ <div class="balance-text" v-if="rechargeAccountData.key=='US'">
+ {{ availableBalanceUSD }} USD
+ <!-- {{ symbolCode }} -->
+ </div>
+ <div class="balance-text" v-else>
+ {{ availableBalanceUSD }} MYR
+ <!-- {{ 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-button
class="but"
@@ -97,7 +95,7 @@
// 提款聚到
rechargeSelect: {},
- actions: [{ name: "銀行卡充值", key: "YHK" }],
+ actions: [{ name: this.$t("hj215"), key: "YHK" }],
paymentShow: false,
rechargeAccountShow: false,
@@ -109,10 +107,6 @@
key: "US",
},
{
- name: this.$t("IN"),
- key: "IN",
- },
- {
name: this.$t("MAS"),
key: "MAS",
},
@@ -121,6 +115,7 @@
availableBalanceUSD: "0.0000",
getMoneyList: [],
assetsType: "",
+ symbolCode: "",
};
},
mounted() {
@@ -129,15 +124,14 @@
},
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: this.$t('提款成功,等待审核') });
+ Notify({ type: "success", message: this.$t("hj182") });
setTimeout(() => {
- this.onClickLeft();
+ this.$router.push("/cashlist");
}, 500);
} else {
Notify(res.msg);
@@ -159,8 +153,8 @@
this.getMoneyList = res.data;
res.data.map((item) => {
if (item.accectType === this.rechargeAccountData.key) {
- console.log(item.accectType, "assetsType1");
this.availableBalanceUSD = item.availableBalanceUSD;
+ this.symbolCode = item.symbolCode;
this.accectType = item.accectType;
}
});
@@ -193,8 +187,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;
}
});
@@ -347,4 +341,4 @@
color: #4f5257;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3