|
@@ -12,6 +12,8 @@ var $userAvatar = $('.user-avatar'), |
|
@@ -12,6 +12,8 @@ var $userAvatar = $('.user-avatar'), |
12
|
var myImage = new Image(),
|
12
|
var myImage = new Image(),
|
13
|
avatar;
|
13
|
avatar;
|
14
|
|
14
|
|
|
|
15
|
+var Swiper = require('yoho-swiper');
|
|
|
16
|
+
|
15
|
require('home/index.page.css');
|
17
|
require('home/index.page.css');
|
16
|
|
18
|
|
17
|
require('../common');
|
19
|
require('../common');
|
|
@@ -21,6 +23,15 @@ if ($('.recommend-for-you').length) { |
|
@@ -21,6 +23,15 @@ if ($('.recommend-for-you').length) { |
21
|
require('../common/suspend-cart');
|
23
|
require('../common/suspend-cart');
|
22
|
require('../common/footer');
|
24
|
require('../common/footer');
|
23
|
|
25
|
|
|
|
26
|
+new Swiper('.banner-center-swiper', {
|
|
|
27
|
+ pagination: '.swiper-pagination',
|
|
|
28
|
+ lazyLoading: true,
|
|
|
29
|
+ lazyLoadingInPrevNext: true,
|
|
|
30
|
+ paginationClickable: true,
|
|
|
31
|
+ loop: true,
|
|
|
32
|
+ autoplay: 3000
|
|
|
33
|
+});
|
|
|
34
|
+
|
24
|
window.reMarginFooter('.footer-tab');
|
35
|
window.reMarginFooter('.footer-tab');
|
25
|
|
36
|
|
26
|
// 部分老用户没有头像,显示默认头像
|
37
|
// 部分老用户没有头像,显示默认头像
|