课程列表显示已读未读

This commit is contained in:
liuyuan
2025-06-23 13:19:18 +08:00
parent 5ecf2dc1fa
commit f6e5da8dca
9 changed files with 655 additions and 416 deletions

View File

@@ -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 = [];