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);
......
......@@ -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">
......
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