Showing
1 changed file
with
5 additions
and
37 deletions
@@ -237,26 +237,14 @@ class HomeController extends AbstractAction | @@ -237,26 +237,14 @@ class HomeController extends AbstractAction | ||
237 | * YOHO币 | 237 | * YOHO币 |
238 | */ | 238 | */ |
239 | public function currencyAction() { | 239 | public function currencyAction() { |
240 | - // $uid = $this->getUid(); | 240 | + $this->setTitle('YOHO币'); |
241 | $this->setNavHeader('YOHO币', true, false); | 241 | $this->setNavHeader('YOHO币', true, false); |
242 | 242 | ||
243 | + // $uid = $this->getUid(); | ||
243 | $uid = 967016; | 244 | $uid = 967016; |
244 | $currency = \Index\UserModel::getYohoCoinData($uid); | 245 | $currency = \Index\UserModel::getYohoCoinData($uid); |
245 | 246 | ||
246 | - $this->setTitle('优惠券'); | ||
247 | - $this->setNavHeader('优惠券', true, SITE_MAIN); | ||
248 | - // $uid = $this->getUid(); | ||
249 | - $uid = 8826435; | ||
250 | - $coupons = array( | ||
251 | - 'couponsUrl' => array( | ||
252 | - \Index\UserModel::getCouponData($uid, 0), | ||
253 | - \Index\UserModel::getCouponData($uid, 1), | ||
254 | - ), | ||
255 | - 'couponsPage' => true | ||
256 | - ); | ||
257 | - | ||
258 | - print_r($coupons); | ||
259 | - $this->_view->display('coupons', $coupons); | 247 | + $this->_view->display('currency', $currency); |
260 | } | 248 | } |
261 | 249 | ||
262 | /** | 250 | /** |
@@ -273,8 +261,8 @@ class HomeController extends AbstractAction | @@ -273,8 +261,8 @@ class HomeController extends AbstractAction | ||
273 | 'couponsUrl' => \Index\UserModel::getCouponData($uid, $status), | 261 | 'couponsUrl' => \Index\UserModel::getCouponData($uid, $status), |
274 | 'couponsPage' => true | 262 | 'couponsPage' => true |
275 | ); | 263 | ); |
264 | + print_r($coupons); | ||
276 | 265 | ||
277 | - print_r($coupons); | ||
278 | $this->_view->display('coupons', $coupons); | 266 | $this->_view->display('coupons', $coupons); |
279 | } | 267 | } |
280 | 268 | ||
@@ -413,31 +401,11 @@ class HomeController extends AbstractAction | @@ -413,31 +401,11 @@ class HomeController extends AbstractAction | ||
413 | 401 | ||
414 | $suggest = \Index\UserModel::getSuggestData($udid, $page, $limit); | 402 | $suggest = \Index\UserModel::getSuggestData($udid, $page, $limit); |
415 | 403 | ||
416 | - print_r($suggest); | ||
417 | $this->_view->display('suggest', array( | 404 | $this->_view->display('suggest', array( |
418 | 'suggestPage' => true, //加载js | 405 | 'suggestPage' => true, //加载js |
419 | 'pageFooter' => true, | 406 | 'pageFooter' => true, |
420 | 'suggest' => true, | 407 | 'suggest' => true, |
421 | - 'suggestContent' => array( | ||
422 | - 0 => array( | ||
423 | - 'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240', | ||
424 | - 'title' => '为什么手机不能退换货?', | ||
425 | - 'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。', | ||
426 | - 'good' => true, | ||
427 | - 'bad' => false), | ||
428 | - 1 => array( | ||
429 | - 'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240', | ||
430 | - 'title' => '为什么手机不能退换货?', | ||
431 | - 'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。', | ||
432 | - 'good' => false, | ||
433 | - 'bad' => true), | ||
434 | - 2 => array( | ||
435 | - 'imgUrl' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/12/06/0115bdfeb4a7dca4b4bfdf0e850f82f2a1.jpg?imageView/2/w/640/h/240', | ||
436 | - 'title' => '为什么手机不能退换货?', | ||
437 | - 'content' => 'YOHO!有货的退换货承诺:自您签收商品7日内可以退货,15日内可以换货,在商品吊牌、标签、包装完整,不影响二次销售的情况下,YOHO!有货将为您办理退换货服务。', | ||
438 | - 'good' => false, | ||
439 | - 'bad' => false) | ||
440 | - ) | 408 | + 'suggestContent' => $suggest |
441 | )); | 409 | )); |
442 | } | 410 | } |
443 | 411 |
-
Please register or login to post a comment