...
|
...
|
@@ -178,7 +178,7 @@ class UserModel |
|
|
foreach ($favProduct['data']['product_list'] as $val) {
|
|
|
$product = array();
|
|
|
$product['fav_id'] = $val['product_id'];
|
|
|
$product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_id'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$product['imgUrl'] = Helpers::getImageUrl($val['image'], 447, 596);
|
|
|
;
|
|
|
$product['title'] = $val['product_name'];
|
...
|
...
|
@@ -231,13 +231,13 @@ class UserModel |
|
|
$brand['brandName'] = $val['brand_name'];
|
|
|
$brand['update'] = $val['new_product_num'];
|
|
|
$brand['discount'] = $val['product_discount_num'];
|
|
|
$brand['link'] = Helpers::url('', array('query' => $val['brand_name']), 'search');
|
|
|
$brand['link'] = Helpers::url('', array(), $val['brand_domain']);
|
|
|
|
|
|
// 处理品牌产品
|
|
|
$product = array();
|
|
|
foreach ($val['new_product'] as $one) {
|
|
|
$product = array();
|
|
|
$product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_id'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$product['imgUrl'] = (isset($one['default_images']) && !empty($one['default_images'])) ? Images::getImageUrl($one['default_images'], 235, 314) : '';
|
|
|
$product['price'] = !empty($one['market_price']) ? '¥' . $one['market_price'] : 0;
|
|
|
$product['discount'] = !empty($one['sales_price']) ? '¥' . $one['sales_price'] : 0;
|
...
|
...
|
|