...
|
...
|
@@ -51,7 +51,19 @@ class UserModel |
|
|
*/
|
|
|
public static function getInfoNumData($uid, $udid)
|
|
|
{
|
|
|
$result = array();
|
|
|
$result = array(
|
|
|
'wait_pay_num' => 0,
|
|
|
'wait_cargo_num' => 0,
|
|
|
'send_cargo_num' => 0,
|
|
|
'brand_favorite_total' => 0,
|
|
|
'product_favorite_total' => 0,
|
|
|
'inbox_total' => 0,
|
|
|
'comment_total' => 0,
|
|
|
'refund_exchange_num' => 0,
|
|
|
'yoho_coin_num' => 0,
|
|
|
'coupon_num' => 0,
|
|
|
'product_browse' => 0
|
|
|
);
|
|
|
|
|
|
// 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
$infoNumData = UserData::infoNum($uid, $udid);
|
...
|
...
|
@@ -302,7 +314,7 @@ class UserModel |
|
|
foreach ($data as &$val) {
|
|
|
$val['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$val['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : '';
|
|
|
$val['sales_price'] = !empty($val['sales_price']) ? $val['sales_price'] . '.00' : 0;
|
|
|
$val['sales_price'] = (!empty($val['sales_price']) && !is_float($val['sales_price'])) ? $val['sales_price'] . '.00' : $val['sales_price'];
|
|
|
$val['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? $val['market_price'] . '.00' : false;
|
|
|
}
|
|
|
!empty($data) && $result['browseRecord'] = $data;
|
...
|
...
|
|