优惠券
This commit is contained in:
@@ -799,7 +799,7 @@
|
||||
.then(async (res) => {
|
||||
console.log("res at line 493:", res);
|
||||
if (res.code == 0) {
|
||||
this.getCourseDescriptionData();
|
||||
this.getCourseDescriptionData(v);
|
||||
// this.$commonJS.showToast("");
|
||||
}
|
||||
this.$forceUpdate();
|
||||
@@ -812,32 +812,35 @@
|
||||
showCancel:false
|
||||
})
|
||||
}else {
|
||||
this.$http
|
||||
.request({
|
||||
url: this.urlList.goodsList,
|
||||
method: "POST",
|
||||
data: {
|
||||
id: v.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
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();
|
||||
})
|
||||
this.getCourseDescriptionData(v);
|
||||
}
|
||||
},
|
||||
getCourseDescriptionData(v){
|
||||
this.$http
|
||||
.request({
|
||||
url: this.urlList.goodsList,
|
||||
method: "POST",
|
||||
data: {
|
||||
id: v.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
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();
|
||||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||
console.log("res at line 505:", res);
|
||||
|
||||
Reference in New Issue
Block a user