|
@@ -977,7 +977,7 @@ export default {
|
|
|
courseId: courseItem.courseId,
|
|
|
gradeId: item.gradeId,
|
|
|
goodsId: item.goodsId,
|
|
|
- orderGoodsId:item.orderGoodsId
|
|
|
+ orderGoodsId: item.orderGoodsId
|
|
|
})
|
|
|
.then(res => {
|
|
|
// res.data = res.data.filter(
|
|
@@ -1152,9 +1152,11 @@ export default {
|
|
|
},
|
|
|
async goCourseDetail(item) {
|
|
|
//-----------------七大员是否允许学习
|
|
|
- let so = await this.$request.orderstudycheck(item.orderGoodsId);
|
|
|
- if (so.code !== 200) {
|
|
|
- return false;
|
|
|
+ try {
|
|
|
+ await this.$request.orderstudycheck(item.orderGoodsId);
|
|
|
+ } catch (error) {
|
|
|
+ this.$message.error(error.msg);
|
|
|
+ return;
|
|
|
}
|
|
|
//-----------------学习开通状态
|
|
|
this.checkFuncA(item);
|