Merge branch 'feature/promotionV2' into 'release/5.8'
Feature/promotion v2 See merge request !636
Showing
2 changed files
with
5 additions
and
2 deletions
@@ -401,6 +401,9 @@ $( | @@ -401,6 +401,9 @@ $( | ||
401 | } | 401 | } |
402 | 402 | ||
403 | promotionObj.init(); | 403 | promotionObj.init(); |
404 | + setTimeout(function() { | ||
405 | + promotionObj.moreGoods(); | ||
406 | + }, 100); | ||
404 | } | 407 | } |
405 | ); | 408 | ); |
406 | 409 | ||
@@ -431,7 +434,7 @@ promotionObj = { | @@ -431,7 +434,7 @@ promotionObj = { | ||
431 | }, | 434 | }, |
432 | moreGoods: function() { | 435 | moreGoods: function() { |
433 | let goodsHbs = require('activity/promotion/goods.hbs'); | 436 | let goodsHbs = require('activity/promotion/goods.hbs'); |
434 | - let page = this.page; | 437 | + let page = this.page || 1; |
435 | let that = this; | 438 | let that = this; |
436 | 439 | ||
437 | this.loading = true; | 440 | this.loading = true; |
@@ -139,7 +139,7 @@ exports.processProductList = (list, options) => { | @@ -139,7 +139,7 @@ exports.processProductList = (list, options) => { | ||
139 | // } | 139 | // } |
140 | 140 | ||
141 | // 市场价和售价一样,则不显示市场价 | 141 | // 市场价和售价一样,则不显示市场价 |
142 | - if (product.market_price === product.sales_price) { | 142 | + if (!product.market_price || product.market_price === product.sales_price) { |
143 | product.market_price = false; | 143 | product.market_price = false; |
144 | } | 144 | } |
145 | 145 |
-
Please register or login to post a comment