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
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
17 deletions
+114
-17
main.css
src/frontend/web/css/main.css
+95
-9
course-lists.vue
src/frontend/web/js/home/components/course-lists.vue
+19
-8
No files found.
src/frontend/web/css/main.css
View file @
2c991cdc
...
@@ -160,14 +160,17 @@ a,a:hover,a:link {
...
@@ -160,14 +160,17 @@ a,a:hover,a:link {
left
:
10px
;
left
:
10px
;
top
:
10px
;
top
:
10px
;
}
}
.v-screen
a
img
{
width
:
100%
;
}
.v-screen
>
span
>
img
{
.v-screen
>
span
>
img
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
border-radius
:
100%
;
border-radius
:
100%
;
}
}
.v-tit
,
.v-tit
,
.v-
price
,
.v-
foot
,
.v-
foo
t
{
.v-
teacher-lis
t
{
padding
:
0
10px
;
padding
:
0
10px
;
}
}
.v-tit
{
.v-tit
{
...
@@ -178,17 +181,21 @@ a,a:hover,a:link {
...
@@ -178,17 +181,21 @@ a,a:hover,a:link {
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.v-teacher-list
{
font-size
:
12px
;
color
:
#666
;
}
.v-tit
a
{
.v-tit
a
{
color
:
#333333
;
color
:
#333333
;
}
}
.v-price
{
.v-price
{
color
:
#ef2f11
;
color
:
#ef2f11
;
padding-bottom
:
10px
;
}
}
.v-foot
{
.v-foot
{
position
:
relative
;
position
:
relative
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#999
;
color
:
#999
;
padding-top
:
10px
;
}
}
.v-detail
{
.v-detail
{
position
:
absolute
;
position
:
absolute
;
...
@@ -299,21 +306,26 @@ a,a:hover,a:link {
...
@@ -299,21 +306,26 @@ a,a:hover,a:link {
border-top
:
none
;
border-top
:
none
;
}
}
.video-teacher
{
.video-teacher
{
padding
:
15px
;
padding
:
10px
;
display
:
inline-block
;
text-align
:
center
;
width
:
60px
;
}
}
.video-teacher
a
{
.video-teacher
a
{
color
:
#333
;
color
:
#333
;
}
}
.video-teacher
img
{
.video-teacher
img
{
float
:
left
;
width
:
40px
;
width
:
50px
;
height
:
40px
;
height
:
50px
;
border-radius
:
100%
;
border-radius
:
100%
;
margin-right
:
10px
;
}
}
.video-teacher
p
{
.video-teacher
p
{
font-size
:
1
6
px
;
font-size
:
1
2
px
;
margin
:
5px
0
0
;
margin
:
5px
0
0
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.video-teacher
span
{
.video-teacher
span
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -412,6 +424,9 @@ a,a:hover,a:link {
...
@@ -412,6 +424,9 @@ a,a:hover,a:link {
.m-t-10
{
.m-t-10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.m-l-20
{
margin-left
:
20px
;
}
.user-h
{
.user-h
{
padding-right
:
10px
;
padding-right
:
10px
;
}
}
...
@@ -452,3 +467,74 @@ a,a:hover,a:link {
...
@@ -452,3 +467,74 @@ a,a:hover,a:link {
margin
:
0
auto
;
margin
:
0
auto
;
color
:
#666
;
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
>
<
template
>
<div
class=
"container v-list"
v-show=
"lists.length > 0"
>
<div
class=
"container v-list"
v-show=
"lists.length > 0"
>
<div
class=
"row"
>
<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-main-box"
>
<div
class=
"v-screen"
>
<div
class=
"v-screen"
>
<a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
<a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
...
@@ -11,12 +11,15 @@
...
@@ -11,12 +11,15 @@
<!--头像-->
<!--头像-->
</div>
</div>
<div
class=
"v-tit"
><a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
{{
item
.
name
}}
</a></div>
<div
class=
"v-tit"
><a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
{{
item
.
name
}}
</a></div>
<div
v-if=
"item.teachers.length > 0"
class=
"v-teacher-list"
>
讲师:
{{
getTeachers
(
index
)
}}
</div>
<div
class=
"v-foot"
>
<div
class=
"v-price"
>
<div
class=
"v-price"
>
<small>
¥
</small>
<small>
¥
</small>
{{
item
.
price
}}
{{
item
.
price
}}
</div>
</div>
<div
class=
"v-foot"
>
<p>
{{
transcateTime
(
item
.
created_at
)
}}
</p>
<div
class=
"v-detail"
>
<div
class=
"v-detail"
>
<span><i
class=
"icon-comment-full"
></i>
{{
item
.
comment_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-fav-full"
></i>
{{
item
.
favorite_count
}}
</span>
...
@@ -42,6 +45,14 @@
...
@@ -42,6 +45,14 @@
}
}
},
},
methods
:
{
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
)
itemClick
(
id
)
{
{
window
.
location
.
href
=
__BASE_URL__
+
'home/video?courseId='
+
id
;
window
.
location
.
href
=
__BASE_URL__
+
'home/video?courseId='
+
id
;
...
...
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