|
@@ -293,7 +293,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log('option:', option);
|
|
|
if (option.scene) {
|
|
|
// scene 生成二维码扫码进来的
|
|
|
let optObj = {}
|
|
@@ -344,9 +343,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
- setTimeout(() => {
|
|
|
- this.buy()
|
|
|
- }, 1000)
|
|
|
let self = this
|
|
|
uni.$on('getSection', item => {
|
|
|
//播放试听
|
|
@@ -431,9 +427,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- select(idx) {
|
|
|
- console.log(idx, 666)
|
|
|
- },
|
|
|
courseBusiness() {
|
|
|
// url: '/app/common/course/business/'+data,
|
|
|
this.$api.courseBusiness(this.detail.businessId).then(res => {
|
|
@@ -936,7 +929,16 @@ export default {
|
|
|
if (this.isCarOrBuy == 1) { // 加入购物车
|
|
|
this.addShopCart(goodsIds)
|
|
|
} else {
|
|
|
- this.$navTo.togo('/pages2/order/confirm_list?id=' + this.skuItem.goodsId);
|
|
|
+ if (this.isSingleChoice) {
|
|
|
+ this.$navTo.togo('/pages2/order/confirm_list?id=' + goodsIds);
|
|
|
+ } else {
|
|
|
+ let data = []
|
|
|
+ goodsIds.forEach(id => {
|
|
|
+ data.push(this.specAttrPriceList.find(e => e.goodsId == id))
|
|
|
+ })
|
|
|
+ this.$store.commit('setShoppingCartList', { shoppingCartList: data });
|
|
|
+ this.$navTo.togo('/pages2/order/confirm_pay');
|
|
|
+ }
|
|
|
}
|
|
|
this.closePop()
|
|
|
})
|