From 138d18ce6b9e5c4957650a128350a9e50f3a0088 Mon Sep 17 00:00:00 2001
From: elf <360197197@qq.com>
Date: Mon, 25 Dec 2023 22:19:37 +0800
Subject: [PATCH] yh
---
public/account.html | 149 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 147 insertions(+), 2 deletions(-)
diff --git a/public/account.html b/public/account.html
index eb770df..2ce7025 100644
--- a/public/account.html
+++ b/public/account.html
@@ -10,7 +10,7 @@
-
+
@@ -60,6 +60,101 @@
2. 按弹窗提示转账
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 充值金额:{{ amount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -137,7 +232,21 @@
},
acsNo: '',
outOrderNo: '',
- payInfoVisible: false
+ payInfoVisible: false,
+ search: {
+ mobile: '',
+ cardNo: '',
+ bankCardNo: '',
+ orderNo: '',
+ outOrderNo: '',
+ cardUserName: '',
+ timeRange: null,
+ status: undefined
+ },
+ records: [],
+ total: 0,
+ amount: 0,
+ pageSize: 20
}
},
created() {
@@ -311,6 +420,42 @@
}
}
return undefined;
+ },
+ searchList(page) {
+ let data = {...this.search}
+ data.token = window.sessionStorage.getItem('token');
+ data.page = page;
+ data.pageSize = this.pageSize;
+ axios.post('/account/get-orders', data)
+ .then( (response) => {
+ console.log(response);
+ let result = response.data
+ if (result.code != 1000) {
+ if (result.code == 2005) {
+ this.loginVisible = true;
+ }
+ return this.$message.error(response.data.message);
+ }
+ this.records = result.data.records;
+ this.total = result.data.total;
+ this.amount = result.data.amount;
+ })
+ .catch((error) => {
+ this.$message.error('请求错误');
+ console.log(error);
+ });
+ console.log('submit!');
+ },
+ query() {
+ this.searchList(1)
+ },
+ handleCurrentChange(val) {
+ this.searchList(val)
+ },
+ handleClick(tab, event) {
+ if (tab === 'orders') {
+ this.searchList(1)
+ }
}
}
})