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
4b86687a
Commit
4b86687a
authored
Jun 05, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
667521d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
152 additions
and
152 deletions
+152
-152
apps/home/Tpl/default/Home/exams_w3g.html
+152
-152
No files found.
apps/home/Tpl/default/Home/exams_w3g.html
View file @
4b86687a
<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"
>
<van-tabs
:border=
"false"
v-model=
"tab"
sticky
@
change=
"onTopTab"
line-width=
"72px"
line-height=
"4px"
background=
"white"
<van-tabs
:border=
"false"
v-model=
"tab"
sticky
@
change=
"onTopTab"
line-width=
"72px"
line-height=
"4px"
background=
"white"
color=
"#A3E460"
title-inactive-color=
"#333333"
title-active-color=
"#A3E460"
>
color=
"#A3E460"
title-inactive-color=
"#333333"
title-active-color=
"#A3E460"
>
<van-tab>
<van-tab>
<span
slot=
"title"
v-bind:class=
"tab == 0 ? 'tab_text_selected' : 'tab_text_normal'"
>
<span
slot=
"title"
v-bind:class=
"tab == 0 ? 'tab_text_selected' : 'tab_text_normal'"
>
真题演练
真题演练
</span>
</span>
<van-sticky
:offset-top=
"44"
>
<van-sticky
:offset-top=
"44"
>
<div
class=
"layout_v"
>
<div
class=
"layout_v"
>
<van-dropdown-menu
active-color=
"#333333"
>
<van-dropdown-menu
active-color=
"#333333"
>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<div
class=
"drop_down_grid"
>
<div
class=
"drop_down_grid"
>
<div
@
click=
"onCondition(item)"
v-for=
"(item, index) in condition"
:key=
"index"
:class=
"item.select ? 'drop_down_option_selected' : 'drop_down_option'"
>
<div
@
click=
"onCondition(item)"
v-for=
"(item, index) in condition"
:key=
"index"
:class=
"item.select ? 'drop_down_option_selected' : 'drop_down_option'"
>
<span
class=
"van-ellipsis"
>
{{item.title}}
</span>
<span
class=
"van-ellipsis"
>
{{item.title}}
</span>
</div>
</div>
</div>
</div>
</van-dropdown-item>
</van-dropdown-item>
</van-dropdown-menu>
</van-dropdown-menu>
<div
class=
"drop_down_selected_container"
>
<div
class=
"drop_down_selected_container"
>
<div
v-for=
"(item, index) in selectedCondition"
:key=
"index"
class=
"color_primary text_14_400 drop_down_selected_item"
>
<div
v-for=
"(item, index) in selectedCondition"
:key=
"index"
class=
"color_primary text_14_400 drop_down_selected_item"
>
<span>
{{item.title}}
</span>
<span>
{{item.title}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</van-sticky>
</van-sticky>
<div
class=
"layout_v list_container"
>
<div
class=
"layout_v list_container"
>
<!-- 项目1 -->
<!-- 项目1 -->
<div
v-for=
"(item, index) in zhenti"
:key=
"index"
class=
"class_item layout_h"
>
<div
v-for=
"(item, index) in zhenti"
:key=
"index"
class=
"class_item layout_h"
>
<div
class=
"class_left layout_v weight_full"
>
<div
class=
"class_left layout_v weight_full"
>
<div
class=
"layout_h"
>
<div
class=
"layout_h"
>
<div
v-if=
"item.price > 0"
class=
"mark_orange layout_center"
>
付费
</div>
<div
v-if=
"item.price > 0"
class=
"mark_orange layout_center"
>
付费
</div>
<div
v-if=
"item.price == 0"
class=
"mark_green layout_center"
>
免费
</div>
<div
v-if=
"item.price == 0"
class=
"mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
{{item.title}}
</span>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
{{item.title}}
</span>
</div>
</div>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<span
class=
"text_12_400 color_999999"
>
题数:{{item.count}}
</span>
<span
class=
"text_12_400 color_999999"
>
题数:{{item.count}}
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:{{item.time}}m
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:{{item.time}}m
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
{{item.person}}
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
{{item.person}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"class_right layout_center"
>
<div
class=
"class_right layout_center"
>
<div
@
click=
"onPay(item)"
v-if=
"item.price > 0"
class=
"button_orange layout_center"
>
¥{{item.price}}
</div>
<div
@
click=
"onPay(item)"
v-if=
"item.price > 0"
class=
"button_orange layout_center"
>
¥{{item.price}}
</div>
<div
@
click=
"startDo(item)"
v-if=
"item.price == 0
"
class=
"button_green layout_center"
>
开始做题
</div>
<div
@
click=
"startDo(item)"
v-if=
"item.price == 0
|| item.is_buy"
class=
"button_green layout_center"
>
开始做题
</div>
</div>
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"zhenti.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
<span
style=
"margin-top: 35vh;"
v-if=
"zhenti.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</div>
</div>
</van-tab>
</van-tab>
<van-tab>
<van-tab>
<span
slot=
"title"
v-bind:class=
"tab == 1 ? 'tab_text_selected' : 'tab_text_normal'"
>
<span
slot=
"title"
v-bind:class=
"tab == 1 ? 'tab_text_selected' : 'tab_text_normal'"
>
真题下载
真题下载
</span>
</span>
<van-sticky
:offset-top=
"44"
>
<van-sticky
:offset-top=
"44"
>
<van-dropdown-menu
active-color=
"#333333"
>
<van-dropdown-menu
active-color=
"#333333"
>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<van-dropdown-item
title=
"筛选"
ref=
"item"
>
<div
class=
"drop_down_grid"
>
<div
class=
"drop_down_grid"
>
<div
@
click=
"onCondition(item)"
v-for=
"(item, index) in condition"
:key=
"index"
:class=
"item.select ? 'drop_down_option_selected' : 'drop_down_option'"
>
<div
@
click=
"onCondition(item)"
v-for=
"(item, index) in condition"
:key=
"index"
:class=
"item.select ? 'drop_down_option_selected' : 'drop_down_option'"
>
<span
class=
"van-ellipsis"
>
{{item.title}}
</span>
<span
class=
"van-ellipsis"
>
{{item.title}}
</span>
</div>
</div>
</div>
</div>
</van-dropdown-item>
</van-dropdown-item>
</van-dropdown-menu>
</van-dropdown-menu>
<div
class=
"drop_down_selected_container"
>
<div
class=
"drop_down_selected_container"
>
<div
v-for=
"(item, index) in selectedCondition"
:key=
"index"
class=
"color_primary text_14_400 drop_down_selected_item"
>
<div
v-for=
"(item, index) in selectedCondition"
:key=
"index"
class=
"color_primary text_14_400 drop_down_selected_item"
>
<span>
{{item.title}}
</span>
<span>
{{item.title}}
</span>
</div>
</div>
</div>
</div>
</van-sticky>
</van-sticky>
<div
class=
"layout_v list_container"
>
<div
class=
"layout_v list_container"
>
<!-- 项目1 -->
<!-- 项目1 -->
<div
v-for=
"(item, index) in download"
:key=
"index"
class=
"class_item layout_h"
>
<div
v-for=
"(item, index) in download"
:key=
"index"
class=
"class_item layout_h"
>
<div
class=
"class_left layout_v weight_full"
>
<div
class=
"class_left layout_v weight_full"
>
<div
class=
"layout_h"
>
<div
class=
"layout_h"
>
<div
v-if=
"item.price > 0"
class=
"mark_orange layout_center"
>
付费
</div>
<div
v-if=
"item.price > 0"
class=
"mark_orange layout_center"
>
付费
</div>
<div
v-if=
"item.price == 0"
class=
"mark_green layout_center"
>
免费
</div>
<div
v-if=
"item.price == 0"
class=
"mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
{{item.title}}
</span>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-left: 0.625rem;"
>
{{item.title}}
</span>
</div>
</div>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<div
class=
"layout_h"
style=
"margin-top: 1.25rem;"
>
<span
class=
"text_12_400 color_999999"
>
题数:{{item.count}}
</span>
<span
class=
"text_12_400 color_999999"
>
题数:{{item.count}}
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:{{item.time}}m
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
推荐用时:{{item.time}}m
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
{{item.person}}
</span>
<span
class=
"class_attr text_12_400 color_999999"
>
{{item.person}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"class_right layout_center"
>
<div
class=
"class_right layout_center"
>
<div
@
click=
"onPay(item)"
v-if=
"item.price > 0"
class=
"button_orange layout_center"
>
¥{{item.price}}
</div>
<div
@
click=
"onPay(item)"
v-if=
"item.price > 0"
class=
"button_orange layout_center"
>
¥{{item.price}}
</div>
<div
v-if=
"item.price == 0"
class=
"button_green layout_center"
>
下载试题
</div>
<div
v-if=
"item.price == 0"
class=
"button_green layout_center"
>
下载试题
</div>
</div>
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"download.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
<span
style=
"margin-top: 35vh;"
v-if=
"download.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</div>
</div>
</van-tab>
</van-tab>
<van-tab>
<van-tab>
<span
slot=
"title"
v-bind:class=
"tab == 2 ? 'tab_text_selected' : 'tab_text_normal'"
>
<span
slot=
"title"
v-bind:class=
"tab == 2 ? 'tab_text_selected' : 'tab_text_normal'"
>
我的题库
我的题库
</span>
</span>
<div
class=
"layout_v zhenti_my_collect_list_container"
>
<div
class=
"layout_v zhenti_my_collect_list_container"
>
<div
class=
"layout_h zhenti_tab"
>
<div
class=
"layout_h zhenti_tab"
>
<div
@
click=
"onMyTab(0)"
class=
"layout_center weight_full"
:class=
"myTab == 0 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
已做
</div>
<div
@
click=
"onMyTab(0)"
class=
"layout_center weight_full"
:class=
"myTab == 0 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
已做
</div>
<div
@
click=
"onMyTab(1)"
class=
"layout_center weight_full"
:class=
"myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
收藏
</div>
<div
@
click=
"onMyTab(1)"
class=
"layout_center weight_full"
:class=
"myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
收藏
</div>
</div>
</div>
<template
v-if=
"myTab == 1"
>
<template
v-if=
"myTab == 1"
>
<div
class=
"zhenti_my_collect_cell layout_v"
>
<div
class=
"zhenti_my_collect_cell layout_v"
>
...
@@ -129,70 +129,70 @@
...
@@ -129,70 +129,70 @@
</div>
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"myYiZuo.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
<span
style=
"margin-top: 35vh;"
v-if=
"myYiZuo.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</template>
</template>
</div>
</div>
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
</div>
</div>
<van-tabbar
v-model=
"active"
@
change=
"onChange"
:fixed=
"true"
:route=
"false"
:safe-area-inset-bottom=
"true"
<van-tabbar
v-model=
"active"
@
change=
"onChange"
:fixed=
"true"
:route=
"false"
:safe-area-inset-bottom=
"true"
active-color=
"#65C000"
inactive-color=
"#363636"
>
active-color=
"#65C000"
inactive-color=
"#363636"
>
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
名师课堂
</span>
<span
class=
"text_10_400"
>
名师课堂
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<a
href=
"{:U('classroom/Index/index')}"
>
<a
href=
"{:U('classroom/Index/index')}"
>
<img
:src=
"props.active ? '__THEME__/img/minshi.png' : '__THEME__/img/minshi_s.png'"
/>
<img
:src=
"props.active ? '__THEME__/img/minshi.png' : '__THEME__/img/minshi_s.png'"
/>
</a>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
真题题库
</span>
<span
class=
"text_10_400"
>
真题题库
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<a
href=
"{:U('home/Home/exams')}"
>
<a
href=
"{:U('home/Home/exams')}"
>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
</a>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
考试咨询
</span>
<span
class=
"text_10_400"
>
考试咨询
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<a
href=
"{:U('classroom/Index/find')}"
>
<a
href=
"{:U('classroom/Index/find')}"
>
<img
:src=
"props.active ? '__THEME__/img/zixun.png' : '__THEME__/img/zixun_s.png'"
/>
<img
:src=
"props.active ? '__THEME__/img/zixun.png' : '__THEME__/img/zixun_s.png'"
/>
</a>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
<van-tabbar-item>
<van-tabbar-item>
<span
class=
"text_10_400"
>
会员中心
</span>
<span
class=
"text_10_400"
>
会员中心
</span>
<template
#
icon=
"props"
>
<template
#
icon=
"props"
>
<if
condition=
"$_SESSION['mid']"
>
<if
condition=
"$_SESSION['mid']"
>
<a
href=
"{:U('home/User/index')}"
>
<a
href=
"{:U('home/User/index')}"
>
<else
/>
<else
/>
<a
href=
"{:U('basic/Passport/login')}"
>
<a
href=
"{:U('basic/Passport/login')}"
>
</if>
</if>
<img
:src=
"props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'"
/>
<img
:src=
"props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'"
/>
</a>
</a>
</template>
</template>
</van-tabbar-item>
</van-tabbar-item>
</van-tabbar>
</van-tabbar>
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
data
:
function
()
{
data
:
function
()
{
return
{
return
{
active
:
1
,
active
:
1
,
tab
:
0
,
tab
:
0
,
myTab
:
0
,
myTab
:
0
,
condition
:
[],
condition
:
[],
zhenti
:
[],
zhenti
:
[],
download
:
[],
download
:
[],
myYiZuo
:
[],
myYiZuo
:
[],
myCollect
:
[]
myCollect
:
[]
}
}
},
},
created
:
function
()
{
created
:
function
()
{
},
},
mounted
:
function
(){
mounted
:
function
(){
$
(
"#preloader"
).
hide
();
$
(
"#preloader"
).
hide
();
...
@@ -217,18 +217,18 @@
...
@@ -217,18 +217,18 @@
return
f
.
length
>
0
?
f
[
0
].
id
:
''
return
f
.
length
>
0
?
f
[
0
].
id
:
''
}
}
}
}
},
},
methods
:
{
methods
:
{
onChange
:
function
(
tab
)
{
onChange
:
function
(
tab
)
{
},
},
startDo
:
function
(
item
)
{
startDo
:
function
(
item
)
{
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1"
window
.
location
.
href
=
url
window
.
location
.
href
=
url
},
},
onPay
:
function
(
item
)
{
onPay
:
function
(
item
)
{
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
...
@@ -247,7 +247,7 @@
...
@@ -247,7 +247,7 @@
}
}
})
})
},
},
onTopTab
:
function
(
tab
)
{
onTopTab
:
function
(
tab
)
{
if
(
this
.
tab
==
0
)
{
if
(
this
.
tab
==
0
)
{
this
.
loadZhenti
()
this
.
loadZhenti
()
...
@@ -255,15 +255,15 @@
...
@@ -255,15 +255,15 @@
this
.
loadDownload
()
this
.
loadDownload
()
}
else
{
}
else
{
this
.
onMyTab
(
this
.
myTab
)
this
.
onMyTab
(
this
.
myTab
)
}
}
},
},
onMyTab
:
function
(
tab
)
{
onMyTab
:
function
(
tab
)
{
this
.
myTab
=
tab
this
.
myTab
=
tab
if
(
tab
==
0
)
{
if
(
tab
==
0
)
{
this
.
loadMy
()
this
.
loadMy
()
}
else
{
}
else
{
}
}
},
},
onCondition
:
function
(
condition
)
{
onCondition
:
function
(
condition
)
{
this
.
condition
.
forEach
(
r
=>
{
r
.
select
=
false
})
this
.
condition
.
forEach
(
r
=>
{
r
.
select
=
false
})
...
@@ -366,8 +366,8 @@
...
@@ -366,8 +366,8 @@
},
},
//加载我收藏的题
//加载我收藏的题
loadMyTi
:
function
()
{
loadMyTi
:
function
()
{
}
}
}
}
})
})
</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