feat/task1-c-wallet
devil_gong 2019-11-05 11:52:12 +08:00
parent 74e8da2ac7
commit fafd59ab8d
2 changed files with 11 additions and 1 deletions

View File

@ -46,7 +46,14 @@ class Cart extends Common
*/
public function Index()
{
return BuyService::CartList(['user'=>$this->user]);
$ret = BuyService::CartList(['user'=>$this->user]);
$ret['data'] = [
'data' => $ret['data'],
'customer_service_tel' => MyC('common_app_customer_service_tel', null, true),
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', null, true),
'common_is_exhibition_mode' => (int) MyC('common_is_exhibition_mode', 1),
];
return $ret;
}
/**

View File

@ -128,6 +128,9 @@ class Goods extends Common
'common_app_is_good_thing' => (int) MyC('common_app_is_good_thing'),
'common_app_is_poster_share' => (int) MyC('common_app_is_poster_share'),
'common_cart_total' => BuyService::UserCartTotal(['user'=>$this->user]),
'customer_service_tel' => MyC('common_app_customer_service_tel', null, true),
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', null, true),
'common_is_exhibition_mode' => (int) MyC('common_is_exhibition_mode', 0),
// 优惠劵
'plugins_coupon_data' => $this->PluginsCouponGoods($goods_id),