Authored by 张孝茹

文案修改 滑动效果修改

<div class="friend-invite-page yoho-page">
{{# friendInviteData}}
<div class="banner">
<span class="title">您的好友{{nickname}}<br><b>{{#if payText}}发现了好物并完成下单{{else}}邀请您来有货玩潮流{{/if}}</b></span>
<span class="title">您的好友{{nickname}}<br><b>{{#if payText}}在有货发现了好物并推荐给您{{else}}邀请您来有货玩潮流{{/if}}</b></span>
<span class="ico-left"></span>
<span class="ico-right"></span>
{{#if friendsGoods}}
... ... @@ -11,7 +11,7 @@
{{# friendsGoods}}
<li class="order-good swiper-slide">
<a href="{{goodUrl}}">
<img class="" src="{{image imgSrc 240 320}}">
<img src="{{image imgSrc 240 320}}">
</a>
<li>
{{/ friendsGoods}}
... ...
... ... @@ -38,7 +38,7 @@ $('.goods-info').click(function() {
}
});
if (bannerLen > 0) {
if (bannerLen > 0 && bannerLen < 3) {
new Swiper($avatarWrap.find('.avatar-swiper')[0], {
lazyLoading: true,
lazyLoadingInPrevNextAmount: 3,
... ... @@ -50,4 +50,17 @@ if (bannerLen > 0) {
watchSlidesVisibility: true,
spaceBetween: 6
});
} else if (bannerLen >= 3) {
new Swiper($avatarWrap.find('.avatar-swiper')[0], {
lazyLoading: true,
lazyLoadingInPrevNextAmount: 3,
initialSlide: 1,
centeredSlides: true,
slidesPerView: 'auto',
loopedSlides: bannerLen,
watchSlidesProgress: true,
watchSlidesVisibility: true,
spaceBetween: 6,
loop: true
});
}
... ...