下单
This commit is contained in:
@@ -105,7 +105,7 @@ export default {
|
|||||||
},
|
},
|
||||||
toSuccess() {
|
toSuccess() {
|
||||||
var integralPrice = this.goodsNum*this.goodsInfo.integralPrice
|
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="">
|
<img src="./img/success.png" alt="">
|
||||||
|
|
||||||
|
|
||||||
<div v-if="isFree == 0">
|
<div v-if="goodsInfo.type == 0">
|
||||||
<h3>提交成功</h3>
|
<h3>提交成功</h3>
|
||||||
<p>提交「免费兑」订单成功,扣减 <span>{{integralPrice}}积分</span></p>
|
<p>提交「免费兑」订单成功,扣减 <span>{{integralPrice}}积分</span></p>
|
||||||
<div class="btn-flex">
|
<div class="btn-flex">
|
||||||
@@ -29,10 +29,8 @@ export default {
|
|||||||
appName: '提交订单',
|
appName: '提交订单',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isFree: 0, // 0免费 1京东
|
|
||||||
integralPrice: 0,
|
integralPrice: 0,
|
||||||
backLevel: 1,
|
backLevel: 1,
|
||||||
goodsJdUrl: '',
|
|
||||||
shopGoodsId: '',
|
shopGoodsId: '',
|
||||||
goodsInfo: {}
|
goodsInfo: {}
|
||||||
}
|
}
|
||||||
@@ -41,10 +39,9 @@ export default {
|
|||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.isFree = option.isFree
|
console.log(option)
|
||||||
this.integralPrice = option.integralPrice
|
this.integralPrice = option.integralPrice
|
||||||
this.backLevel = option.backLevel
|
this.backLevel = option.backLevel
|
||||||
this.goodsJdUrl = option.goodsJdUrl
|
|
||||||
this.shopGoodsId = option.shopGoodsId
|
this.shopGoodsId = option.shopGoodsId
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
@@ -58,7 +55,7 @@ export default {
|
|||||||
},
|
},
|
||||||
openJd() {
|
openJd() {
|
||||||
if(this.goodsInfo.type == 1) {
|
if(this.goodsInfo.type == 1) {
|
||||||
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`})
|
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsInfo.jdUrl}`})
|
||||||
}else {
|
}else {
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: this.goodsInfo.jdAppid,
|
appId: this.goodsInfo.jdAppid,
|
||||||
|
|||||||
Reference in New Issue
Block a user