Commit 27948ffd authored by xiabin's avatar xiabin

Merge remote-tracking branch 'origin/dev' into dev

parents 6e34bb53 e222f39b
...@@ -37,6 +37,26 @@ $qiniu = \Yii::$app->qiniu; ...@@ -37,6 +37,26 @@ $qiniu = \Yii::$app->qiniu;
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
<div class="col-md-4">
<div class="cls-box-main">
<div class="video-img-box">
<a href="#" target="_blank"><img src="http://dev.qdn.pp.cc/preview/f0/97/a3/f8s68SyefrZj3841.jpg-m.preview"></a>
<div class="video-list-cnt">
<div class="tit"><a href="#" target="_blank">课程名称</a></div>
<div class="teacher">讲师:万达</div>
<div class="description">这是一段文章介绍。。</div>
<div class="teacher">提交时间:2016-12-09 18:09</div>
</div>
<!--<span class="video-examine-icon">审</span>-->
<span class="video-examine-icon">荐</span>
<div class="edit"><a href="<?=Url::to(['my-course/edit', 'id'=>$course['id']])?>" title="编辑课程信息"><i class="icon-mode_edit"></i></a></div>
</div>
</div>
</div>
</div> </div>
<div class="text-center"> <div class="text-center">
......
...@@ -32,7 +32,7 @@ $this->title = '收藏记录'; ...@@ -32,7 +32,7 @@ $this->title = '收藏记录';
<?php endif ?> <?php endif ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<div class="price">售价:¥<?=$value['course']['price']?></div> <div class="teacher">售价:¥<?=$value['course']['price']?></div>
<div class="teacher"><b><?=$value['course']['user']['username']?>收藏了该内容</b></div> <div class="teacher"><b><?=$value['course']['user']['username']?>收藏了该内容</b></div>
</div> </div>
......
...@@ -23,7 +23,6 @@ $this->title = '已购课程'; ...@@ -23,7 +23,6 @@ $this->title = '已购课程';
<img src="<?= Yii::$app->qiniu->getUrl('public', $value['courseWithTeachers']['preview_pic'].'-m.preview') ?>"> <img src="<?= Yii::$app->qiniu->getUrl('public', $value['courseWithTeachers']['preview_pic'].'-m.preview') ?>">
<div class="video-list-cnt"> <div class="video-list-cnt">
<div class="tit"><a href="<?php echo $baseUrl.'/home/video?courseId='.$value['courseWithTeachers']['id'];?>"><?=$value['courseWithTeachers']['name']?></a></div> <div class="tit"><a href="<?php echo $baseUrl.'/home/video?courseId='.$value['courseWithTeachers']['id'];?>"><?=$value['courseWithTeachers']['name']?></a></div>
<div class="price"><?=$value['courseWithTeachers']['price']?></div>
<div class="teacher"> <div class="teacher">
讲师:<?php foreach ($value['courseWithTeachers']['teachers'] as $teaKey => $teaValue): ?> 讲师:<?php foreach ($value['courseWithTeachers']['teachers'] as $teaKey => $teaValue): ?>
<?php if ($teaKey > 0): ?> <?php if ($teaKey > 0): ?>
...@@ -33,6 +32,7 @@ $this->title = '已购课程'; ...@@ -33,6 +32,7 @@ $this->title = '已购课程';
<?php endif ?> <?php endif ?>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<div class="teacher"><?=$value['courseWithTeachers']['price']?></div>
<div class="teacher"> <div class="teacher">
<b><span>购买日期:<?=date("Y-m-d H:i:s",$value['updated_at'])?></span></b> <b><span>购买日期:<?=date("Y-m-d H:i:s",$value['updated_at'])?></span></b>
</div> </div>
......
...@@ -350,7 +350,7 @@ a,a:hover,a:link { ...@@ -350,7 +350,7 @@ a,a:hover,a:link {
.v-screen a { .v-screen a {
position: relative; position: relative;
display: block; display: block;
height: 180px; height: 150px;
overflow: hidden; overflow: hidden;
} }
...@@ -812,4 +812,6 @@ a,a:hover,a:link { ...@@ -812,4 +812,6 @@ a,a:hover,a:link {
width: 260px!important; width: 260px!important;
height: 300px!important; height: 300px!important;
border: 1px solid transparent!important; border: 1px solid transparent!important;
} }
\ No newline at end of file
...@@ -992,6 +992,25 @@ textarea.input-r-control { ...@@ -992,6 +992,25 @@ textarea.input-r-control {
display: inline-block; display: inline-block;
} }
.video-examine-icon {
display: block;
position: absolute;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
top: 10px;
left: 10px;
font-size: 14px;
background-color: rgba(0,0,0,.5);
color: #fff;
border-radius: 100%;
}
.video-img-box:hover .video-examine-icon {
background-color: red;
}
.examine-box { .examine-box {
margin-top: 100px; margin-top: 100px;
} }
...@@ -1265,6 +1284,9 @@ textarea.input-r-control { ...@@ -1265,6 +1284,9 @@ textarea.input-r-control {
.simditor { .simditor {
border: 1px solid #f3f3f3!important; border: 1px solid #f3f3f3!important;
} }
.simditor-body {
text-align: left!important;
}
@media (max-width: 767px) { @media (max-width: 767px) {
......
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