Merge branch 'hotfix/bunld' into 'release/8.1'
Hotfix/bunld See merge request !1498
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -730,7 +730,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -730,7 +730,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
730 | this._getFavorite(result.product_id, data.uid) | 730 | this._getFavorite(result.product_id, data.uid) |
731 | ]; | 731 | ]; |
732 | 732 | ||
733 | - if (data.bundleType) { | 733 | + if (+data.bundleType) { |
734 | apiArray.push(this.ctx.req.ctx(bundle).getBundleBySkn(data.productSkn)); | 734 | apiArray.push(this.ctx.req.ctx(bundle).getBundleBySkn(data.productSkn)); |
735 | } | 735 | } |
736 | 736 |
@@ -111,7 +111,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -111,7 +111,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
111 | this.queryPromotion(skn), // 4 促销活动 | 111 | this.queryPromotion(skn), // 4 促销活动 |
112 | ]; | 112 | ]; |
113 | 113 | ||
114 | - if (params.bundleType) { | 114 | + if (+params.bundleType) { |
115 | apiArray.push(this.ctx.req.ctx(bundle).getBundleBySkn(skn)); | 115 | apiArray.push(this.ctx.req.ctx(bundle).getBundleBySkn(skn)); |
116 | } | 116 | } |
117 | 117 |
@@ -226,7 +226,7 @@ class ProductListWithFilter { | @@ -226,7 +226,7 @@ class ProductListWithFilter { | ||
226 | let $divide = $('.search-divide'); | 226 | let $divide = $('.search-divide'); |
227 | 227 | ||
228 | $divide.text('加载失败,点击重试'); | 228 | $divide.text('加载失败,点击重试'); |
229 | - $divide.one('click', function() { | 229 | + $divide.one('click', () => { |
230 | $divide.text('正在加载...'); | 230 | $divide.text('正在加载...'); |
231 | this.getGoodsList(); | 231 | this.getGoodsList(); |
232 | }); | 232 | }); |
-
Please register or login to post a comment