From 2e99af66822a427566109b092682d9f8dcd70760 Mon Sep 17 00:00:00 2001 From: chenbiao Date: Wed, 18 May 2022 10:39:22 +0800 Subject: [PATCH] add 账单详情 接口联调 --- common/common.js | 5 +++++ pages/rechargeDetail/outDetail.vue | 379 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- pages/rechargeDetail/rechargeDetail.vue | 63 +++++++++++++++++++++++++++++++++++++++++---------------------- 3 files changed, 237 insertions(+), 210 deletions(-) diff --git a/common/common.js b/common/common.js index dd43f6e..8dc7f8b 100644 --- a/common/common.js +++ b/common/common.js @@ -52,6 +52,10 @@ const walletDetailsPage = serverUrl + "/business/h5/wallet/detailsPage"; // 钱包充值-微信 const publicUnifiedOrder = serverUrl + "/business/h5/pay/weixinpay/publicUnifiedOrder"; +// 钱包-根据订单ID获取购买优惠券信息 +const couponInfo = serverUrl + "/business/h5/wallet/detail/couponInfo"; +// const couponInfo = "http://127.0.0.1:8075/business/h5/wallet/detail/couponInfo"; + @@ -223,5 +227,6 @@ export default { detailSummary, walletDetailsPage, publicUnifiedOrder, + couponInfo, } diff --git a/pages/rechargeDetail/outDetail.vue b/pages/rechargeDetail/outDetail.vue index 9110b6b..a350f34 100644 --- a/pages/rechargeDetail/outDetail.vue +++ b/pages/rechargeDetail/outDetail.vue @@ -1,201 +1,204 @@ diff --git a/pages/rechargeDetail/rechargeDetail.vue b/pages/rechargeDetail/rechargeDetail.vue index c9ea541..aa4847d 100644 --- a/pages/rechargeDetail/rechargeDetail.vue +++ b/pages/rechargeDetail/rechargeDetail.vue @@ -60,21 +60,24 @@ - - - {{item.changeFeeDetail}} - {{item.payStateDesc}} - - - {{item.typeName}} - {{item.typeName}} - {{item.typeName}} - {{item.typeName}} - {{item.typeName}} - {{item.opTime}} - - - + + + + {{item.changeFeeDetail}} + {{item.payStateDesc}} + + + {{item.typeName}} + {{item.typeName}} + {{item.typeName}} + {{item.typeName}} + {{item.typeName}} + {{item.opTime}} + + + + + @@ -192,6 +195,11 @@ that.type = that.kindArray[that.index].typeList[0].type; console.log(that.kind, that.type) that.getDetailSummary(); + + that.page = 1 + that.pageSize = this.pageSize + that.totalPages = 1 + that.orderList = [] that.fetchData() }, bindPickerChangeWay: function(e) { @@ -200,16 +208,28 @@ this.type = this.arrayWay[this.indexWay].type; console.log(this.kind, this.type) this.getDetailSummary(); + this.page = 1 + this.pageSize = this.pageSize + this.totalPages = 1 + this.orderList = [] this.fetchData() }, bindStartDateChange: function(e) { this.beginDate = e.detail.value this.getDetailSummary(); + this.page = 1 + this.pageSize = this.pageSize + this.totalPages = 1 + this.orderList = [] this.fetchData() }, bindEndDateChange: function(e) { this.overDate = e.detail.value this.getDetailSummary(); + this.page = 1 + this.pageSize = this.pageSize + this.totalPages = 1 + this.orderList = [] this.fetchData() }, getDate(type) { @@ -274,17 +294,16 @@ } else { this.status = 'more' } - that.totalPages = res.data.pageTotals; that.orderList = that.orderList.concat(res.data.dataList) - - }) - - - - }, + toOutDetail(i){ + console.log('详情') + uni.navigateTo({ + url: '../rechargeDetail/outDetail?optionData='+JSON.stringify(i) + }); + } } } -- libgit2 0.21.4