Commit 1d25e86e by 冷斌

fix bug

parent f5ad1e5b
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<span class="text_14_600 color_333333">{{item.video_info.video_title}}</span> <span class="text_14_600 color_333333">{{item.video_info.video_title}}</span>
<div class="layout_h_b"> <div class="layout_h_b">
<span class="text_14_600 color_FF3B3B">{{(item.video_info.t_price == 0 || item.video_info.is_charge > 0) ? '免费' : ('¥' + item.video_info.t_price) }}</span> <span class="text_14_600 color_FF3B3B">{{(item.video_info.t_price == 0 || item.video_info.is_charge > 0) ? '免费' : ('¥' + item.video_info.t_price) }}</span>
<div class="collect_view_button layout_center text_12_400 color_white">查看</div> <div @click="" class="collect_view_button layout_center text_12_400 color_white">查看</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -80,13 +80,13 @@ ...@@ -80,13 +80,13 @@
}, 'json'); }, 'json');
}, },
methods: { methods: {
onTab: function(tab) { onShow: function(item) {
this.tab = tab let url = "/course/"+item.video_info.id+".html"
window.location.href = url;
}, },
onLoad: function() { onShow2: function(item) {
let that = this let url = "{:U('course/Video/view')}"
let opt = that.options[this.tab] window.location.href = url.replace(/\[.*?\]/g, item.id)
//TODO LOADING
} }
} }
}) })
......
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