diff --git a/library/Api/Yohobuy.php b/library/Api/Yohobuy.php index 9288273..7d6404f 100644 --- a/library/Api/Yohobuy.php +++ b/library/Api/Yohobuy.php @@ -17,7 +17,7 @@ use Plugin\Cache; class Yohobuy { -// /* 正式环境 */ + /* 正式环境 */ // const API_URL = 'http://api2.open.yohobuy.com/'; // const SERVICE_URL = 'http://service.api.yohobuy.com/'; // const YOHOBUY_URL = 'http://www.yohobuy.com/'; diff --git a/yohobuy/m.yohobuy.com/application/controllers/Home.php b/yohobuy/m.yohobuy.com/application/controllers/Home.php index 18ae1d5..d6364a3 100644 --- a/yohobuy/m.yohobuy.com/application/controllers/Home.php +++ b/yohobuy/m.yohobuy.com/application/controllers/Home.php @@ -203,12 +203,35 @@ class HomeController extends AbstractAction // print_r($address); $this->_view->display('address', array( - 'myIndexPage' => true, + 'addressPage' => true, 'pageFooter' => true, 'address' => $address )); } + /** + * 修改地址 + */ + public function editAddressAction() + { + // 设置网站标题 + $this->setTitle('修改地址'); + $this->setNavHeader('修改地址', true, SITE_MAIN); + + // $uid = $this->getUid(); + $uid = 967016; + + $address = \Index\UserModel::getAddressData($uid); + + // print_r($address); + + $this->_view->display('edit_address', array( + 'editAddressPage' => true, + 'pageFooter' => true, + 'address' => $address + )); + } + /** * 在线客服 */