Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
2c991cdc
Commit
2c991cdc
authored
Oct 17, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面展示讲师
parent
875c8343
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
20 deletions
+117
-20
main.css
src/frontend/web/css/main.css
+95
-9
course-lists.vue
src/frontend/web/js/home/components/course-lists.vue
+19
-8
index-home.html
ui/html/index-home.html
+3
-3
No files found.
src/frontend/web/css/main.css
View file @
2c991cdc
...
...
@@ -160,14 +160,17 @@ a,a:hover,a:link {
left
:
10px
;
top
:
10px
;
}
.v-screen
a
img
{
width
:
100%
;
}
.v-screen
>
span
>
img
{
width
:
30px
;
height
:
30px
;
border-radius
:
100%
;
}
.v-tit
,
.v-
price
,
.v-
foo
t
{
.v-
foot
,
.v-
teacher-lis
t
{
padding
:
0
10px
;
}
.v-tit
{
...
...
@@ -178,17 +181,21 @@ a,a:hover,a:link {
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.v-teacher-list
{
font-size
:
12px
;
color
:
#666
;
}
.v-tit
a
{
color
:
#333333
;
}
.v-price
{
color
:
#ef2f11
;
padding-bottom
:
10px
;
}
.v-foot
{
position
:
relative
;
font-size
:
12px
;
color
:
#999
;
padding-top
:
10px
;
}
.v-detail
{
position
:
absolute
;
...
...
@@ -299,21 +306,26 @@ a,a:hover,a:link {
border-top
:
none
;
}
.video-teacher
{
padding
:
15px
;
padding
:
10px
;
display
:
inline-block
;
text-align
:
center
;
width
:
60px
;
}
.video-teacher
a
{
color
:
#333
;
}
.video-teacher
img
{
float
:
left
;
width
:
50px
;
height
:
50px
;
width
:
40px
;
height
:
40px
;
border-radius
:
100%
;
margin-right
:
10px
;
}
.video-teacher
p
{
font-size
:
1
6
px
;
font-size
:
1
2
px
;
margin
:
5px
0
0
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.video-teacher
span
{
font-size
:
12px
;
...
...
@@ -412,6 +424,9 @@ a,a:hover,a:link {
.m-t-10
{
margin-top
:
10px
;
}
.m-l-20
{
margin-left
:
20px
;
}
.user-h
{
padding-right
:
10px
;
}
...
...
@@ -451,4 +466,75 @@ a,a:hover,a:link {
max-width
:
500px
;
margin
:
0
auto
;
color
:
#666
;
}
/*模态框重置*/
.modal-content
{
box-shadow
:
none
;
border
:
none
;
border-radius
:
3px
;
}
.modal-title
{
font-size
:
14px
;
}
.pay-style
{
text-align
:
center
;
}
.pay-style
h3
{
font-size
:
24px
;
padding-bottom
:
30px
;
}
.pay-style
button
:last-child
{
margin-top
:
10px
;
}
.btn-wecat
{
display
:
block
;
width
:
100%
;
background-color
:
#009933
;
color
:
#fff
;
}
.btn-wecat
:hover
,
.btn-alipay
:hover
{
color
:
#fff
;
}
.btn-alipay
{
display
:
block
;
width
:
100%
;
background-color
:
#00a5e8
;
color
:
#fff
;
}
.wecat-qrcode
{
position
:
absolute
;
display
:
inline-block
;
width
:
100%
;
height
:
245px
;
background-color
:
#fff
;
top
:
0
;
left
:
0
;
border-radius
:
3px
;
z-index
:
1000
;
}
.top-back-a
{
height
:
44px
;
line-height
:
44px
;
padding
:
0
20px
;
color
:
#333
;
font-size
:
12px
;
}
.top-back-a
i
{
font-size
:
14px
;
padding-right
:
10px
;
}
.qrcode-img
{
text-align
:
center
;
}
.qrcode-img
>
img
{
height
:
150px
;
margin-top
:
5px
;
}
.qrcode-img
>
p
{
margin-top
:
5px
;
color
:
#999
;
}
\ No newline at end of file
src/frontend/web/js/home/components/course-lists.vue
View file @
2c991cdc
<
template
>
<div
class=
"container v-list"
v-show=
"lists.length > 0"
>
<div
class=
"row"
>
<div
v-for=
"
item
in lists"
class=
"col-md-3"
>
<div
v-for=
"
(index,item)
in lists"
class=
"col-md-3"
>
<div
class=
"v-main-box"
>
<div
class=
"v-screen"
>
<a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
...
...
@@ -11,16 +11,19 @@
<!--头像-->
</div>
<div
class=
"v-tit"
><a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
{{
item
.
name
}}
</a></div>
<div
class=
"v-price"
>
<small>
¥
</small
>
{{
item
.
price
}}
<div
v-if=
"item.teachers.length > 0"
class=
"v-teacher-list"
>
讲师:
{{
getTeachers
(
index
)
}}
</div>
<div
class=
"v-foot"
>
<p>
{{
transcateTime
(
item
.
created_at
)
}}
</p>
<div
class=
"v-price"
>
<small>
¥
</small>
{{
item
.
price
}}
</div>
<div
class=
"v-detail"
>
<span><i
class=
"icon-comment-full"
></i>
{{
item
.
comment_count
}}
</span>
<span><i
class=
"icon-fav-full"
></i>
{{
item
.
favorite_count
}}
</span>
<span><i
class=
"icon-zan-full"
></i>
{{
item
.
support_count
}}
</span>
<span><i
class=
"icon-comment-full"
></i>
{{
item
.
comment_count
}}
</span>
<span><i
class=
"icon-fav-full"
></i>
{{
item
.
favorite_count
}}
</span>
<span><i
class=
"icon-zan-full"
></i>
{{
item
.
support_count
}}
</span>
</div>
</div>
</div>
...
...
@@ -42,6 +45,14 @@
}
},
methods
:
{
getTeachers
(
index
){
var
teachers
=
this
.
lists
[
index
].
teachers
;
var
teacherArray
=
[];
for
(
var
i
=
0
;
i
<
teachers
.
length
;
i
++
)
{
teacherArray
.
push
(
teachers
[
i
].
name
);
}
return
teacherArray
.
join
(
','
);
},
itemClick
(
id
)
{
window
.
location
.
href
=
__BASE_URL__
+
'home/video?courseId='
+
id
;
...
...
ui/html/index-home.html
View file @
2c991cdc
...
...
@@ -85,9 +85,9 @@
<!--<span><img src="img/avatar2.jpg"></span>-->
</div>
<div
class=
"v-tit"
><a
href=
"#"
>
英国为什么比中国先为什么比中国先进入工业时代?
</a></div>
<div
class=
"v-teacher-list"
>
讲师:高帆,罗永浩,华妃
</div>
<div
class=
"v-teacher-list"
>
讲师:高帆,罗永浩,华妃
</div>
<div
class=
"v-foot"
>
<p
class=
"v-price"
><small>
¥
</small>
81.00
</p>
<div
class=
"v-detail"
>
...
...
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