...
|
...
|
@@ -443,6 +443,30 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 地址修改
|
|
|
*/
|
|
|
public function addressModifyAction()
|
|
|
{
|
|
|
// 审判跳转登录页
|
|
|
$this->auditJumpLogin();
|
|
|
|
|
|
// 设置网站标题
|
|
|
$this->setTitle('地址管理');
|
|
|
$this->setNavHeader('地址管理', Helpers::url('/home'), false);
|
|
|
|
|
|
$uid = $this->_uid;
|
|
|
$address = UserModel::getAddressData($uid);
|
|
|
|
|
|
$this->_view->display('address_modify', array(
|
|
|
'addressModifyPage' => true,
|
|
|
'pageFooter' => true,
|
|
|
'address' => $address,
|
|
|
'changeable' => true,
|
|
|
'showAddBtn' => (count($address) <= 5),
|
|
|
));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* 地址编辑或添加页面
|
|
|
*/
|
...
|
...
|
@@ -1041,6 +1065,8 @@ class HomeController extends AbstractAction |
|
|
'orderCount' => isset($orderDetail['orderCount']) ? intval($orderDetail['orderCount']) : 0,
|
|
|
'isOldUser' => (isset($_COOKIE['_isOldUser']) && $_COOKIE['_isOldUser'] == '4') ? 'true' : 'false',
|
|
|
'uid' => $this->_uid,
|
|
|
|
|
|
'changeable' => true
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
|