@@ -42,7 +42,7 @@ export default {
onLoad(option) {
this.shopGoodsId = option.shopGoodsId
this.total = option.total
- this.$dict.load(['integralSGType']).then(() => {
+ this.$dict.load(['integralSGTypeText']).then(() => {
this.getDetail()
})
},
@@ -51,6 +51,7 @@ export default {
this.$instance.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
if (res.code === 0) {
this.goodsInfo = res.data
+ this.goodsInfo.typeText = this.goodsInfo.type == 0 ? 0 : 1
}
})
},
@@ -83,6 +84,9 @@ export default {
padding: 16px 16px 16px 36px;
border-bottom-left-radius: 40px;
}
+ .type2 {
+ background-color: #E64E39;
+ }
.type1 {
background-color: #E64E39;
}
diff --git a/src/project/szpc/AppRedemptionPoints/successOrder.vue b/src/project/szpc/AppRedemptionPoints/successOrder.vue
index f36cc13..1f4ebbe 100644
--- a/src/project/szpc/AppRedemptionPoints/successOrder.vue
+++ b/src/project/szpc/AppRedemptionPoints/successOrder.vue
@@ -2,14 +2,8 @@

-
-
兑换成功
-
提交「京东低价商品」订单成功,扣减 {{integralPrice}}积分
- 可点击下方按钮前往京东商城进行低价购买
-
-
去购买
-
-
+
+
提交成功
提交「免费兑」订单成功,扣减 {{integralPrice}}积分
+
+
兑换成功
+
提交「京东低价商品」订单成功,扣减 {{integralPrice}}积分
+ 可点击下方按钮前往京东商城进行低价购买
+
+
去购买
+
@@ -28,24 +29,39 @@ 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
+ console.log(option)
this.integralPrice = option.integralPrice
this.backLevel = option.backLevel
- this.goodsJdUrl = option.goodsJdUrl
+ this.shopGoodsId = option.shopGoodsId
+ this.getDetail()
},
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)})