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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
27 deletions
+22
-27
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+22
-27
No files found.
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
bbf743f9
...
@@ -51,11 +51,7 @@
...
@@ -51,11 +51,7 @@
<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>
<case
value=
"2"
><a
href=
"{:U('live/Index/view',array('id'=>$vo['id']))}"
></case>
<case
value=
"6"
><a
href=
"{:U('course/Classes/view',array('id'=>$vo['id']))}"
></case>
</switch>
<div
class=
"home_class_item layout_v"
>
<div
class=
"home_class_item layout_v"
>
<div
class=
"layout_h"
>
<div
class=
"layout_h"
>
<van-image
style=
"margin-right: 0.75rem;"
height=
"72"
width=
"128"
fit=
"cover"
src=
"{:getCover($vo['cover'] ,580 , 320 )}"
>
<van-image
style=
"margin-right: 0.75rem;"
height=
"72"
width=
"128"
fit=
"cover"
src=
"{:getCover($vo['cover'] ,580 , 320 )}"
>
...
@@ -103,8 +99,12 @@
...
@@ -103,8 +99,12 @@
</if>
</if>
</div>
</div>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<div
class=
"layout_h_b"
style=
"margin-top: 0.5rem;"
>
<span
class=
"text_14_600 color_FF3B3B"
><if
condition=
"$vo['price'] eq 0"
>
免费
<else
/>
¥{$vo['price']}
</if></span>
<span
class=
"text_14_600 color_FF3B3B"
>
<van-image
src=
"__THEME__/img/down_load_icon.png"
width=
"13"
height=
"16"
></van-icon>
<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-icon>
</div>
</div>
<div
class=
"home_divider divider"
></div>
<div
class=
"home_divider divider"
></div>
</div>
</div>
...
@@ -115,14 +115,8 @@
...
@@ -115,14 +115,8 @@
</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"
:fixed=
"true"
:route=
"false"
:safe-area-inset-bottom=
"true"
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"
>
...
@@ -152,7 +146,7 @@
...
@@ -152,7 +146,7 @@
<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'"
/>
...
@@ -171,8 +165,9 @@
...
@@ -171,8 +165,9 @@
active
:
0
active
:
0
}
}
},
},
created
:
function
(){
created
:
function
()
{
let
j
=
{:
json_encode
(
$exams
)};
let
j
=
{:
json_encode
(
$exams
)
};
console
.
log
(
j
)
console
.
log
(
j
)
},
},
methods
:
{
methods
:
{
...
@@ -181,9 +176,9 @@
...
@@ -181,9 +176,9 @@
},
},
onPay
:
function
(
id
)
{
onPay
:
function
(
id
)
{
console
.
log
(
"Id = "
+
id
)
console
.
log
(
"Id = "
+
id
)
if
(
MID
<=
0
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
}
})
})
...
@@ -192,24 +187,24 @@
...
@@ -192,24 +187,24 @@
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
"{:U('exams/index/getPayUrl')}"
,
url
:
"{:U('exams/index/getPayUrl')}"
,
data
:{
data
:
{
paper_id
:
id
,
paper_id
:
id
,
},
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
res
){
success
:
function
(
res
)
{
var
res
=
getResponseData
(
res
)
var
res
=
getResponseData
(
res
)
if
(
res
.
status
==
1
){
if
(
res
.
status
==
1
)
{
window
.
location
.
href
=
res
.
data
window
.
location
.
href
=
res
.
data
}
else
{
}
else
{
ui
.
error
(
res
.
message
)
ui
.
error
(
res
.
message
)
}
}
}
}
})
})
},
},
onStart
:
function
(
id
)
{
onStart
:
function
(
id
)
{
if
(
MID
<=
0
)
{
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
}
})
})
...
...
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