Commit 9736a923 by 冷斌

`试卷`

parent 66d773e3
......@@ -49,6 +49,12 @@ class IndexAction extends CommonAction
$map['listingtime'] = ['LT', time()];
OPEN_SCHOOL && $map['show_place'] = ['neq', 2];
$where = [
'_string' =>'(`start_time` <= ' . time() . ' OR `start_time` = 0) AND (`end_time` >= ' . time() . ' OR `end_time` = 0)',
'best' => 1,
];
$list = D('ExamsPaper', 'exams')->getPaperPageList($where, 16, 'default', true);
$this->assign('exams', $list);
if ($config['tpl'] == 'theme_x4') {
$info_data = $this->get_index_one_data($config['item']);
$this->assign('info_data', $info_data);
......
<include file="__THEME__/public_header_w3g" />
<include file="__THEME__/public_header_w3g" />
<div id="app">
<div class="layout_v tab_container">
<!--search-->
......@@ -7,7 +7,7 @@
background="#FFFFFF" placeholder="搜索课程...">
</van-search>
</a>
1111111111 {$exams}
<!--banner start-->
<van-swipe class="home_swapper" indicator-color="white">
<volist name="ad_list" id="adlt">
......@@ -18,7 +18,7 @@
</van-swipe-item>
</volist>
</van-swipe>
<volist name="config_index.item" id="item_name">
<eq name="item_name" value="category">
<!-- 分类 -->
......@@ -36,7 +36,7 @@
</volist>
</div>
</eq>
<eq name="item_name" value="bestCourse_new">
<!-- 精选课程 -->
<div class="home_list_part" style="margin-top: 2.125rem;">
......@@ -49,7 +49,7 @@
</div>
</div>
</div>
<div class="layout_v">
<volist name="bestVideo" id="vo" offset="0" length='4'>
<switch name="vo.type">
......@@ -76,7 +76,7 @@
</div>
</a>
</volist>
<!-- 精选真题 -->
<div class="home_list_part" style="margin-top: 1rem;">
<div class="home_list_header layout_h">
......@@ -88,7 +88,7 @@
</div>
</div>
</div>
<div class="layout_v home_question_item">
<div class="layout_h">
<div class="home_item_mark_green layout_center">免费</div>
......@@ -101,7 +101,7 @@
</div>
<div class="home_divider divider"></div>
</div>
<div class="layout_v home_question_item">
<div class="layout_h">
<div class="home_item_mark_orange layout_center">付费</div>
......@@ -114,18 +114,18 @@
</div>
<div class="home_divider divider"></div>
</div>
</div>
</eq>
</volist>
</div>
<div>
<van-tabbar
v-model="active"
@change="onChange"
:fixed="true"
:route="false"
:safe-area-inset-bottom="true"
v-model="active"
@change="onChange"
:fixed="true"
:route="false"
:safe-area-inset-bottom="true"
active-color="#65C000"
inactive-color="#363636">
<van-tabbar-item>
......@@ -165,21 +165,21 @@
</template>
</van-tabbar-item>
</van-tabbar>
</div>
</div>
<!-- <include file="__THEME__/public_footer_w3g" /> -->
<script type="text/javascript">
new Vue({
el: '#app',
data: function() {
return {
active: 0
}
},
methods: {
onChange: function(tab) {
}
}
})
</div>
</div>
<!-- <include file="__THEME__/public_footer_w3g" /> -->
<script type="text/javascript">
new Vue({
el: '#app',
data: function() {
return {
active: 0
}
},
methods: {
onChange: function(tab) {
}
}
})
</script>
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