课程列表显示已读未读
This commit is contained in:
@@ -815,30 +815,32 @@ export default {
|
||||
//获取商品信息
|
||||
// await this.getGoodsDataInfo();
|
||||
await this.initPrepareOrder();
|
||||
this.$nextTick(async () => {
|
||||
if (this.pageType == "vip") {
|
||||
await this.getTotalPrice();
|
||||
} else {
|
||||
await this.getVipFei();
|
||||
await this.getDistrictAmount();
|
||||
await this.getActiveCouponList();
|
||||
}
|
||||
|
||||
var list = [...this.goodsDataList];
|
||||
list = list.map((e) => e.goodsType);
|
||||
this.haveCourse = list.some((ele) => ele === "05");
|
||||
if (this.options.sourceType == "curriculum") {
|
||||
this.goToInfo = {
|
||||
url: "/pages/course/myCourse",
|
||||
type: 2,
|
||||
};
|
||||
} else {
|
||||
this.goToInfo = {
|
||||
url: "/pages/bookShop/orderList",
|
||||
type: 1,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
if (this.pageType == "vip") {
|
||||
console.log(111)
|
||||
await this.getTotalPrice();
|
||||
} else {
|
||||
console.log(222)
|
||||
await this.getVipFei();
|
||||
await this.getDistrictAmount();
|
||||
await this.getActiveCouponList();
|
||||
}
|
||||
|
||||
var list = [...this.goodsDataList];
|
||||
list = list.map((e) => e.goodsType);
|
||||
console.log(333)
|
||||
this.haveCourse = list.some((ele) => ele === "05");
|
||||
if (this.options.sourceType == "curriculum") {
|
||||
this.goToInfo = {
|
||||
url: "/pages/course/myCourse",
|
||||
type: 2,
|
||||
};
|
||||
} else {
|
||||
this.goToInfo = {
|
||||
url: "/pages/bookShop/orderList",
|
||||
type: 1,
|
||||
};
|
||||
}
|
||||
},
|
||||
async getVipFei() {
|
||||
let key = [];
|
||||
|
||||
Reference in New Issue
Block a user