...
|
...
|
@@ -122,7 +122,7 @@ class HomeController extends AbstractAction |
|
|
$this->setNavHeader('YOHO币', true, false);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
$currency = \Index\UserModel::getYohoCoinData($uid);
|
|
|
|
|
|
$currency['pageFooter'] = true;
|
...
|
...
|
@@ -154,7 +154,7 @@ class HomeController extends AbstractAction |
|
|
$page = $this->get('page', 0);
|
|
|
$size = $this->get('size', 10);
|
|
|
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
$messages = \Index\UserModel::getMessageData($uid, $page, $size);
|
|
|
|
|
|
print_r($messages);
|
...
|
...
|
@@ -169,7 +169,7 @@ class HomeController extends AbstractAction |
|
|
$this->setNavHeader('地址管理', true, SITE_MAIN);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
|
|
|
$address = \Index\UserModel::getAddressData($uid);
|
|
|
$addressList = \Index\UserModel::getAddressListData($uid);
|
...
|
...
|
@@ -192,7 +192,7 @@ class HomeController extends AbstractAction |
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
$address = $this->post('address', '');
|
|
|
$area_code = $this->post('area_code', '');
|
|
|
$consignee = $this->post('consignee', '');
|
...
|
...
|
@@ -219,7 +219,7 @@ class HomeController extends AbstractAction |
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$uid = 8826435;
|
|
|
$id = $this->post('id', '');
|
|
|
|
|
|
$result = \Index\UserModel::setDefaultAddress($uid, $id);
|
...
|
...
|
@@ -232,6 +232,27 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除地址
|
|
|
*/
|
|
|
public function addressDelAction() {
|
|
|
$result = array();
|
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 8826435;
|
|
|
$id = $this->post('id', '');
|
|
|
|
|
|
$result = \Index\UserModel::deleteAddress($uid, $id);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//在线客服
|
|
|
public function onlineServiceAction() {
|
|
|
// 设置网站标题
|
...
|
...
|
|