Authored by ccbikai

@@ -17,7 +17,7 @@ use Plugin\Cache; @@ -17,7 +17,7 @@ use Plugin\Cache;
17 class Yohobuy 17 class Yohobuy
18 { 18 {
19 19
20 -// /* 正式环境 */ 20 + /* 正式环境 */
21 // const API_URL = 'http://api2.open.yohobuy.com/'; 21 // const API_URL = 'http://api2.open.yohobuy.com/';
22 // const SERVICE_URL = 'http://service.api.yohobuy.com/'; 22 // const SERVICE_URL = 'http://service.api.yohobuy.com/';
23 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 23 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
@@ -203,12 +203,35 @@ class HomeController extends AbstractAction @@ -203,12 +203,35 @@ class HomeController extends AbstractAction
203 // print_r($address); 203 // print_r($address);
204 204
205 $this->_view->display('address', array( 205 $this->_view->display('address', array(
206 - 'myIndexPage' => true, 206 + 'addressPage' => true,
207 'pageFooter' => true, 207 'pageFooter' => true,
208 'address' => $address 208 'address' => $address
209 )); 209 ));
210 } 210 }
211 211
  212 + /**
  213 + * 修改地址
  214 + */
  215 + public function editAddressAction()
  216 + {
  217 + // 设置网站标题
  218 + $this->setTitle('修改地址');
  219 + $this->setNavHeader('修改地址', true, SITE_MAIN);
  220 +
  221 + // $uid = $this->getUid();
  222 + $uid = 967016;
  223 +
  224 + $address = \Index\UserModel::getAddressData($uid);
  225 +
  226 + // print_r($address);
  227 +
  228 + $this->_view->display('edit_address', array(
  229 + 'editAddressPage' => true,
  230 + 'pageFooter' => true,
  231 + 'address' => $address
  232 + ));
  233 + }
  234 +
212 /** 235 /**
213 * 在线客服 236 * 在线客服
214 */ 237 */