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);
......
<include file="__THEME__/public_header_w3g" /> <include file="__THEME__/public_header_w3g" />
<div id="app"> <div id="app">
<div class="layout_v tab_container"> <div class="layout_v tab_container">
<!--search--> <!--search-->
...@@ -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">
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</van-swipe-item> </van-swipe-item>
</volist> </volist>
</van-swipe> </van-swipe>
<volist name="config_index.item" id="item_name"> <volist name="config_index.item" id="item_name">
<eq name="item_name" value="category"> <eq name="item_name" value="category">
<!-- 分类 --> <!-- 分类 -->
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</volist> </volist>
</div> </div>
</eq> </eq>
<eq name="item_name" value="bestCourse_new"> <eq name="item_name" value="bestCourse_new">
<!-- 精选课程 --> <!-- 精选课程 -->
<div class="home_list_part" style="margin-top: 2.125rem;"> <div class="home_list_part" style="margin-top: 2.125rem;">
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layout_v"> <div class="layout_v">
<volist name="bestVideo" id="vo" offset="0" length='4'> <volist name="bestVideo" id="vo" offset="0" length='4'>
<switch name="vo.type"> <switch name="vo.type">
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</div> </div>
</a> </a>
</volist> </volist>
<!-- 精选真题 --> <!-- 精选真题 -->
<div class="home_list_part" style="margin-top: 1rem;"> <div class="home_list_part" style="margin-top: 1rem;">
<div class="home_list_header layout_h"> <div class="home_list_header layout_h">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layout_v home_question_item"> <div class="layout_v home_question_item">
<div class="layout_h"> <div class="layout_h">
<div class="home_item_mark_green layout_center">免费</div> <div class="home_item_mark_green layout_center">免费</div>
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</div> </div>
<div class="home_divider divider"></div> <div class="home_divider divider"></div>
</div> </div>
<div class="layout_v home_question_item"> <div class="layout_v home_question_item">
<div class="layout_h"> <div class="layout_h">
<div class="home_item_mark_orange layout_center">付费</div> <div class="home_item_mark_orange layout_center">付费</div>
...@@ -114,18 +114,18 @@ ...@@ -114,18 +114,18 @@
</div> </div>
<div class="home_divider divider"></div> <div class="home_divider divider"></div>
</div> </div>
</div> </div>
</eq> </eq>
</volist> </volist>
</div> </div>
<div> <div>
<van-tabbar <van-tabbar
v-model="active" v-model="active"
@change="onChange" @change="onChange"
:fixed="true" :fixed="true"
:route="false" :route="false"
:safe-area-inset-bottom="true" :safe-area-inset-bottom="true"
active-color="#65C000" active-color="#65C000"
inactive-color="#363636"> inactive-color="#363636">
<van-tabbar-item> <van-tabbar-item>
...@@ -165,21 +165,21 @@ ...@@ -165,21 +165,21 @@
</template> </template>
</van-tabbar-item> </van-tabbar-item>
</van-tabbar> </van-tabbar>
</div> </div>
</div> </div>
<!-- <include file="__THEME__/public_footer_w3g" /> --> <!-- <include file="__THEME__/public_footer_w3g" /> -->
<script type="text/javascript"> <script type="text/javascript">
new Vue({ new Vue({
el: '#app', el: '#app',
data: function() { data: function() {
return { return {
active: 0 active: 0
} }
}, },
methods: { methods: {
onChange: function(tab) { onChange: function(tab) {
} }
} }
}) })
</script> </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