下单
This commit is contained in:
@@ -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}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<img src="./img/success.png" alt="">
|
||||
|
||||
|
||||
<div v-if="isFree == 0">
|
||||
<div v-if="goodsInfo.type == 0">
|
||||
<h3>提交成功</h3>
|
||||
<p>提交「免费兑」订单成功,扣减 <span>{{integralPrice}}积分</span></p>
|
||||
<div class="btn-flex">
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user