Authored by 王水玲

星潮教室

... ... @@ -229,20 +229,21 @@ body {
}
.home-floor-subject {
.subject-banner,
.subject-video-area {
.subject-banner {
width: 100%;
height: 310rem / $pxConvertRem;
}
}
.subject-video-area {
margin-top: 30rem / $pxConvertRem;
background: #000;
.subject-video-area {
width: 100%;
height: 310rem / $pxConvertRem;
margin-top: 30rem / $pxConvertRem;
background: #000;
#subject-video {
width: 100%;
height: 310rem / $pxConvertRem;
}
#subject-video {
width: 100%;
height: 310rem / $pxConvertRem;
}
}
... ...
... ... @@ -3,7 +3,7 @@
<div class="star-classroom yoho-page">
{{> guang/head-tab}}
{{#each resources}}
{{#if bannerTop}}
{{#if bannerList}}
{{> guang/banner-top}}
{{/if}}
... ... @@ -11,13 +11,21 @@
{{> guang/home-floor-sign}}
{{/if}}
{{#if floorSubject}}
{{#if starSubject}}
{{> guang/home-floor-subject}}
{{/if}}
{{#if floorCollocation}}
{{#if starCollocation}}
{{> guang/home-floor-collocation}}
{{/if}}
{{#if video}}
<div class="subject-video-area">
<video id="subject-video" controls="controls" poster="{{videoImg}}" autobuffer>
<source src="{{videoUrl}}">
</video>
</div>
{{/if}}
{{/each}}
</div>
{{> layout/footer}}
... ...
<div class="banner-top">
<div class="banner-swiper swiper-container">
<ul class="swiper-wrapper">
{{#each bannerList}}
{{#each banner}}
{{#if @first}}
<li class="swiper-slide">
<a href="{{url}}">
... ...
... ... @@ -4,13 +4,5 @@
{{# subjectBanner}}
<a href="{{url}}"><img src="{{img}}" class="subject-banner"/></a>
{{/ subjectBanner}}
{{# subjectVideo}}
<div class="subject-video-area">
<video id="subject-video" controls="controls" poster="{{videoImg}}" autobuffer>
<source src="{{videoUrl}}">
</video>
</div>
{{/ subjectVideo}}
</div>
{{/ starSubject}}
\ No newline at end of file
... ...