From 032b2ec9ead4d918ed53f31b8af32bd1a625721a Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 22 May 2023 16:51:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppRedemptionPoints/placeOrder.vue | 2 +- src/project/fengdu/AppRedemptionPoints/successOrder.vue | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue index aeba23c..1bc120d 100644 --- a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue +++ b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue @@ -105,7 +105,7 @@ export default { }, toSuccess() { var integralPrice = this.goodsNum*this.goodsInfo.integralPrice - uni.navigateTo({url: `./successOrder?isFree=${this.goodsInfo.type}&integralPrice=${integralPrice}&backLevel=${this.backLevel}&goodsJdUrl=${this.goodsInfo.jdUrl}&shopGoodsId=${this.goodsInfo.shopGoodsId}`}) + uni.navigateTo({url: `./successOrder?integralPrice=${integralPrice}&backLevel=${this.backLevel}&shopGoodsId=${this.goodsInfo.shopGoodsId}`}) } }, } diff --git a/src/project/fengdu/AppRedemptionPoints/successOrder.vue b/src/project/fengdu/AppRedemptionPoints/successOrder.vue index acac937..1f4ebbe 100644 --- a/src/project/fengdu/AppRedemptionPoints/successOrder.vue +++ b/src/project/fengdu/AppRedemptionPoints/successOrder.vue @@ -3,7 +3,7 @@ -
+

提交成功

提交「免费兑」订单成功,扣减 {{integralPrice}}积分

@@ -29,10 +29,8 @@ export default { appName: '提交订单', data() { return { - isFree: 0, // 0免费 1京东 integralPrice: 0, backLevel: 1, - goodsJdUrl: '', shopGoodsId: '', goodsInfo: {} } @@ -41,10 +39,9 @@ export default { ...mapState(['user']), }, onLoad(option) { - this.isFree = option.isFree + console.log(option) this.integralPrice = option.integralPrice this.backLevel = option.backLevel - this.goodsJdUrl = option.goodsJdUrl this.shopGoodsId = option.shopGoodsId this.getDetail() }, @@ -58,7 +55,7 @@ export default { }, openJd() { if(this.goodsInfo.type == 1) { - uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`}) + uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsInfo.jdUrl}`}) }else { uni.navigateToMiniProgram({ appId: this.goodsInfo.jdAppid,