Merge branch 'release/5.6' of git.yoho.cn:fe/yohobuywap-node into release/5.6
Showing
5 changed files
with
14 additions
and
9 deletions
@@ -30,8 +30,7 @@ const list = (req, res, next) => { | @@ -30,8 +30,7 @@ const list = (req, res, next) => { | ||
30 | if (brand) { | 30 | if (brand) { |
31 | arrs.push(model.getBrand({ | 31 | arrs.push(model.getBrand({ |
32 | brandId: brand, | 32 | brandId: brand, |
33 | - uid: req.user.uid || 0, | ||
34 | - client_type: 'iphone' // todo | 33 | + uid: req.user.uid || 0 |
35 | })); | 34 | })); |
36 | } | 35 | } |
37 | 36 | ||
@@ -75,8 +74,7 @@ const detail = (req, res, next) => { | @@ -75,8 +74,7 @@ const detail = (req, res, next) => { | ||
75 | let skn = req.params[0]; | 74 | let skn = req.params[0]; |
76 | let params = { | 75 | let params = { |
77 | product_skn: skn, | 76 | product_skn: skn, |
78 | - uid: req.user.uid || 0, | ||
79 | - client_type: 'iphone' // todo | 77 | + uid: req.user.uid || 0 |
80 | }; | 78 | }; |
81 | 79 | ||
82 | model.detail(params).then((result) => { | 80 | model.detail(params).then((result) => { |
@@ -109,8 +107,7 @@ const gethtml = (req, res, next) => { | @@ -109,8 +107,7 @@ const gethtml = (req, res, next) => { | ||
109 | 107 | ||
110 | let params = { | 108 | let params = { |
111 | product_skn: skn, | 109 | product_skn: skn, |
112 | - uid: req.user.uid || 0, | ||
113 | - client_type: 'iphone' // todo | 110 | + uid: req.user.uid || 0 |
114 | }; | 111 | }; |
115 | 112 | ||
116 | model.gethtml(params).then((html) => { | 113 | model.gethtml(params).then((html) => { |
@@ -15,7 +15,7 @@ exports.list = (param) => { | @@ -15,7 +15,7 @@ exports.list = (param) => { | ||
15 | filter: productProcess.processFilter(result.data.filter || []), | 15 | filter: productProcess.processFilter(result.data.filter || []), |
16 | list: result.data.product_list.map((data) => { | 16 | list: result.data.product_list.map((data) => { |
17 | return { | 17 | return { |
18 | - product_url: `//m.yohobuy.com/product/global/${data.product_skn}.html`, | 18 | + product_url: data.is_global === 'Y' ? `//m.yohobuy.com/product/global/${data.product_skn}.html` : `//m.yohobuy.com/product/${data.product_skn}.html`, // eslint-disable-line |
19 | product_img: data.default_images, | 19 | product_img: data.default_images, |
20 | price: data.formart_final_price, | 20 | price: data.formart_final_price, |
21 | product_name: data.product_name, | 21 | product_name: data.product_name, |
@@ -18,7 +18,7 @@ export class DetailView extends View { | @@ -18,7 +18,7 @@ export class DetailView extends View { | ||
18 | this.illustrateContents.hide().addClass('down-animate'); | 18 | this.illustrateContents.hide().addClass('down-animate'); |
19 | 19 | ||
20 | setTimeout(() => { | 20 | setTimeout(() => { |
21 | - new Swiper('.banner-swiper', { | 21 | + let swiper = new Swiper('.banner-swiper', { |
22 | preloadImages: false, | 22 | preloadImages: false, |
23 | lazyLoading: true, | 23 | lazyLoading: true, |
24 | lazyLoadingInPrevNext: true, | 24 | lazyLoadingInPrevNext: true, |
@@ -29,6 +29,14 @@ export class DetailView extends View { | @@ -29,6 +29,14 @@ export class DetailView extends View { | ||
29 | prevButton: '.my-swiper-button-prev', | 29 | prevButton: '.my-swiper-button-prev', |
30 | spaceBetween: 3 | 30 | spaceBetween: 3 |
31 | }); | 31 | }); |
32 | + | ||
33 | + $('.banner-swiper').click(function() { | ||
34 | + $('.banner-top').toggleClass('hover'); | ||
35 | + swiper.onResize(); | ||
36 | + }); | ||
37 | + $('.banner-top-single').click(function() { | ||
38 | + $('.banner-top-single').toggleClass('hover'); | ||
39 | + }); | ||
32 | }, 500); | 40 | }, 500); |
33 | 41 | ||
34 | let $cartBar = $('.cart-bar'); | 42 | let $cartBar = $('.cart-bar'); |
-
Please register or login to post a comment