Authored by 黄涛

Merge branch 'feature/tagPrice' into 'master'

add sale price class



See merge request !22
@@ -39,6 +39,10 @@ let _replaceData = function(el, cond, data, wh, fp, lastSoldTpl) { @@ -39,6 +39,10 @@ let _replaceData = function(el, cond, data, wh, fp, lastSoldTpl) {
39 el.find('.sale-price').html(${data.sales_price}`); 39 el.find('.sale-price').html(${data.sales_price}`);
40 el.data('skn', data.product_skn); 40 el.data('skn', data.product_skn);
41 41
  42 + if (data.salesPriceClass) {
  43 + el.find('.sale-price').addClass(data.salesPriceClass);
  44 + }
  45 +
42 if (lastSoldTpl && data.total_sales_num) { 46 if (lastSoldTpl && data.total_sales_num) {
43 el.find('.sold-num-text').html(lastSoldTpl.replace('{{soldNum}}', data.total_sales_num)); 47 el.find('.sold-num-text').html(lastSoldTpl.replace('{{soldNum}}', data.total_sales_num));
44 } else { 48 } else {