From bb845e84c2fd2a3f0b780b871d93934b16e1490e Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Sun, 12 May 2024 18:37:16 +0800
Subject: [PATCH] 最低取款金额
---
src/page/user/recharge-sure.vue | 77 +++++++++++++++++++++-----------------
1 files changed, 42 insertions(+), 35 deletions(-)
diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index b06bd3d..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
@@ -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,19 +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">
+ {{ 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"
@@ -81,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,
@@ -97,7 +99,7 @@
// 提款聚到
rechargeSelect: {},
- actions: [{ name: this.$t("銀行卡充值"), key: "YHK" }],
+ actions: [{ name: this.$t("hj215"), key: "YHK" }],
paymentShow: false,
rechargeAccountShow: false,
@@ -112,15 +114,21 @@
name: this.$t("IN"),
key: "IN",
},
- {
- name: this.$t("MAS"),
- key: "MAS",
- },
+ // {
+ // name: this.$t("MAS"),
+ // key: "MAS",
+ // },
+ // {
+ // name: this.$t("HK"),
+ // key: "HK",
+ // },
],
+
bankCard: {},
availableBalanceUSD: "0.0000",
getMoneyList: [],
assetsType: "",
+ symbolCode: "",
};
},
mounted() {
@@ -129,15 +137,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 +166,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.availableBalanceUSD = item.availableBalance;
+ this.symbolCode = item.symbolCode;
this.accectType = item.accectType;
}
});
@@ -193,8 +200,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.availableBalanceUSD = item.availableBalance;
+ this.symbolCode = item.symbolCode;
this.accectType = item.accectType;
}
});
@@ -347,4 +354,4 @@
color: #4f5257;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3