Commit 9736a923 by 冷斌

`试卷`

parent 66d773e3
...@@ -49,6 +49,12 @@ class IndexAction extends CommonAction ...@@ -49,6 +49,12 @@ class IndexAction extends CommonAction
$map['listingtime'] = ['LT', time()]; $map['listingtime'] = ['LT', time()];
OPEN_SCHOOL && $map['show_place'] = ['neq', 2]; 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') { if ($config['tpl'] == 'theme_x4') {
$info_data = $this->get_index_one_data($config['item']); $info_data = $this->get_index_one_data($config['item']);
$this->assign('info_data', $info_data); $this->assign('info_data', $info_data);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
background="#FFFFFF" placeholder="搜索课程..."> background="#FFFFFF" placeholder="搜索课程...">
</van-search> </van-search>
</a> </a>
1111111111 {$exams}
<!--banner start--> <!--banner start-->
<van-swipe class="home_swapper" indicator-color="white"> <van-swipe class="home_swapper" indicator-color="white">
<volist name="ad_list" id="adlt"> <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