sale discount api params
Showing
2 changed files
with
3 additions
and
1 deletions
@@ -371,7 +371,8 @@ exports.getSaleDiscountData = (params, channel) => { | @@ -371,7 +371,8 @@ exports.getSaleDiscountData = (params, channel) => { | ||
371 | limit: '1', | 371 | limit: '1', |
372 | productPool: result[1].data[0].product_pool | 372 | productPool: result[1].data[0].product_pool |
373 | }), | 373 | }), |
374 | - saleApi.getSaleGoodsList(Object.assign(_.update(params, 'channel', null), { | 374 | + saleApi.getSaleGoodsList(Object.assign({}, params, { |
375 | + channel: null, | ||
375 | productPool: result[1].data[0].product_pool | 376 | productPool: result[1].data[0].product_pool |
376 | })) | 377 | })) |
377 | ]).then(subResult => { | 378 | ]).then(subResult => { |
@@ -51,6 +51,7 @@ $shopFavor.on('click', function() { | @@ -51,6 +51,7 @@ $shopFavor.on('click', function() { | ||
51 | }).then(function(res) { | 51 | }).then(function(res) { |
52 | if (res.code === 200) { | 52 | if (res.code === 200) { |
53 | $shopFavor.find('i').toggleClass('coled'); | 53 | $shopFavor.find('i').toggleClass('coled'); |
54 | + isFavorite = !isFavorite; | ||
54 | } else if (res.code === 401) { | 55 | } else if (res.code === 401) { |
55 | location.href = '//www.yohobuy.com/signin.html?refer=' + encodeURIComponent(location.href); | 56 | location.href = '//www.yohobuy.com/signin.html?refer=' + encodeURIComponent(location.href); |
56 | } | 57 | } |
-
Please register or login to post a comment