Authored by 毕凯

对接 收货地址

... ... @@ -3,12 +3,11 @@
* @author: bikai<kai.bi@yoho.cn>
* @date: 2015/12/14
*/
var info = window.cookie('order-info'),
orderInfo;
var info = window.cookie('order-info');
// info 必须是 JSON 字符串
try {
info = JSON.parse(orderInfo);
info = JSON.parse(info);
} catch (e) {
info = {};
}
... ...
... ... @@ -149,7 +149,7 @@ class ShoppingCartController extends AbstractAction
$this->setNavHeader('购物车');
$cartType = $this->post('cartType', 'ordinary');
$cookieData = $this->getCookie('orderInfo', null);
$cookieData = $this->getCookie('order-info', null);
$uid = $this->getUid(true);
$data = array(
'orderEnsurePage' => true,
... ...