...
|
...
|
@@ -157,10 +157,11 @@ class UserModel |
|
|
$product = array();
|
|
|
foreach ($favProduct['data']['product_list'] as $val) {
|
|
|
$product = array();
|
|
|
$product['fav_id'] = $val['product_id'];
|
|
|
$product['imgUrl'] = $val['image'];
|
|
|
$product['title'] = $val['product_name'];
|
|
|
$product['price'] = '¥'.$val['market_price'];
|
|
|
$product['discountPrice'] = '¥'.$val['sales_price'];
|
|
|
$product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.$val['sales_price'] : false;
|
|
|
$product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false;
|
|
|
$product['sellOut'] = (bool)($val['price_down']);
|
|
|
|
...
|
...
|
|