Commit 2c991cdc authored by xiabin's avatar xiabin

修改页面展示讲师

parent 875c8343
......@@ -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-foot {
.v-foot,
.v-teacher-list {
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: 16px;
font-size: 12px;
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
<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;
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment