|
@@ -122,7 +122,7 @@ class HomeController extends AbstractAction |
|
@@ -122,7 +122,7 @@ class HomeController extends AbstractAction |
122
|
$this->setNavHeader('YOHO币', true, false);
|
122
|
$this->setNavHeader('YOHO币', true, false);
|
123
|
|
123
|
|
124
|
// $uid = $this->getUid();
|
124
|
// $uid = $this->getUid();
|
125
|
- $uid = 967016;
|
125
|
+ $uid = 8826435;
|
126
|
$currency = \Index\UserModel::getYohoCoinData($uid);
|
126
|
$currency = \Index\UserModel::getYohoCoinData($uid);
|
127
|
|
127
|
|
128
|
$currency['pageFooter'] = true;
|
128
|
$currency['pageFooter'] = true;
|
|
@@ -154,7 +154,7 @@ class HomeController extends AbstractAction |
|
@@ -154,7 +154,7 @@ class HomeController extends AbstractAction |
154
|
$page = $this->get('page', 0);
|
154
|
$page = $this->get('page', 0);
|
155
|
$size = $this->get('size', 10);
|
155
|
$size = $this->get('size', 10);
|
156
|
|
156
|
|
157
|
- $uid = 967016;
|
157
|
+ $uid = 8826435;
|
158
|
$messages = \Index\UserModel::getMessageData($uid, $page, $size);
|
158
|
$messages = \Index\UserModel::getMessageData($uid, $page, $size);
|
159
|
|
159
|
|
160
|
print_r($messages);
|
160
|
print_r($messages);
|
|
@@ -169,7 +169,7 @@ class HomeController extends AbstractAction |
|
@@ -169,7 +169,7 @@ class HomeController extends AbstractAction |
169
|
$this->setNavHeader('地址管理', true, SITE_MAIN);
|
169
|
$this->setNavHeader('地址管理', true, SITE_MAIN);
|
170
|
|
170
|
|
171
|
// $uid = $this->getUid();
|
171
|
// $uid = $this->getUid();
|
172
|
- $uid = 967016;
|
172
|
+ $uid = 8826435;
|
173
|
|
173
|
|
174
|
$address = \Index\UserModel::getAddressData($uid);
|
174
|
$address = \Index\UserModel::getAddressData($uid);
|
175
|
$addressList = \Index\UserModel::getAddressListData($uid);
|
175
|
$addressList = \Index\UserModel::getAddressListData($uid);
|
|
@@ -192,7 +192,7 @@ class HomeController extends AbstractAction |
|
@@ -192,7 +192,7 @@ class HomeController extends AbstractAction |
192
|
|
192
|
|
193
|
if ($this->isAjax()) {
|
193
|
if ($this->isAjax()) {
|
194
|
// $uid = $this->getUid();
|
194
|
// $uid = $this->getUid();
|
195
|
- $uid = 967016;
|
195
|
+ $uid = 8826435;
|
196
|
$address = $this->post('address', '');
|
196
|
$address = $this->post('address', '');
|
197
|
$area_code = $this->post('area_code', '');
|
197
|
$area_code = $this->post('area_code', '');
|
198
|
$consignee = $this->post('consignee', '');
|
198
|
$consignee = $this->post('consignee', '');
|
|
@@ -219,7 +219,7 @@ class HomeController extends AbstractAction |
|
@@ -219,7 +219,7 @@ class HomeController extends AbstractAction |
219
|
|
219
|
|
220
|
if ($this->isAjax()) {
|
220
|
if ($this->isAjax()) {
|
221
|
// $uid = $this->getUid();
|
221
|
// $uid = $this->getUid();
|
222
|
- $uid = 967016;
|
222
|
+ $uid = 8826435;
|
223
|
$id = $this->post('id', '');
|
223
|
$id = $this->post('id', '');
|
224
|
|
224
|
|
225
|
$result = \Index\UserModel::setDefaultAddress($uid, $id);
|
225
|
$result = \Index\UserModel::setDefaultAddress($uid, $id);
|
|
@@ -232,6 +232,27 @@ class HomeController extends AbstractAction |
|
@@ -232,6 +232,27 @@ class HomeController extends AbstractAction |
232
|
}
|
232
|
}
|
233
|
}
|
233
|
}
|
234
|
|
234
|
|
|
|
235
|
+ /**
|
|
|
236
|
+ * 删除地址
|
|
|
237
|
+ */
|
|
|
238
|
+ public function addressDelAction() {
|
|
|
239
|
+ $result = array();
|
|
|
240
|
+
|
|
|
241
|
+ if ($this->isAjax()) {
|
|
|
242
|
+ // $uid = $this->getUid();
|
|
|
243
|
+ $uid = 8826435;
|
|
|
244
|
+ $id = $this->post('id', '');
|
|
|
245
|
+
|
|
|
246
|
+ $result = \Index\UserModel::deleteAddress($uid, $id);
|
|
|
247
|
+ }
|
|
|
248
|
+
|
|
|
249
|
+ if (empty($result)) {
|
|
|
250
|
+ echo ' ';
|
|
|
251
|
+ } else {
|
|
|
252
|
+ $this->echoJson($result);
|
|
|
253
|
+ }
|
|
|
254
|
+ }
|
|
|
255
|
+
|
235
|
//在线客服
|
256
|
//在线客服
|
236
|
public function onlineServiceAction() {
|
257
|
public function onlineServiceAction() {
|
237
|
// 设置网站标题
|
258
|
// 设置网站标题
|