Commit 6c82c8bd by 陈超

T

parent 17568461
...@@ -74,7 +74,31 @@ ...@@ -74,7 +74,31 @@
</div> </div>
</div> </div>
</van-sticky> </van-sticky>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<div v-for="(item, index) in items" :key="index" class="home_class_item layout_v">
<div class="layout_h">
<van-image style="margin-right: 0.75rem;" height="72" width="128" fit="cover" src="{:getCover($vo['cover'] ,580 , 320 )}">
</van-image>
<div class="weight_full layout_v">
<span class="text_14_600 color_333333 van-multi-ellipsis--l2">{$vo.video_title}</span>
<span class="text_14_600 color_FF3B3B" style="margin-top: 0.5rem;">
<if condition="$vo['t_price'] eq 0">免费
<else />¥{$vo['t_price']}</if>
</span>
<span class="text_12_400 color_999999">
<php>if($marketConf['order_switch'] == 1) {</php>{$vo['video_order_count_mark']}<php>}else{</php>{$vo['video_order_count']}<php>}</php>人正在学习
</span>
</div>
</div>
<div class="home_divider divider"></div>
</div>
</van-list>
</div> </div>
</div> </div>
<!--选择价格区间弹框--> <!--选择价格区间弹框-->
...@@ -272,8 +296,12 @@ ...@@ -272,8 +296,12 @@
buy: "", buy: "",
minPrice: "", minPrice: "",
maxPrice: "", maxPrice: "",
loading: false,
finished: false,
conditions: [], conditions: [],
selected: [] selected: [],
page: 0,
items: []
} }
}, },
computed: { computed: {
...@@ -294,7 +322,7 @@ ...@@ -294,7 +322,7 @@
}, },
created: function(){ created: function(){
document.title = "全部真题" document.title = "全部课程"
}, },
methods: { methods: {
...@@ -337,6 +365,22 @@ ...@@ -337,6 +365,22 @@
this.$refs.filter.toggle(); this.$refs.filter.toggle();
this.onCategory('', '') this.onCategory('', '')
this.onBuy('', '') this.onBuy('', '')
},
onLoad: function() {
let that = this
$.ajax({
type: "GET",
url: "{:U('course/Video/index')}",
data: "p=" + (this.page + 1) +
"&orderBy=&cateId=" + this.cate + "&vtype=1&charge=&videofile=&eaxm_id=&lower=" + this.minPrice + "&mhm_id=&best={$_GET['best']}&vip_id=",
dataType: "json",
success: function(data) {
that.loading =false
that.finished = true
console.log(data)
}
})
} }
} }
...@@ -469,7 +513,7 @@ ...@@ -469,7 +513,7 @@
$(".prevValue").css("display", "none") $(".prevValue").css("display", "none")
} }
</script> </script>
<script type="text/javascript"> <!-- <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$(".nav_list ul li:eq(1)").addClass("on"); $(".nav_list ul li:eq(1)").addClass("on");
}); });
...@@ -522,14 +566,12 @@ ...@@ -522,14 +566,12 @@
$(".jiujiunone-class-bg").hide() $(".jiujiunone-class-bg").hide()
}) })
// $(".jiujiunone-class-base").click(function(){
// });
// 选中 // 选中
$(".jiujiunone-class-id").click(function(e){ $(".jiujiunone-class-id").click(function(e){
e.preventDefault(); e.preventDefault();
$(".jiujiunone-class-id").removeClass("active"); $(".jiujiunone-class-id").removeClass("active");
$(this).addClass("active"); $(this).addClass("active");
}) })
</script> </script> -->
<include file="__THEME__/public_footer_w3g" /> <include file="__THEME__/public_footer_w3g" />
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