Commit 9efca3f1 by 冷斌

fix bug

parent a1b6f042
......@@ -238,7 +238,7 @@
},
isVideoLocked: function() {
return function(child) {
if(this.bought) {
if(this.bought || this.isFree) {
return false
} else {
return child.is_free != 1
......@@ -249,7 +249,7 @@
subVideo: function () {
// let isVideoLocked = this.isVideoLocked(child);
return function(child) {
if (!this.isVideoLocked(child)) {
if (!this.isVideoLocked(child) || this.isFree) {
// window.location.href = 1;
// <a href="{:U('course/Video/watch',array('id'=>$vo1['vid'],'s_id'=>$vo1['id']))}">
let url = "{:U('course/Video/watch')}";
......
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