Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
9736a923
Commit
9736a923
authored
May 19, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`试卷`
parent
66d773e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
31 deletions
+37
-31
apps/classroom/Lib/Action/IndexAction.class.php
+6
-0
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+31
-31
No files found.
apps/classroom/Lib/Action/IndexAction.class.php
View file @
9736a923
...
@@ -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
);
...
...
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
9736a923
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment