diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index 6c0527ca..c19f959f 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -144,10 +144,11 @@ export default { }, onLoad(options) { const params = { - id: uni.getStorageSync("merchantInfo").id + id: Number(uni.getStorageSync("merchantInfo").id) } request(apiArr.getMerchantInfo, "POST", params).then(res => { this.info = res + uni.setStorageSync('merchantInfo', res) // 确保onLoad执行完后再执行这两个方法 this.page_num = 1 diff --git a/packages/localLife/pay/index.vue b/packages/localLife/pay/index.vue index 34eec5a6..d50ffb84 100644 --- a/packages/localLife/pay/index.vue +++ b/packages/localLife/pay/index.vue @@ -304,6 +304,7 @@ export default { success: (payRes) => { const params = { id: this.OrderMsg.id, + back_wygjj: this.homeMoney, } request(apiArr.tradeQuery, "POST", params).then(res => { })