...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-03-23 11:02:31
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-04-18 16:28:28
|
|
|
* @Last Modified time: 2017-04-20 10:58:29
|
|
|
*/
|
|
|
/* 红人店铺数据处理 */
|
|
|
|
...
|
...
|
@@ -326,7 +326,9 @@ const pushGoodsInfo = (decorators, goodsList) => { |
|
|
|
|
|
_.forEach(decorators, (value, key) => {
|
|
|
_.forEach(_.get(value, 'pics', []), (subValue, subKey) => {
|
|
|
if (subValue.skn) {
|
|
|
let hasGoods = _.get(goodsObj, `${subValue.skn}.default_images`, false);
|
|
|
|
|
|
if (subValue.skn && hasGoods) {
|
|
|
let salesPrice = _.get(goodsObj, `${subValue.skn}.sales_price`, '');
|
|
|
let marketPrice = _.get(goodsObj, `${subValue.skn}.market_price`, '');
|
|
|
let imageSrc = _.get(goodsObj, `${subValue.skn}.default_images`, '');
|
...
|
...
|
@@ -336,7 +338,7 @@ const pushGoodsInfo = (decorators, goodsList) => { |
|
|
decorators[key].pics[subKey].marketPrice = marketPrice ? '¥' + marketPrice : '';
|
|
|
decorators[key].pics[subKey].isGood = true;
|
|
|
|
|
|
if (value.module_type === 'TripleImage') {
|
|
|
if (value.module_type === 'TripleImage' || value.module_type === 'DoubleImage') {
|
|
|
decorators[key].pics[subKey].src = imageSrc;
|
|
|
} else {
|
|
|
decorators[key].pics[subKey].src = imageSrc.split('?')[0];
|
...
|
...
|
|