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
bbf743f9
Commit
bbf743f9
authored
May 20, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
c8528a1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
217 additions
and
222 deletions
+217
-222
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+217
-222
No files found.
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
bbf743f9
<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-->
<a
href=
"{:U('classroom/Index/search')}"
>
<a
href=
"{:U('classroom/Index/search')}"
>
<van-search
style=
"padding-bottom: 0 !important;"
left-icon=
"__THEME__/img/serch@3x.png"
readonly
shape=
"round"
<van-search
style=
"padding-bottom: 0 !important;"
left-icon=
"__THEME__/img/serch@3x.png"
readonly
shape=
"round"
background=
"#FFFFFF"
placeholder=
"搜索课程..."
>
background=
"#FFFFFF"
placeholder=
"搜索课程..."
>
</van-search>
</van-search>
</a>
</a>
<!--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"
>
<van-swipe-item>
<van-swipe-item>
<a
class=
"home_swapper_image"
href=
"{$adlt['bannerurl']}"
title=
"{$adlt['banner_title']}"
>
<a
class=
"home_swapper_image"
href=
"{$adlt['bannerurl']}"
title=
"{$adlt['banner_title']}"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
src=
"{:getCover($adlt['banner'],720,300)}"
/>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
src=
"{:getCover($adlt['banner'],720,300)}"
/>
</a>
</a>
</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"
>
<!-- 分类 -->
<!-- 分类 -->
<div
class=
"layout_h scroll_h"
>
<div
class=
"layout_h scroll_h"
>
<volist
name=
"re_cate"
id=
"vo"
offset=
"0"
length=
'8'
>
<volist
name=
"re_cate"
id=
"vo"
offset=
"0"
length=
'8'
>
<div
class=
"layout_center"
>
<div
class=
"layout_center"
>
<a
href=
"{:U('course/Video/index',array('cateId'=>$vo['full_cate']))}"
>
<a
href=
"{:U('course/Video/index',array('cateId'=>$vo['full_cate']))}"
>
<div
class=
"layout_v"
style=
"width: 5.375rem;"
>
<div
class=
"layout_v"
style=
"width: 5.375rem;"
>
<van-image
class=
"self_center"
height=
"45"
width=
"45"
src=
"{:getCover($vo['middle_ids'],45,45)}"
>
<van-image
class=
"self_center"
height=
"45"
width=
"45"
src=
"{:getCover($vo['middle_ids'],45,45)}"
>
</van-image>
</van-image>
<span
class=
"text_12_400 color_333333 self_center"
style=
"margin-top: 0.125rem;"
>
{$vo['title']}
</span>
<span
class=
"text_12_400 color_333333 self_center"
style=
"margin-top: 0.125rem;"
>
{$vo['title']}
</span>
</div>
</div>
</a>
</a>
</div>
</div>
</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;"
>
<div
class=
"home_list_header layout_h"
>
<div
class=
"home_list_header layout_h"
>
<div
class=
"home_list_header_v_line"
></div>
<div
class=
"home_list_header_v_line"
></div>
<span
class=
"text_16_600 color_333333 self_center"
style=
"margin-left: 0.5rem;"
>
精选课程
</span>
<span
class=
"text_16_600 color_333333 self_center"
style=
"margin-left: 0.5rem;"
>
精选课程
</span>
<div
class=
"layout_h_r weight_full self_center"
>
<div
class=
"layout_h_r weight_full self_center"
>
<van-icon
name=
"__THEME__/img/tiny_right_arrow.png"
class=
"self_center"
></van-icon>
<van-icon
name=
"__THEME__/img/tiny_right_arrow.png"
class=
"self_center"
></van-icon>
<a
href=
"{:U('course/Video/index', array('best'=>1))}"
><span
class=
"text_12_400 color_999999 self_center"
>
查看全部
</span></a>
<a
href=
"{:U('course/Video/index', array('best'=>1))}"
><span
class=
"text_12_400 color_999999 self_center"
>
查看全部
</span></a>
</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"
>
<a
href=
"{:U('course/Video/view',array('id'=>$vo['id']))}"
>
<case
value=
"1"
><a
href=
"{:U('course/Video/view',array('id'=>$vo['id']))}"
></case>
<div
class=
"home_class_item layout_v"
>
<case
value=
"2"
><a
href=
"{:U('live/Index/view',array('id'=>$vo['id']))}"
></case>
<div
class=
"layout_h"
>
<case
value=
"6"
><a
href=
"{:U('course/Classes/view',array('id'=>$vo['id']))}"
></case>
<van-image
style=
"margin-right: 0.75rem;"
height=
"72"
width=
"128"
fit=
"cover"
src=
"{:getCover($vo['cover'] ,580 , 320 )}"
>
</switch>
</van-image>
<div
class=
"home_class_item layout_v"
>
<div
class=
"weight_full layout_v"
>
<div
class=
"layout_h"
>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{$vo.video_title}
</span>
<van-image
style=
"margin-right: 0.75rem;"
height=
"72"
width=
"128"
fit=
"cover"
src=
"{:getCover($vo['cover'] ,580 , 320 )}"
>
<span
class=
"text_14_600 color_FF3B3B"
style=
"margin-top: 0.5rem;"
>
</van-image>
<if
condition=
"$vo['t_price'] eq 0"
>
免费
<div
class=
"weight_full layout_v"
>
<else
/>
¥{$vo['t_price']}
</if>
<span
class=
"text_14_600 color_333333 van-multi-ellipsis--l2"
>
{$vo.video_title}
</span>
</span>
<span
class=
"text_14_600 color_FF3B3B"
style=
"margin-top: 0.5rem;"
>
<span
class=
"text_12_400 color_999999"
>
<if
condition=
"$vo['t_price'] eq 0"
>
免费
<php>
if($marketConf['order_switch'] == 1) {
</php>
{$vo['video_order_count_mark']}
<php>
}else{
</php>
{$vo['video_order_count']}
<php>
}
</php>
人正在学习
<else
/>
¥{$vo['t_price']}
</if>
</span>
</span>
</div>
<span
class=
"text_12_400 color_999999"
>
</div>
<php>
if($marketConf['order_switch'] == 1) {
</php>
{$vo['video_order_count_mark']}
<php>
}else{
</php>
{$vo['video_order_count']}
<php>
}
</php>
人正在学习
<div
class=
"home_divider divider"
></div>
</span>
</div>
</div>
</a>
</div>
</volist>
<div
class=
"home_divider divider"
></div>
</div>
<!-- 精选真题 -->
</a>
<div
class=
"home_list_part"
style=
"margin-top: 1rem;"
>
</volist>
<div
class=
"home_list_header layout_h"
>
<div
class=
"home_list_header_v_line"
></div>
<!-- 精选真题 -->
<span
class=
"text_16_600 color_333333 self_center"
style=
"margin-left: 0.5rem;"
>
精选真题
</span>
<div
class=
"home_list_part"
style=
"margin-top: 1rem;"
>
<div
class=
"layout_h_r weight_full self_center"
>
<div
class=
"home_list_header layout_h"
>
<van-icon
name=
"__THEME__/img/tiny_right_arrow.png"
class=
"self_center"
></van-icon>
<div
class=
"home_list_header_v_line"
></div>
<span
class=
"text_12_400 color_999999 self_center"
>
查看全部
</span>
<span
class=
"text_16_600 color_333333 self_center"
style=
"margin-left: 0.5rem;"
>
精选真题
</span>
</div>
<div
class=
"layout_h_r weight_full self_center"
>
</div>
<van-icon
name=
"__THEME__/img/tiny_right_arrow.png"
class=
"self_center"
></van-icon>
</div>
<span
class=
"text_12_400 color_999999 self_center"
>
查看全部
</span>
<volist
name=
"exams.data"
id=
"vo"
offset=
"0"
length=
'4'
>
</div>
<div
class=
"layout_v home_question_item"
>
</div>
<div
class=
"layout_h"
>
</div>
<if
condition=
"$vo['price'] eq 0"
>
<volist
name=
"exams.data"
id=
"vo"
offset=
"0"
length=
'4'
>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<div
class=
"layout_v home_question_item"
>
<else
/>
<div
class=
"layout_h"
>
<div
class=
"home_item_mark_orange layout_center"
>
付费
</div>
<if
condition=
"$vo['price'] eq 0"
>
</if>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{$vo['exams_paper_title']}
</span>
<else
/>
<if
condition=
"$vo['price'] eq 0"
>
<div
class=
"home_item_mark_orange layout_center"
>
付费
</div>
<div
@
click=
"onStart({$vo['exams_paper_id']})"
class=
"home_button_green layout_center"
>
开始做题
</div>
</if>
<else
/>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{$vo['exams_paper_title']}
</span>
<div
@
click=
"onPay({$vo['exams_paper_id']})"
class=
"home_button_orange layout_center"
>
¥{$vo['price']}
</div>
<if
condition=
"$vo['price'] eq 0"
>
</if>
<div
@
click=
"onStart({$vo['exams_paper_id']})"
class=
"home_button_green layout_center"
>
开始做题
</div>
</div>
<else
/>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<div
@
click=
"onPay({$vo['exams_paper_id']})"
class=
"home_button_orange layout_center"
>
¥{$vo['price']}
</div>
<span
class=
"text_14_600 color_FF3B3B"
>
</if>
<if
condition=
"$vo['price'] eq 0"
>
免费
</div>
<else
/>
¥{$vo['price']}
</if>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
</span>
<span
class=
"text_14_600 color_FF3B3B"
><if
condition=
"$vo['price'] eq 0"
>
免费
<else
/>
¥{$vo['price']}
</if></span>
<van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
>
<van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
></van-icon>
</van-icon>
</div>
</div>
<div
class=
"home_divider divider"
></div>
<div
class=
"home_divider divider"
></div>
</div>
</div>
</volist>
</volist>
</div>
</div>
</eq>
</eq>
</volist>
</volist>
</div>
</div>
<div>
<div>
<van-tabbar
<van-tabbar
v-model=
"active"
@
change=
"onChange"
:fixed=
"true"
:route=
"false"
:safe-area-inset-bottom=
"true"
v-model=
"active"
active-color=
"#65C000"
inactive-color=
"#363636"
>
@
change=
"onChange"
<van-tabbar-item>
:fixed=
"true"
<span
class=
"text_10_400"
>
名师课堂
</span>
:route=
"false"
<template
#
icon=
"props"
>
:safe-area-inset-bottom=
"true"
<a
href=
"{:U('classroom/Index/index')}"
>
active-color=
"#65C000"
<img
:src=
"props.active ? '__THEME__/img/minshi.png' : '__THEME__/img/minshi_s.png'"
/>
inactive-color=
"#363636"
>
</a>
<van-tabbar-item>
</template>
<span
class=
"text_10_400"
>
名师课堂
</span>
</van-tabbar-item>
<template
#
icon=
"props"
>
<van-tabbar-item>
<a
href=
"{:U('classroom/Index/index')}"
>
<span
class=
"text_10_400"
>
真题题库
</span>
<img
:src=
"props.active ? '__THEME__/img/minshi.png' : '__THEME__/img/minshi_s.png'"
/>
<template
#
icon=
"props"
>
</a>
<a
href=
"{:U('home/Home/exams')}"
>
</template>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
</van-tabbar-item>
</a>
<van-tabbar-item>
</template>
<span
class=
"text_10_400"
>
真题题库
</span>
</van-tabbar-item>
<template
#
icon=
"props"
>
<van-tabbar-item>
<a
href=
"{:U('home/Home/exams')}"
>
<span
class=
"text_10_400"
>
考试咨询
</span>
<img
:src=
"props.active ? '__THEME__/img/zhenti.png' : '__THEME__/img/zhenti_s.png'"
/>
<template
#
icon=
"props"
>
</a>
<a
href=
"{:U('classroom/Index/find')}"
>
</template>
<img
:src=
"props.active ? '__THEME__/img/zixun.png' : '__THEME__/img/zixun_s.png'"
/>
</van-tabbar-item>
</a>
<van-tabbar-item>
</template>
<span
class=
"text_10_400"
>
考试咨询
</span>
</van-tabbar-item>
<template
#
icon=
"props"
>
<van-tabbar-item>
<a
href=
"{:U('classroom/Index/find')}"
>
<span
class=
"text_10_400"
>
会员中心
</span>
<img
:src=
"props.active ? '__THEME__/img/zixun.png' : '__THEME__/img/zixun_s.png'"
/>
<template
#
icon=
"props"
>
</a>
<if
condition=
"$_SESSION['mid']"
>
</template>
<a
href=
"{:U('home/User/index')}"
>
</van-tabbar-item>
<else
/>
<van-tabbar-item>
<a
href=
"{:U('basic/Passport/login')}"
>
<span
class=
"text_10_400"
>
会员中心
</span>
</if>
<template
#
icon=
"props"
>
<img
:src=
"props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'"
/>
<if
condition=
"$_SESSION['mid']"
>
</a>
<a
href=
"{:U('home/User/index')}"
>
</template>
<else/>
</van-tabbar-item>
<a
href=
"{:U('basic/Passport/login')}"
>
</van-tabbar>
</if>
</div>
<img
:src=
"props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'"
/>
</div>
</a>
<!-- <include file="__THEME__/public_footer_w3g" /> -->
</template>
<script
type=
"text/javascript"
>
</van-tabbar-item>
new
Vue
({
</van-tabbar>
el
:
'#app'
,
</div>
data
:
function
()
{
</div>
return
{
<!-- <include file="__THEME__/public_footer_w3g" /> -->
active
:
0
<script
type=
"text/javascript"
>
}
new
Vue
({
},
el
:
'#app'
,
created
:
function
()
{
data
:
function
()
{
let
j
=
{:
json_encode
(
$exams
)
return
{
};
active
:
0
console
.
log
(
j
)
}
},
},
methods
:
{
created
:
function
(){
onChange
:
function
(
tab
)
{
let
j
=
{:
json_encode
(
$exams
)};
console
.
log
(
j
)
},
},
onPay
:
function
(
id
)
{
methods
:
{
console
.
log
(
"Id = "
+
id
)
onChange
:
function
(
tab
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
},
yes
:
function
()
{
onPay
:
function
(
id
)
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
console
.
log
(
"Id = "
+
id
)
}
if
(
MID
<=
0
)
{
})
ui
.
confirm
(
'请先登录'
,
{
return
yes
:
function
()
{
}
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
$
.
ajax
({
}
type
:
"POST"
,
})
url
:
"{:U('exams/index/getPayUrl')}"
,
return
data
:
{
}
paper_id
:
id
,
$
.
ajax
({
},
type
:
"POST"
,
dataType
:
"json"
,
url
:
"{:U('exams/index/getPayUrl')}"
,
success
:
function
(
res
)
{
data
:{
var
res
=
getResponseData
(
res
)
paper_id
:
id
,
if
(
res
.
status
==
1
)
{
},
window
.
location
.
href
=
res
.
data
dataType
:
"json"
,
}
else
{
success
:
function
(
res
){
ui
.
error
(
res
.
message
)
var
res
=
getResponseData
(
res
)
}
if
(
res
.
status
==
1
){
}
window
.
location
.
href
=
res
.
data
})
}
else
{
},
ui
.
error
(
res
.
message
)
onStart
:
function
(
id
)
{
}
if
(
MID
<=
0
)
{
}
ui
.
confirm
(
'请先登录'
,
{
})
yes
:
function
()
{
},
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
onStart
:
function
(
id
)
{
}
if
(
MID
<=
0
)
{
})
ui
.
confirm
(
'请先登录'
,
{
return
yes
:
function
()
{
}
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
id
+
"&joinType=1"
}
window
.
location
.
href
=
url
})
}
return
}
}
})
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
id
+
"&joinType=1"
window
.
location
.
href
=
url
}
}
})
</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