Showing
4 changed files
with
39 additions
and
20 deletions
1 | <div class="yoho-live yoho-page"> | 1 | <div class="yoho-live yoho-page"> |
2 | + {{! 导航条}} | ||
3 | + <div class="home-header clearfix yoho-header"> | ||
4 | + <a href="javascript:history.go(-1);" class="iconfont nav-back buriedpoint" data-bp-id="page_header_back_0"></a> | ||
5 | + <p class="nav-title">YOHO!BUY有货直播间</p> | ||
6 | + </div> | ||
7 | + | ||
8 | + | ||
2 | {{#content}} | 9 | {{#content}} |
3 | {{! 头部banner}} | 10 | {{! 头部banner}} |
4 | {{#if focus}} | 11 | {{#if focus}} |
@@ -6,6 +13,7 @@ | @@ -6,6 +13,7 @@ | ||
6 | {{/if}} | 13 | {{/if}} |
7 | {{/content}} | 14 | {{/content}} |
8 | 15 | ||
16 | + {{! 精选房间}} | ||
9 | <div class="live-rec"> | 17 | <div class="live-rec"> |
10 | {{#best}} | 18 | {{#best}} |
11 | <div class="rec-child"> | 19 | <div class="rec-child"> |
@@ -31,6 +39,7 @@ | @@ -31,6 +39,7 @@ | ||
31 | {{/best}} | 39 | {{/best}} |
32 | </div> | 40 | </div> |
33 | 41 | ||
42 | + {{! 直播中房间}} | ||
34 | {{#living}} | 43 | {{#living}} |
35 | <div class="live-living"> | 44 | <div class="live-living"> |
36 | <h2 class="title">直播中</h2> | 45 | <h2 class="title">直播中</h2> |
@@ -55,6 +64,7 @@ | @@ -55,6 +64,7 @@ | ||
55 | </div> | 64 | </div> |
56 | {{/living}} | 65 | {{/living}} |
57 | 66 | ||
67 | + {{! 直播预告列表}} | ||
58 | {{#if pre}} | 68 | {{#if pre}} |
59 | <div class="live-list"> | 69 | <div class="live-list"> |
60 | <h2 class="title">直播预告</h2> | 70 | <h2 class="title">直播预告</h2> |
@@ -76,7 +86,7 @@ | @@ -76,7 +86,7 @@ | ||
76 | </div> | 86 | </div> |
77 | {{/if}} | 87 | {{/if}} |
78 | 88 | ||
79 | - | 89 | + {{! 精彩回看}} |
80 | {{#record}} | 90 | {{#record}} |
81 | <div class="live-living"> | 91 | <div class="live-living"> |
82 | <h2 class="title">精彩回看</h2> | 92 | <h2 class="title">精彩回看</h2> |
1 | var $ = require('yoho-jquery'), | 1 | var $ = require('yoho-jquery'), |
2 | lazyLoad = require('yoho-jquery-lazyload'); | 2 | lazyLoad = require('yoho-jquery-lazyload'); |
3 | +var Swiper = require('yoho-swiper'); | ||
3 | 4 | ||
4 | lazyLoad($('img')); | 5 | lazyLoad($('img')); |
6 | + | ||
7 | +$('.swiper-container').each(function() { | ||
8 | + if ($(this).find('.swiper-slide').length > 1) { | ||
9 | + new Swiper($(this).get(0), { | ||
10 | + lazyLoading: true, | ||
11 | + lazyLoadingInPrevNext: true, | ||
12 | + loop: true, | ||
13 | + autoplay: 3000, | ||
14 | + autoplayDisableOnInteraction: true, | ||
15 | + paginationClickable: true, | ||
16 | + pagination: $(this).closest('.banner-top').find('.pagination-inner').get(0) | ||
17 | + }); | ||
18 | + } | ||
19 | +}); |
1 | -var Swiper = require('yoho-swiper'); | ||
2 | - | ||
3 | -$('.swiper-container').each(function() { | ||
4 | - if ($(this).find('.swiper-slide').length > 1) { | ||
5 | - new Swiper($(this).get(0), { | ||
6 | - lazyLoading: true, | ||
7 | - lazyLoadingInPrevNext: true, | ||
8 | - loop: true, | ||
9 | - autoplay: 3000, | ||
10 | - autoplayDisableOnInteraction: true, | ||
11 | - paginationClickable: true, | ||
12 | - pagination: $(this).closest('.banner-top').find('.pagination-inner').get(0) | ||
13 | - }); | ||
14 | - } | ||
15 | -}); |
@@ -3,16 +3,21 @@ $white: #fff; | @@ -3,16 +3,21 @@ $white: #fff; | ||
3 | $black: #444; | 3 | $black: #444; |
4 | $red: #d0021b; | 4 | $red: #d0021b; |
5 | $gray: #b0b0b0; | 5 | $gray: #b0b0b0; |
6 | +$border: #e0e0e0; | ||
6 | 7 | ||
7 | .live-rec { | 8 | .live-rec { |
8 | - height: 420px; | 9 | + margin-top: 30px; |
10 | + height: 423px; | ||
9 | width: 640px; | 11 | width: 640px; |
12 | + border-top: 1px solid $border; | ||
10 | 13 | ||
11 | .rec-child { | 14 | .rec-child { |
12 | position: relative; | 15 | position: relative; |
13 | height: 100%; | 16 | height: 100%; |
14 | width: 50%; | 17 | width: 50%; |
15 | float: left; | 18 | float: left; |
19 | + border-right: 1px solid $border; | ||
20 | + overflow: hidden; | ||
16 | 21 | ||
17 | img { | 22 | img { |
18 | height: 320px; | 23 | height: 320px; |
@@ -50,8 +55,10 @@ $gray: #b0b0b0; | @@ -50,8 +55,10 @@ $gray: #b0b0b0; | ||
50 | 55 | ||
51 | .rec-info { | 56 | .rec-info { |
52 | position: relative; | 57 | position: relative; |
53 | - height: 100px; | 58 | + height: 102px; |
54 | width: 320px; | 59 | width: 320px; |
60 | + border-top: 1px solid $border; | ||
61 | + border-bottom: 1px solid $border; | ||
55 | 62 | ||
56 | .rec-head { | 63 | .rec-head { |
57 | position: absolute; | 64 | position: absolute; |
@@ -116,8 +123,10 @@ $gray: #b0b0b0; | @@ -116,8 +123,10 @@ $gray: #b0b0b0; | ||
116 | 123 | ||
117 | header { | 124 | header { |
118 | position: relative; | 125 | position: relative; |
119 | - height: 100px; | 126 | + height: 102px; |
120 | width: 640px; | 127 | width: 640px; |
128 | + border-top: 1px solid $border; | ||
129 | + border-bottom: 1px solid $border; | ||
121 | 130 | ||
122 | .main-head { | 131 | .main-head { |
123 | position: absolute; | 132 | position: absolute; |
@@ -188,7 +197,7 @@ $gray: #b0b0b0; | @@ -188,7 +197,7 @@ $gray: #b0b0b0; | ||
188 | bottom: 75px; | 197 | bottom: 75px; |
189 | left: 30px; | 198 | left: 30px; |
190 | font-size: 28px; | 199 | font-size: 28px; |
191 | - color: $gray; | 200 | + color: $white; |
192 | display: -webkit-box; | 201 | display: -webkit-box; |
193 | overflow: hidden; | 202 | overflow: hidden; |
194 | word-break: break-all; | 203 | word-break: break-all; |
-
Please register or login to post a comment