Commit fa893dac authored by 张伯涛's avatar 张伯涛

bug修改

parent e6270513
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
:class="item.isExpired == 1 ? 'box-grey' : ''" :class="item.isExpired == 1 ? 'box-grey' : ''"
> >
<div class="classes-itme"> <div class="classes-itme">
<div class="classes-name">已学完:</div> <div class="classes-name">已学完</div>
<div class="classes-value red"> <div class="classes-value red">
{{ item.learnedChapterNum }}小节 {{ item.learnedChapterNum }}小节
</div> </div>
......
...@@ -703,7 +703,7 @@ export default { ...@@ -703,7 +703,7 @@ export default {
this.courseDetails.half = Number((this.courseDetails.courseGrad / 2).toFixed(1)) this.courseDetails.half = Number((this.courseDetails.courseGrad / 2).toFixed(1))
} }
// 课程是否可观看 isPay === '0' 不付费, lessonIsPay === 1 已购买 ,isExpired === '0'未过期 // 课程是否可观看 isPay === '0' 不付费, lessonIsPay === 1 已购买 ,isExpired === '0'未过期
if ((this.courseDetails.isPay === '0' || this.courseDetails.lessonIsPay === 1) && this.courseDetails.isExpired === '0') { if (this.courseDetails.isPay === '0' || (this.courseDetails.lessonIsPay === 1 && this.courseDetails.isExpired === '0')) {
this.canWatch = true this.canWatch = true
} else { } else {
this.canWatch = false this.canWatch = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment