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) + } } } })