diff --git a/packages/localLife/pay/index.vue b/packages/localLife/pay/index.vue index 6d3ecd33..cc07cb55 100644 --- a/packages/localLife/pay/index.vue +++ b/packages/localLife/pay/index.vue @@ -268,7 +268,7 @@ export default { }, payList() { - NavgateTo("../payInfo/index") + NavgateTo("../payInfo/index?id=" + this.info.id) }, homeMoneList() { NavgateTo("../houseProvident/index") diff --git a/packages/localLife/payInfo/index.vue b/packages/localLife/payInfo/index.vue index ccd425a3..044d9f97 100644 --- a/packages/localLife/payInfo/index.vue +++ b/packages/localLife/payInfo/index.vue @@ -7,20 +7,20 @@ ¥{{ item.order_amount }} - {{item.create_time}} + {{ item.create_time }} Adapay微信小程序支付 - {{item.payment_method}} + {{ item.payment_method }} 订单号 - {{item.order_no}} + {{ item.order_no }} 消费门店 - {{item.merchant_info.merchant_name}} + {{ item.merchant_info.merchant_name }} @@ -74,14 +74,16 @@ export default { localHeight: "", page_num: 1, page_size: 10, - flag:false, - payList:[] + flag: false, + payList: [], + id: "", } }, onLoad(options) { const meun = menuButtonInfo(); this.top = meun.top; this.localHeight = meun.height; + this.id = options.id this.getPayList() }, @@ -97,12 +99,13 @@ export default { getPayList() { let that = this request(apiArr.getPayList, "POST", { - page_num:that.page_num, - page_size:that.page_size - }).then(res=>{ - if(res.rows.length == that.page_size){ + merchant_id: that.id, + page_num: that.page_num, + page_size: that.page_size + }).then(res => { + if (res.rows.length == that.page_size) { that.flag = true - }else{ + } else { that.flag = false } that.payList = that.payList.concat(res.rows)