From 3003b7486ddeffd169f2b2f564fc0ff8c2c58bb3 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Tue, 22 Jul 2025 09:56:04 +0800
Subject: [PATCH] 1
---
src/page/user/recharge-sure.vue | 57 ++++++++++++++++++++++++++++++++++-----------------------
1 files changed, 34 insertions(+), 23 deletions(-)
diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index 6ca9144..ad27219 100644
--- a/src/page/user/recharge-sure.vue
+++ b/src/page/user/recharge-sure.vue
@@ -48,7 +48,7 @@
<!-- <van-cell is-link :title="bankCard.bankName || $t('請選擇')" /> -->
<van-cell
is-link
- :title="yhkrechargeSelect.bankName || $t('請選擇')"
+ :title="yhkrechargeSelect.bankName || $t('請選擇')"
@click="yhkshow = true"
/>
<van-action-sheet
@@ -82,6 +82,7 @@
type="primary"
style="margin-top: 1.04rem; margin-bottom: 1.04rem"
@click="setOutMoney"
+ :disabled="isclick"
>{{ $t("提款") }}</van-button
>
</main>
@@ -91,6 +92,7 @@
<script>
import { ActionSheet, Notify } from "vant";
import ClipboardJS from "clipboard";
+import _ from "lodash";
import { getBankCard, getMoney, outMoney } from "../../axios/api";
export default {
@@ -100,9 +102,9 @@
value: 0,
paymentSelectData: "IN",
-
+ isclick: false,
show: false,
- yhkshow:false,
+ yhkshow: false,
// 提款聚到
rechargeSelect: {},
yhkrechargeSelect: {},
@@ -114,10 +116,14 @@
// 请选择提款账户
rechargeAccountData: {},
rechargeAccountActions: [
+ // {
+ // name: this.$t("IN"),
+ // key: "IN",
+ // },
{
- name: this.$t("IN"),
- key: "IN",
- },
+ name: "MEX",
+ key: "MEX"
+ }
// {
// name: this.$t("MAS"),
// key: "MAS",
@@ -133,7 +139,7 @@
getMoneyList: [],
assetsType: "",
symbolCode: "",
- yhkid:'',
+ yhkid: ""
};
},
mounted() {
@@ -142,16 +148,19 @@
},
methods: {
async setOutMoney() {
+ if (this.isclick) return;
+ console.log("11111");
const res = await outMoney({
amt: this.value,
assetsType: this.accectType,
- bankId:this.yhkid
+ bankId: this.yhkid
});
+ this.isclick = false;
if (res.status === 0) {
Notify({ type: "success", message: this.$t("hj182") });
- setTimeout(() => {
- this.$router.push("/cashlist");
- }, 500);
+ // setTimeout(() => {
+ this.$router.push("/cashlist");
+ // }, 500);
} else {
Notify(res.msg);
}
@@ -164,9 +173,9 @@
const res = await getBankCard();
if (res.status === 0) {
this.bankCard = res.data;
- this.yhkactions = res.data
- for(var i = 0;i<this.yhkactions.length;i++){
- this.yhkactions[i].name = this.yhkactions[i].bankName
+ this.yhkactions = res.data;
+ for (var i = 0; i < this.yhkactions.length; i++) {
+ this.yhkactions[i].name = this.yhkactions[i].bankName;
}
}
},
@@ -174,7 +183,7 @@
const res = await getMoney();
if (res.status === 0) {
this.getMoneyList = res.data;
- res.data.map((item) => {
+ res.data.map(item => {
if (item.accectType === this.rechargeAccountData.key) {
this.availableBalanceUSD = item.availableBalance;
this.symbolCode = item.symbolCode;
@@ -189,7 +198,7 @@
},
copyText(e, data) {
var clipboard = new ClipboardJS(".copy-button", {
- text: () => data,
+ text: () => data
});
clipboard.on("success", () => {
@@ -200,11 +209,11 @@
clipboard.onClick(e);
},
onClickLeft() {
- this.$router.push("/user");
+ this.$router.push("/account");
},
yhkselect(e) {
this.yhkrechargeSelect = e;
- this.yhkid = e.id
+ this.yhkid = e.id;
console.log(e);
},
select(e) {
@@ -213,7 +222,7 @@
},
rechargeAccountSelect(e) {
this.rechargeAccountData = e;
- (this.getMoneyList || []).map((item) => {
+ (this.getMoneyList || []).map(item => {
if (item.accectType === this.rechargeAccountData.key) {
this.availableBalanceUSD = item.availableBalance;
this.symbolCode = item.symbolCode;
@@ -224,16 +233,18 @@
paymentSelect(e) {
this.paymentSelectData = e.name;
console.log(e);
- },
- },
+ }
+ }
};
</script>
<style lang="less" scoped>
+@green: #c4d600;
.but {
width: 100%;
color: #ffffff;
- background-color: #1989fa;
+ background-color: @green;
+ border: none;
border-radius: 8px;
height: 66px;
font-size: 22px;
@@ -349,7 +360,7 @@
cursor: pointer;
}
.myr {
- color: rgb(5, 106, 239);
+ color: @green;
cursor: pointer;
}
.dz-title {
--
Gitblit v1.9.3