Authored by 周少峰

Merge branch 'feature/mBrandShop' of http://git.dev.yoho.cn/web/yohobuywap into feature/mBrandShop

1.13 KB | W: | H:

1.61 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.66 KB | W: | H:

8.53 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -59,11 +59,10 @@ @@ -59,11 +59,10 @@
59 59
60 .primary-level-trilangle{ 60 .primary-level-trilangle{
61 float: right; 61 float: right;
62 - background: url('product/arrow.png');  
63 - margin-top: 14px;  
64 - width: 21px;  
65 - height: 60px;  
66 - background-repeat: no-repeat; 62 + background: url(/product/arrow.png) no-repeat;
  63 + margin-top: 22px;
  64 + width: 20px;
  65 + height: 46px;
67 } 66 }
68 67
69 .trilanglefont { 68 .trilanglefont {
@@ -2,10 +2,9 @@ @@ -2,10 +2,9 @@
2 2
3 use Action\AbstractAction; 3 use Action\AbstractAction;
4 use LibModels\Wap\Product\SaleData; 4 use LibModels\Wap\Product\SaleData;
5 -use Plugin\Helpers;  
6 use LibModels\Wap\Product\ShopData; 5 use LibModels\Wap\Product\ShopData;
  6 +use Plugin\Helpers;
7 use Product\ListModel; 7 use Product\ListModel;
8 -use Plugin\Mobile;  
9 8
10 /** 9 /**
11 * 商品列表相关的控制器 10 * 商品列表相关的控制器
@@ -376,7 +375,7 @@ class IndexController extends AbstractAction @@ -376,7 +375,7 @@ class IndexController extends AbstractAction
376 if($resource['code'] === 200){ 375 if($resource['code'] === 200){
377 $result = ListModel::brandData($resource['data'],$requestData['shop_id']); 376 $result = ListModel::brandData($resource['data'],$requestData['shop_id']);
378 } 377 }
379 - if(Mobile::isMobile()){ 378 + if($this->isApp()){
380 $this->setTitle('品牌'); 379 $this->setTitle('品牌');
381 }else{ 380 }else{
382 $this->setNavHeader('品牌', true, SITE_MAIN); 381 $this->setNavHeader('品牌', true, SITE_MAIN);
@@ -405,7 +404,7 @@ class IndexController extends AbstractAction @@ -405,7 +404,7 @@ class IndexController extends AbstractAction
405 if ($resource['code'] === 200) { 404 if ($resource['code'] === 200) {
406 $result = ListModel::categoryData($resource['data'],$requestData['shop_id']); 405 $result = ListModel::categoryData($resource['data'],$requestData['shop_id']);
407 } 406 }
408 - if(Mobile::isMobile()){ 407 + if($this->isApp()){
409 $this->setTitle('品类'); 408 $this->setTitle('品类');
410 }else{ 409 }else{
411 $this->setNavHeader('品类', true, SITE_MAIN); 410 $this->setNavHeader('品类', true, SITE_MAIN);
@@ -434,7 +433,7 @@ class IndexController extends AbstractAction @@ -434,7 +433,7 @@ class IndexController extends AbstractAction
434 if ($resource['code'] === 200) { 433 if ($resource['code'] === 200) {
435 $result = ListModel::introData($resource['data']); 434 $result = ListModel::introData($resource['data']);
436 } 435 }
437 - if(Mobile::isMobile()){ 436 + if($this->isApp()){
438 $this->setTitle('店铺简介'); 437 $this->setTitle('店铺简介');
439 }else{ 438 }else{
440 $this->setNavHeader('店铺简介', true, SITE_MAIN); 439 $this->setNavHeader('店铺简介', true, SITE_MAIN);
@@ -470,6 +469,15 @@ class IndexController extends AbstractAction @@ -470,6 +469,15 @@ class IndexController extends AbstractAction
470 } 469 }
471 470
472 /** 471 /**
  472 + * 判断是不是APP
  473 + *
  474 + * @return bool
  475 + */
  476 + public function isApp(){
  477 + return !empty($this->get('app_version'));
  478 + }
  479 +
  480 + /**
473 * 店铺上新 481 * 店铺上新
474 */ 482 */
475 public function shopNewPro() 483 public function shopNewPro()