Commit 9efca3f1 by 冷斌

fix bug

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