提交
This commit is contained in:
@@ -452,6 +452,7 @@
|
||||
fatherIndex: null,
|
||||
supportFlag: false,
|
||||
selectGoodsData: {},
|
||||
|
||||
buyOptions: [
|
||||
// {
|
||||
// icon: 'chat',
|
||||
@@ -663,12 +664,8 @@
|
||||
this.$forceUpdate();
|
||||
},
|
||||
onHandleClickBuy(e) {
|
||||
console.log("this.selectGoodsData at line 589:", this.selectGoodsData);
|
||||
|
||||
// if (e.index == 0) {
|
||||
// this.handleClickClose();
|
||||
// }
|
||||
// if (e.index == 0) {
|
||||
console.log("this.selectGoodsData at line 589:", this.selectGoodsData);
|
||||
|
||||
var mynavData = JSON.stringify({
|
||||
goods: [this.selectGoodsData],
|
||||
typeId: 0,
|
||||
@@ -688,7 +685,7 @@
|
||||
//获取相关关联课程商品
|
||||
handleClickGetGoodsList(v) {
|
||||
// console.log("data at line 313:", data);
|
||||
|
||||
|
||||
if (v.type == 0) {
|
||||
//免费
|
||||
|
||||
@@ -705,20 +702,11 @@
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
console.log("res at line 493:", res);
|
||||
console.log("res at line 493:", res);
|
||||
if (res.code == 0) {
|
||||
this.getCourseDescriptionData();
|
||||
// this.$commonJS.showToast("");
|
||||
}
|
||||
// if (res.productList.length > 0) {
|
||||
// this.goodsList = res.productList;
|
||||
// this.selectGoodsData = this.goodsList[0];
|
||||
// this.$refs.commonSelectGoods.open();
|
||||
// this.show = true;
|
||||
// } else {
|
||||
// this.$commonJS.showToast("此课程暂无购买方式");
|
||||
// }
|
||||
|
||||
this.$forceUpdate();
|
||||
});
|
||||
} else {
|
||||
@@ -734,7 +722,7 @@
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
.then(async (res) => {
|
||||
if (res.productList.length > 0) {
|
||||
this.goodsList = res.productList;
|
||||
this.selectGoodsData = this.goodsList[0];
|
||||
@@ -745,7 +733,7 @@
|
||||
}
|
||||
|
||||
this.$forceUpdate();
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
getUserInfo() {
|
||||
|
||||
Reference in New Issue
Block a user