Showing
7 changed files
with
97 additions
and
4 deletions
@@ -2,6 +2,25 @@ | @@ -2,6 +2,25 @@ | ||
2 | {{# friendInviteData}} | 2 | {{# friendInviteData}} |
3 | <div class="banner"> | 3 | <div class="banner"> |
4 | <span class="title">您的好友{{nickname}}<br><b>邀请您来有货玩潮流</b></span> | 4 | <span class="title">您的好友{{nickname}}<br><b>邀请您来有货玩潮流</b></span> |
5 | + <span class="ico-left"></span> | ||
6 | + <span class="ico-right"></span> | ||
7 | + <div class="avatar-wrap"> | ||
8 | + <div class="avatar-swiper avatar"> | ||
9 | + <ul class="clearfix swiper-wrapper"> | ||
10 | + <li class="order-good swiper-slide"> | ||
11 | + <a href=""> | ||
12 | + <img class="" src="http://img11.static.yhbimg.com/articleTags/2016/06/21/16/012496ccd3dd8e1e11af82a3654ed8ebec.jpg?imageView2/2/w/180/h/180/q/90"> | ||
13 | + </a> | ||
14 | + <li> | ||
15 | + <li class="order-good swiper-slide"> | ||
16 | + <a href=""> | ||
17 | + <img class="" src="http://img11.static.yhbimg.com/articleTags/2016/06/21/16/012496ccd3dd8e1e11af82a3654ed8ebec.jpg?imageView2/2/w/180/h/180/q/90"> | ||
18 | + </a> | ||
19 | + <li> | ||
20 | + </ul> | ||
21 | + </div> | ||
22 | + </div> | ||
23 | + | ||
5 | <div class="tip-text"> | 24 | <div class="tip-text"> |
6 | <img src="{{image2 imgSrc w=951 h=522 q=100}}"> | 25 | <img src="{{image2 imgSrc w=951 h=522 q=100}}"> |
7 | </div> | 26 | </div> |

4.91 KB
public/img/activity/expand-new/go-btn.png
0 → 100644

4.8 KB
public/img/activity/expand-new/tip-left.png
0 → 100644

4.51 KB
public/img/activity/expand-new/tip-right.png
0 → 100644

4.31 KB
1 | 'use strict'; | 1 | 'use strict'; |
2 | require('activity/friend-invite.page.css'); | 2 | require('activity/friend-invite.page.css'); |
3 | let PRDID = []; | 3 | let PRDID = []; |
4 | +let Swiper = require('yoho-swiper'); | ||
5 | +let $avatarWrap = $('.avatar-wrap'); | ||
6 | +let bannerLen = $('.avatar-wrap').find('.swiper-slide').length; | ||
4 | 7 | ||
5 | $('.good-list').find('.goods-info').each(function() { | 8 | $('.good-list').find('.goods-info').each(function() { |
6 | PRDID.push($(this).data('good-id')); | 9 | PRDID.push($(this).data('good-id')); |
@@ -31,3 +34,17 @@ $('.goods-info').click(function() { | @@ -31,3 +34,17 @@ $('.goods-info').click(function() { | ||
31 | }, true); | 34 | }, true); |
32 | } | 35 | } |
33 | }); | 36 | }); |
37 | + | ||
38 | +if (bannerLen > 0) { | ||
39 | + new Swiper($avatarWrap.find('.avatar-swiper')[0], { | ||
40 | + lazyLoading: true, | ||
41 | + lazyLoadingInPrevNextAmount: 3, | ||
42 | + initialSlide: 1, | ||
43 | + centeredSlides: true, | ||
44 | + slidesPerView: 'auto', | ||
45 | + loopedSlides: bannerLen, | ||
46 | + watchSlidesProgress: true, | ||
47 | + watchSlidesVisibility: true, | ||
48 | + spaceBetween: 10 | ||
49 | + }); | ||
50 | +} |
1 | +@import "layout/swiper"; | ||
1 | .friend-invite-page { | 2 | .friend-invite-page { |
2 | background-image: resolve("activity/expand-new/back.png"); | 3 | background-image: resolve("activity/expand-new/back.png"); |
3 | background-size: 100%; | 4 | background-size: 100%; |
@@ -6,14 +7,14 @@ | @@ -6,14 +7,14 @@ | ||
6 | 7 | ||
7 | .banner { | 8 | .banner { |
8 | width: 655px; | 9 | width: 655px; |
9 | - height: 621px; | ||
10 | margin: 0 0 25px 47px; | 10 | margin: 0 0 25px 47px; |
11 | - background-image: resolve("activity/expand-new/friend-tip.png"); | ||
12 | - background-size: 100%; | 11 | + background-image: resolve("activity/expand-new/friend-tip.jpg"); |
12 | + background-size: 100% 100%; | ||
13 | background-repeat: no-repeat; | 13 | background-repeat: no-repeat; |
14 | text-align: center; | 14 | text-align: center; |
15 | padding-top: 50px; | 15 | padding-top: 50px; |
16 | position: relative; | 16 | position: relative; |
17 | + padding-bottom: 70px; | ||
17 | 18 | ||
18 | .title { | 19 | .title { |
19 | display: inline-block; | 20 | display: inline-block; |
@@ -26,6 +27,28 @@ | @@ -26,6 +27,28 @@ | ||
26 | } | 27 | } |
27 | } | 28 | } |
28 | 29 | ||
30 | + .ico-left { | ||
31 | + display: inline-block; | ||
32 | + width: 99px; | ||
33 | + height: 44px; | ||
34 | + position: absolute; | ||
35 | + left: 44px; | ||
36 | + top: 102px; | ||
37 | + background-image: resolve("activity/expand-new/tip-left.png"); | ||
38 | + background-size: 100%; | ||
39 | + } | ||
40 | + | ||
41 | + .ico-right { | ||
42 | + display: inline-block; | ||
43 | + width: 79px; | ||
44 | + height: 36px; | ||
45 | + position: absolute; | ||
46 | + right: 62px; | ||
47 | + top: 92px; | ||
48 | + background-image: resolve("activity/expand-new/tip-right.png"); | ||
49 | + background-size: 100%; | ||
50 | + } | ||
51 | + | ||
29 | .tip-text { | 52 | .tip-text { |
30 | width: 628px; | 53 | width: 628px; |
31 | margin: 10px; | 54 | margin: 10px; |
@@ -37,8 +60,42 @@ | @@ -37,8 +60,42 @@ | ||
37 | height: 80px; | 60 | height: 80px; |
38 | display: block; | 61 | display: block; |
39 | position: absolute; | 62 | position: absolute; |
40 | - bottom: 0; | 63 | + bottom: -20px; |
41 | left: 160px; | 64 | left: 160px; |
65 | + background-image: resolve("activity/expand-new/go-btn.png"); | ||
66 | + background-size: 100%; | ||
67 | + background-repeat: no-repeat; | ||
68 | + } | ||
69 | + } | ||
70 | + | ||
71 | + .avatar-wrap { | ||
72 | + height: 350px; | ||
73 | + margin: 15px 0; | ||
74 | + | ||
75 | + .avatar-swiper { | ||
76 | + overflow: hidden; | ||
77 | + margin: 0 25px; | ||
78 | + | ||
79 | + .swiper-wrapper { | ||
80 | + white-space: nowrap; | ||
81 | + padding-top: 10px; | ||
82 | + padding-bottom: 20px; | ||
83 | + } | ||
84 | + | ||
85 | + .swiper-slide { | ||
86 | + float: left; | ||
87 | + width: 240px; | ||
88 | + height: 320px; | ||
89 | + box-shadow: 3px 3px 3px 0 #aaa; | ||
90 | + } | ||
91 | + | ||
92 | + .swiper-slide-active { | ||
93 | + /*width: 250px; | ||
94 | + height: 333px;*/ | ||
95 | + transform: scale(1.1); | ||
96 | + transition: 300ms; | ||
97 | + /*top: -5px;*/ | ||
98 | + } | ||
42 | } | 99 | } |
43 | } | 100 | } |
44 | 101 |
-
Please register or login to post a comment