Commit 747f1b96 authored by 汪波's avatar 汪波

修改样式

parent 72260645
...@@ -34,5 +34,12 @@ $this->registerJs($js); ...@@ -34,5 +34,12 @@ $this->registerJs($js);
<video-intro :courseware-info="coursewareInfo"></video-intro> <video-intro :courseware-info="coursewareInfo"></video-intro>
</div> </div>
<div class="xs-show-bg"></div>
<script type='text/javascript'>
$(function () {
var wVideo = $('.video-detail-info').width();
$('#my-video-play').css('width',wVideo);
})
</script>
<div class="copyright">© 2016 c.pp.cc 皖ICP备13046642号</div> <div class="copyright">© 2016 c.pp.cc 皖ICP备13046642号</div>
...@@ -530,12 +530,9 @@ a,a:hover,a:link { ...@@ -530,12 +530,9 @@ a,a:hover,a:link {
color: #999; color: #999;
} }
.video-sm-info { .video-sm-info {
position: absolute;
height: 80px; height: 80px;
line-height: 80px; line-height: 80px;
right: 15px; padding-right: 30px;
top: 0;
} }
.video-sm-info a { .video-sm-info a {
display: inline-block; display: inline-block;
...@@ -745,4 +742,51 @@ a,a:hover,a:link { ...@@ -745,4 +742,51 @@ a,a:hover,a:link {
text-align: center; text-align: center;
line-height: 150px; line-height: 150px;
color: #666; color: #666;
}
.avatar {
padding-right: 30px;
height: 60px;
}
.avatar a {
display: block;
margin-top: 15px;
}
.avatar a img {
height: 30px;
width: 30px;
border-radius: 100%;
}
.mb-right {
display: inline-block;
margin-bottom: 0
}
.xs-show-bg {
display: none;
}
@media (max-width: 767px) {
.mb-left{
position: fixed!important;
right: 10px!important;
bottom: 7px!important;
z-index: 11;
}
.mb-right {
position: fixed!important;
left: 10px!important;
bottom: -14px!important;
z-index: 11;
}
.xs-show-bg {
display: block;
height: 50px;
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background-color: #fff;
border-top: 1px solid #f3f3f3;
z-index: 10
}
} }
\ No newline at end of file
...@@ -22,20 +22,23 @@ ...@@ -22,20 +22,23 @@
:src="getFullPic(item.avatar)"></a> :src="getFullPic(item.avatar)"></a>
<p><a href="javascript:;" data-toggle="modal" data-target="#myModal2">{{item.name}}</a></p> <p><a href="javascript:;" data-toggle="modal" data-target="#myModal2">{{item.name}}</a></p>
</div> </div>
<div class="video-sm-info pull-left"> <div class="video-sm-info pull-right">
<a href="javascript:;"><i class="icon-comment-empty"></i>{{coursewareInfo.comment_count}}</a> <p class="mb-right">
<a @click="favorite" href="javascript:;"><i <a href="javascript:;"><i class="icon-comment-empty"></i>{{coursewareInfo.comment_count}}</a>
:class="{'icon-fav-full':coursewareInfo.isFavorite,'icon-fav-empty':!coursewareInfo.isFavorite}"></i>{{coursewareInfo.favorite_count}}</a> <a @click="favorite" href="javascript:;"><i
<a @click="support" href="javascript:;"><i :class="{'icon-fav-full':coursewareInfo.isFavorite,'icon-fav-empty':!coursewareInfo.isFavorite}"></i>{{coursewareInfo.favorite_count}}</a>
:class="{'icon-zan-full':coursewareInfo.isSupport,'icon-zan-empty':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a> <a @click="support" href="javascript:;"><i
:class="{'icon-zan-full':coursewareInfo.isSupport,'icon-zan-empty':!coursewareInfo.isSupport}"></i>{{coursewareInfo.support_count}}</a>
<button v-if="coursewareInfo.isGuest" @click="login" class="btn btn-danger m-l-20">购买 </p>
<button v-if="coursewareInfo.isGuest" @click="login" class="btn btn-danger m-l-20 mb-left">购买
¥{{coursewareInfo.price}} ¥{{coursewareInfo.price}}
</button> </button>
<template v-else> <template v-else>
<button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 hidden-xs" data-toggle="modal">已购买 <button v-if="coursewareInfo.isShop" class="btn btn-danger m-l-20 mb-left" data-toggle="modal">已购买
</button> </button>
<button v-else class="btn btn-danger m-l-20" data-toggle="modal" <button v-else class="btn btn-danger m-l-20 mb-left" data-toggle="modal"
data-target="#pay">购买 ¥{{coursewareInfo.price}} data-target="#pay">购买 ¥{{coursewareInfo.price}}
</button> </button>
</template> </template>
...@@ -44,6 +47,9 @@ ...@@ -44,6 +47,9 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="!coursewareInfo.isGuest" class="modal fade" id="pay" tabindex="-1" role="dialog" <div v-if="!coursewareInfo.isGuest" class="modal fade" id="pay" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true"> aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm"> <div class="modal-dialog modal-sm">
......
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