Authored by Lynnic

update

1 { 1 {
2 "name": "yohobuy", 2 "name": "yohobuy",
3 - "version": "1.1.9a", 3 + "version": "1.2.0",
4 "description": "yohobuy statics", 4 "description": "yohobuy statics",
5 "keywords": [], 5 "keywords": [],
6 "homepage": "", 6 "homepage": "",
@@ -88,7 +88,7 @@ a { @@ -88,7 +88,7 @@ a {
88 } 88 }
89 89
90 .yoho-tip { 90 .yoho-tip {
91 - position: absolute; 91 + position: fixed;
92 display: none; 92 display: none;
93 text-align: center; 93 text-align: center;
94 width: 70%; 94 width: 70%;
1 <?php 1 <?php
2 2
3 use Action\AbstractAction; 3 use Action\AbstractAction;
4 -use home\GradeModel;  
5 -use home\OrderModel;  
6 use Plugin\Helpers; 4 use Plugin\Helpers;
7 use LibModels\Wap\Home\OrderData; 5 use LibModels\Wap\Home\OrderData;
8 6
@@ -272,7 +270,7 @@ class HomeController extends AbstractAction @@ -272,7 +270,7 @@ class HomeController extends AbstractAction
272 $this->setTitle('在线客服'); 270 $this->setTitle('在线客服');
273 $this->setNavHeader('在线客服', true, SITE_MAIN); 271 $this->setNavHeader('在线客服', true, SITE_MAIN);
274 272
275 - $service = home\OnlineModel::getOnlineServiceInfo(); 273 + $service = Home\OnlineModel::getOnlineServiceInfo();
276 274
277 $this->_view->display('online-service', array( 275 $this->_view->display('online-service', array(
278 'onlineServicePage' => true, 276 'onlineServicePage' => true,
@@ -288,7 +286,7 @@ class HomeController extends AbstractAction @@ -288,7 +286,7 @@ class HomeController extends AbstractAction
288 $cateId = $this->get('cateId', 0); 286 $cateId = $this->get('cateId', 0);
289 $cateName = $this->get('cateName', ''); 287 $cateName = $this->get('cateName', '');
290 if ($cateId > 0) { 288 if ($cateId > 0) {
291 - $service = home\OnlineModel::getOnlineServiceDetail($cateId); 289 + $service = Home\OnlineModel::getOnlineServiceDetail($cateId);
292 } 290 }
293 $this->setTitle('在线客服'); 291 $this->setTitle('在线客服');
294 $this->setNavHeader($cateName, true, ''); 292 $this->setNavHeader($cateName, true, '');
@@ -305,7 +303,7 @@ class HomeController extends AbstractAction @@ -305,7 +303,7 @@ class HomeController extends AbstractAction
305 $uid = $this->getUid(); 303 $uid = $this->getUid();
306 $gender = Helpers::getGenderByCookie(); 304 $gender = Helpers::getGenderByCookie();
307 $yh_channel = Helpers::getChannelByCookie(); 305 $yh_channel = Helpers::getChannelByCookie();
308 - $guangInfo = \home\GuangModel::getMyGuang($uid, $page, $yh_channel, $gender, $limit); 306 + $guangInfo = \Home\GuangModel::getMyGuang($uid, $page, $yh_channel, $gender, $limit);
309 $totalPage = $guangInfo['totalPage']; 307 $totalPage = $guangInfo['totalPage'];
310 unset($guangInfo['totalPage']); 308 unset($guangInfo['totalPage']);
311 if ($page == 1) { 309 if ($page == 1) {
@@ -419,7 +417,7 @@ class HomeController extends AbstractAction @@ -419,7 +417,7 @@ class HomeController extends AbstractAction
419 $gender = Helpers::getGenderByCookie(); 417 $gender = Helpers::getGenderByCookie();
420 $channel = Helpers::getChannelByCookie(); 418 $channel = Helpers::getChannelByCookie();
421 $uid = $this->getUid(); 419 $uid = $this->getUid();
422 - $data = GradeModel::getGrade($gender, $channel, $uid); 420 + $data = \Home\GradeModel::getGrade($gender, $channel, $uid);
423 $data['pageFooter'] = true; 421 $data['pageFooter'] = true;
424 $this->_view->display('vip-grade', $data); 422 $this->_view->display('vip-grade', $data);
425 } 423 }
@@ -427,7 +425,6 @@ class HomeController extends AbstractAction @@ -427,7 +425,6 @@ class HomeController extends AbstractAction
427 /* 425 /*
428 * 会员特权查看页 426 * 会员特权查看页
429 */ 427 */
430 -  
431 public function preferentialAction() 428 public function preferentialAction()
432 { 429 {
433 //设置网站seo信息 430 //设置网站seo信息
@@ -437,22 +434,22 @@ class HomeController extends AbstractAction @@ -437,22 +434,22 @@ class HomeController extends AbstractAction
437 434
438 $channel = Helpers::getChannelByCookie(); 435 $channel = Helpers::getChannelByCookie();
439 $uid = $this->getUid(); 436 $uid = $this->getUid();
440 - $data = GradeModel::getPreferential($channel, $uid); 437 + $data = \Home\GradeModel::getPreferential($channel, $uid);
441 $data['pageFooter'] = true; 438 $data['pageFooter'] = true;
  439 +
442 $this->_view->display('privilege', $data); 440 $this->_view->display('privilege', $data);
443 } 441 }
444 442
445 /* 443 /*
446 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders) 444 * 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders)
447 */ 445 */
448 -  
449 public function orderAction() 446 public function orderAction()
450 { 447 {
451 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。 448 //获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。
452 $type = $this->get('type', 1); 449 $type = $this->get('type', 1);
453 $this->setTitle('我的订单'); 450 $this->setTitle('我的订单');
454 $this->setNavHeader('我的订单'); 451 $this->setNavHeader('我的订单');
455 - $data = OrderModel::getNavs($type); 452 + $data = \Home\OrderModel::getNavs($type);
456 if (!empty($data)) { 453 if (!empty($data)) {
457 $order['navs'] = $data; 454 $order['navs'] = $data;
458 } else { 455 } else {
@@ -481,7 +478,7 @@ class HomeController extends AbstractAction @@ -481,7 +478,7 @@ class HomeController extends AbstractAction
481 $yh_channel = $this->get('yh_channel', 1); 478 $yh_channel = $this->get('yh_channel', 1);
482 $uid = $this->getUid(); 479 $uid = $this->getUid();
483 //调用模型层getOrder方法获得并处理数据 480 //调用模型层getOrder方法获得并处理数据
484 - $data = OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid); 481 + $data = \Home\OrderModel::getOrder($type, $page, $limit, $gender, $yh_channel, $uid);
485 /* 如果取不到订单数据时,分两种情况: 482 /* 如果取不到订单数据时,分两种情况:
486 1、page>1时,echo一个空格字符串到浏览器。 483 1、page>1时,echo一个空格字符串到浏览器。
487 2、page=1时,就给一个随便逛逛的链接。 484 2、page=1时,就给一个随便逛逛的链接。
@@ -518,7 +515,7 @@ class HomeController extends AbstractAction @@ -518,7 +515,7 @@ class HomeController extends AbstractAction
518 $yh_channel = $this->get('yh_channel', 1); 515 $yh_channel = $this->get('yh_channel', 1);
519 $method = 'app.SpaceOrders.close'; 516 $method = 'app.SpaceOrders.close';
520 //调用取消订单接口,返回订单取消状态 517 //调用取消订单接口,返回订单取消状态
521 - $data = OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method); 518 + $data = \Home\OrderData::cancelOrderData($order_code, $uid, $gender, $yh_channel, $method);
522 //将取消状态返回至浏览器 519 //将取消状态返回至浏览器
523 $this->echoJson($data); 520 $this->echoJson($data);
524 } 521 }
@@ -540,7 +537,7 @@ class HomeController extends AbstractAction @@ -540,7 +537,7 @@ class HomeController extends AbstractAction
540 $yh_channel = $this->get('yh_channel', 1); 537 $yh_channel = $this->get('yh_channel', 1);
541 $method = 'app.SpaceOrders.delOrderByCode'; 538 $method = 'app.SpaceOrders.delOrderByCode';
542 //调用接口删除订单,并返回订单删除状态 539 //调用接口删除订单,并返回订单删除状态
543 - $data = OrderData::deleteOrderData($order_code, $uid, $gender, $yh_channel, $method); 540 + $data = \Home\OrderData::deleteOrderData($order_code, $uid, $gender, $yh_channel, $method);
544 //将订单删除状态返回至浏览器 541 //将订单删除状态返回至浏览器
545 $this->echoJson($data); 542 $this->echoJson($data);
546 } 543 }
@@ -553,7 +550,7 @@ class HomeController extends AbstractAction @@ -553,7 +550,7 @@ class HomeController extends AbstractAction
553 { 550 {
554 $gender = Helpers::getGenderByCookie(); 551 $gender = Helpers::getGenderByCookie();
555 $yh_channel = $this->get('yh_channel', 1); 552 $yh_channel = $this->get('yh_channel', 1);
556 - OrderModel::payment($gender, $yh_channel); 553 + \Home\OrderModel::payment($gender, $yh_channel);
557 } 554 }
558 555
559 /* 556 /*
@@ -566,7 +563,7 @@ class HomeController extends AbstractAction @@ -566,7 +563,7 @@ class HomeController extends AbstractAction
566 $gender = Helpers::getGenderByCookie(); 563 $gender = Helpers::getGenderByCookie();
567 $yh_channel = $this->get('yh_channel', 1); 564 $yh_channel = $this->get('yh_channel', 1);
568 //调用接口获取随便逛逛url地址,并return数据 565 //调用接口获取随便逛逛url地址,并return数据
569 - $data = OrderModel::stroll($gender, $yh_channel); 566 + $data = \Home\OrderModel::stroll($gender, $yh_channel);
570 return $data; 567 return $data;
571 } 568 }
572 569
1 <?php 1 <?php
2 2
3 -namespace home; 3 +namespace Home;
4 4
5 use LibModels\Wap\Home\OrderData; 5 use LibModels\Wap\Home\OrderData;
6 use Plugin\Helpers; 6 use Plugin\Helpers;
  7 +use Plugin\Cache;
7 use Configs\CacheConfig; 8 use Configs\CacheConfig;
8 9
9 /* 10 /*
@@ -5,7 +5,7 @@ define('SITE_MAIN', 'http://buy.test.yoho.cn'); // 网站主域名 @@ -5,7 +5,7 @@ define('SITE_MAIN', 'http://buy.test.yoho.cn'); // 网站主域名
5 define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名 5 define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
6 define('COOKIE_DOMAIN', '.test.yoho.cn'); // COOKIE作用域 6 define('COOKIE_DOMAIN', '.test.yoho.cn'); // COOKIE作用域
7 define('SUB_DOMAIN', '.test.yoho.cn'); // 子域名后缀 7 define('SUB_DOMAIN', '.test.yoho.cn'); // 子域名后缀
8 -define('USE_CACHE', true); // 缓存的开关 8 +define('USE_CACHE', false); // 缓存的开关
9 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录 9 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
10 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录 10 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
11 defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'testing'); 11 defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'testing');