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 @@
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 @@

-
-
-
兑换成功
-
提交「京东低价商品」订单成功,扣减 {{integralPrice}}积分
- 可点击下方按钮前往京东商城进行低价购买
-
-
去购买
-
-
+
提交成功
提交「免费兑」订单成功,扣减 {{integralPrice}}积分
+
+
兑换成功
+
提交「京东低价商品」订单成功,扣减 {{integralPrice}}积分
+ 可点击下方按钮前往京东商城进行低价购买
+
+
去购买
+
@@ -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)})