From 7043590a8a1d24a4c86472051c103a8e4dc2ddb4 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sat, 09 Aug 2025 17:34:01 +0800
Subject: [PATCH] 1
---
src/page/user/recharge-sure.vue | 52 +++++++++++++++++++++++++++++-----------------------
1 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/src/page/user/recharge-sure.vue b/src/page/user/recharge-sure.vue
index aa8f783..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
@@ -92,7 +92,7 @@
<script>
import { ActionSheet, Notify } from "vant";
import ClipboardJS from "clipboard";
-import _ from 'lodash';
+import _ from "lodash";
import { getBankCard, getMoney, outMoney } from "../../axios/api";
export default {
@@ -102,9 +102,9 @@
value: 0,
paymentSelectData: "IN",
- isclick:false,
+ isclick: false,
show: false,
- yhkshow:false,
+ yhkshow: false,
// 提款聚到
rechargeSelect: {},
yhkrechargeSelect: {},
@@ -116,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",
@@ -135,7 +139,7 @@
getMoneyList: [],
assetsType: "",
symbolCode: "",
- yhkid:'',
+ yhkid: ""
};
},
mounted() {
@@ -145,17 +149,17 @@
methods: {
async setOutMoney() {
if (this.isclick) return;
- console.log('11111');
+ 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");
+ this.$router.push("/cashlist");
// }, 500);
} else {
Notify(res.msg);
@@ -169,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;
}
}
},
@@ -179,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;
@@ -194,7 +198,7 @@
},
copyText(e, data) {
var clipboard = new ClipboardJS(".copy-button", {
- text: () => data,
+ text: () => data
});
clipboard.on("success", () => {
@@ -205,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) {
@@ -218,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;
@@ -229,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;
@@ -354,7 +360,7 @@
cursor: pointer;
}
.myr {
- color: rgb(5, 106, 239);
+ color: @green;
cursor: pointer;
}
.dz-title {
--
Gitblit v1.9.3