Commit d80bd54f by 冷斌

fix bug

parent 20516fb7
......@@ -51,7 +51,7 @@
<div @click="onTapCourse(child, item)" v-for="(child, idx) in item.child" :key="idx" class="course_each layout_v">
<div class="layout_h" style="margin-left: 0.75rem;margin-right: 0.75rem;">
<van-icon size="16" :name="isVideoLocked(child) ? '__THEME__/img/locked.png' : '__THEME__/img/unlocked.png'" ></van-icon>
<div class="layout_v weight_full" style="margin-left: 0.5rem;">
<div @click="subVideo(child)" class="layout_v weight_full" style="margin-left: 0.5rem;">
<span class="text_14_400 color_333333">{{child.title}}</span>
<span class="text_12_400 color_999999" style="margin-top: 0.25rem;">{{child.duration}}</span>
</div>
......@@ -231,11 +231,16 @@
if(this.bought) {
return false
} else {
//child.is_free != 1 ||
return this.price != 0;
return child.is_free != 1
// return this.price != 0;
}
}
},
subVideo: function (child) {
let isVideoLocked = this.isVideoLocked(child);
console.log(isVideoLocked, child);
// window.location.href = "{:U('basic/Passport/login')}";
},
childStyle: function() {
return function(idx, item) {
let child = item.child
......
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