Authored by whb

最新上架

@@ -236,12 +236,13 @@ class HomeModel @@ -236,12 +236,13 @@ class HomeModel
236 $val['price'] = $val['salePrice']; 236 $val['price'] = $val['salePrice'];
237 } 237 }
238 //TODO 字段要调整 238 //TODO 字段要调整
239 - $val['tags']['isFew'] = $val['is_soon_sold_out'];  
240 - $val['tags']['isLimit'] = $val['tags']['is_discount'];  
241 - $val['tags']['is_discount'] = $val['is_soon_sold_out']; 239 + $val['isFew'] = $val['is_soon_sold_out'];
  240 + $val['tags']['isLimit'] = $val['tags']['is_limited'];
  241 + $val['tags']['isSale'] = $val['tags']['is_discount'];
242 $val['tags']['isNew'] = false;//$val['tags']['is_new']; 242 $val['tags']['isNew'] = false;//$val['tags']['is_new'];
243 $val['tags']['isYearMidPromotion'] = $val['tags']['midYear']; 243 $val['tags']['isYearMidPromotion'] = $val['tags']['midYear'];
244 $val['tags']['isYearEndPromotion'] = $val['tags']['yearEnd']; 244 $val['tags']['isYearEndPromotion'] = $val['tags']['yearEnd'];
  245 + $val['tags']['isReNew'] = $val['tags']['is_advance'];
245 unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'], 246 unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'],
246 $val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']); 247 $val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']);
247 if (! empty($val)) { 248 if (! empty($val)) {