From 63551580405e153951c413e740d2097c771a679a Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 22 May 2023 17:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E5=85=91=E6=8D=A2=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E4=BA=AC=E4=B8=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fd/AppRedemptionPoints/goodsList.vue | 6 +-- .../fd/AppRedemptionPoints/myOrderList.vue | 15 +++++-- .../fd/AppRedemptionPoints/placeOrder.vue | 6 +-- .../fd/AppRedemptionPoints/productDetails.vue | 4 +- .../fd/AppRedemptionPoints/successOrder.vue | 41 ++++++++++++------- 5 files changed, 46 insertions(+), 26 deletions(-) diff --git a/src/project/fd/AppRedemptionPoints/goodsList.vue b/src/project/fd/AppRedemptionPoints/goodsList.vue index 502ff29f..d0fc1616 100644 --- a/src/project/fd/AppRedemptionPoints/goodsList.vue +++ b/src/project/fd/AppRedemptionPoints/goodsList.vue @@ -9,8 +9,8 @@
ta的订单
@@ -28,7 +28,7 @@
支付积分
减{{(goodsNum*goodsInfo.integralPrice).toFixed(2)}}积分
-
+
京东支付
¥{{(goodsNum*goodsInfo.payMoney).toFixed(2)}}
diff --git a/src/project/fd/AppRedemptionPoints/productDetails.vue b/src/project/fd/AppRedemptionPoints/productDetails.vue index 55c92847..0e11fd60 100644 --- a/src/project/fd/AppRedemptionPoints/productDetails.vue +++ b/src/project/fd/AppRedemptionPoints/productDetails.vue @@ -4,9 +4,9 @@
{{ $dict.getLabel('integralSGTypeText', goodsInfo.typeText) }}

{{goodsInfo.title}}

-

{{goodsInfo.integralPrice}}积分+¥{{goodsInfo.payMoney}}(兑换后再付)

+

{{goodsInfo.integralPrice}}积分+¥{{goodsInfo.payMoney}}(兑换后再付)

零售单价¥{{goodsInfo.retailPrice}}
- 兑换成功后,点击「去购买」前往京东低价购买 + 兑换成功后,点击「去购买」前往京东低价购买 免费兑换商品,可到固定的兑换点进行「核销兑换」
diff --git a/src/project/fd/AppRedemptionPoints/successOrder.vue b/src/project/fd/AppRedemptionPoints/successOrder.vue index 2b0106f2..303704ae 100644 --- a/src/project/fd/AppRedemptionPoints/successOrder.vue +++ b/src/project/fd/AppRedemptionPoints/successOrder.vue @@ -1,15 +1,7 @@ @@ -28,27 +27,41 @@ export default { appName: '提交订单', data() { return { - isFree: 0, // 0免费 1京东 integralPrice: 0, backLevel: 1, - goodsJdUrl: '' + shopGoodsId: '', + goodsInfo: {} } }, computed: { ...mapState(['user']), }, onLoad(option) { - this.isFree = option.isFree this.integralPrice = option.integralPrice this.backLevel = option.backLevel - this.goodsJdUrl = option.goodsJdUrl + this.shopGoodsId = option.shopGoodsId + this.getDetail() }, onShow() { document.title = '提交订单' }, methods: { + getDetail() { + this.$instance.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => { + if (res.code === 0) { + this.goodsInfo = res.data + } + }) + }, openJd() { - uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`}) + if(this.goodsInfo.type == 1) { + uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsInfo.jdUrl}`}) + }else { + uni.navigateToMiniProgram({ + appId: this.goodsInfo.jdAppid, + path: this.goodsInfo.jdUrl + }) + } }, back() { uni.navigateBack({delta: Number(this.backLevel)})