Authored by yangyang

广告位格式调整

@@ -1097,12 +1097,15 @@ class HelperSearch @@ -1097,12 +1097,15 @@ class HelperSearch
1097 1097
1098 $pattern = "/[img|IMG].*?src=['|\"](.*?(?:[.gif|.jpg]))['|\"].*?[\/]?>/"; 1098 $pattern = "/[img|IMG].*?src=['|\"](.*?(?:[.gif|.jpg]))['|\"].*?[\/]?>/";
1099 preg_match_all($pattern,$string,$img); 1099 preg_match_all($pattern,$string,$img);
1100 -  
1101 - foreach($href[1] as $key=>$vo){  
1102 - $result[$key]['href'] = $vo;  
1103 - $result[$key]['src'] = $img[1][$key]; 1100 + foreach($img[1] as $key=>$vo){
  1101 + if(strrchr($vo, '.swf') == '.swf'){
  1102 + $result[$key]['isVedio'] = true;
  1103 + $result[$key]['src'] = $vo;
  1104 + }else{
  1105 + $result[$key]['href'] = $href[1][$key];
  1106 + $result[$key]['src'] = $vo;
  1107 + }
1104 } 1108 }
1105 -  
1106 return $result; 1109 return $result;
1107 } 1110 }
1108 } 1111 }
@@ -47,6 +47,7 @@ class IndexController extends WebAction @@ -47,6 +47,7 @@ class IndexController extends WebAction
47 $options['brandNameCn'] = isset($result['brandNameCn']) ? $result['brandNameCn'] : ''; 47 $options['brandNameCn'] = isset($result['brandNameCn']) ? $result['brandNameCn'] : '';
48 $options['reviewNum'] = 6; 48 $options['reviewNum'] = 6;
49 $options['controller'] = $this->_request->controller; 49 $options['controller'] = $this->_request->controller;
  50 + $options['action'] = $this->_request->action;
50 51
51 //调用模型获得数据 52 //调用模型获得数据
52 $data = BrandsModel::getBrandSearchData($condition, $options); 53 $data = BrandsModel::getBrandSearchData($condition, $options);
@@ -92,6 +93,7 @@ class IndexController extends WebAction @@ -92,6 +93,7 @@ class IndexController extends WebAction
92 $options['brandBanner'] = isset($result['brandBanner']) ? $result['brandBanner'] : ''; 93 $options['brandBanner'] = isset($result['brandBanner']) ? $result['brandBanner'] : '';
93 $options['brandAbout'] = isset($result['brandAbout']) ? $result['brandAbout'] : ''; 94 $options['brandAbout'] = isset($result['brandAbout']) ? $result['brandAbout'] : '';
94 $options['controller'] = $this->_request->controller; 95 $options['controller'] = $this->_request->controller;
  96 + $options['action'] = $this->_request->action;
95 //调用模型获得数据 97 //调用模型获得数据
96 $data = Product\BrandsModel::getBrandIntro($condition, $options); 98 $data = Product\BrandsModel::getBrandIntro($condition, $options);
97 99
@@ -13,7 +13,8 @@ class ListController extends WebAction @@ -13,7 +13,8 @@ class ListController extends WebAction
13 $options = array( 13 $options = array(
14 'positionId' => $positionId, 14 'positionId' => $positionId,
15 'reviewNum' => 6, 15 'reviewNum' => 6,
16 - 'controller' => $this->_request->controller 16 + 'controller' => $this->_request->controller,
  17 + 'action' => $this->_request->action
17 ); 18 );
18 19
19 $indexData = Product\IndexModel::getIndexData($condition, $options); 20 $indexData = Product\IndexModel::getIndexData($condition, $options);
@@ -43,7 +44,8 @@ class ListController extends WebAction @@ -43,7 +44,8 @@ class ListController extends WebAction
43 $data = array( 44 $data = array(
44 'productListPage' => true, 45 'productListPage' => true,
45 'newSale' => $newData, 46 'newSale' => $newData,
46 - 'controller' => $this->_request->controller 47 + 'controller' => $this->_request->controller,
  48 + 'action' => $this->_request->action
47 ); 49 );
48 $this->setWebNavHeader(); 50 $this->setWebNavHeader();
49 //渲染模板 51 //渲染模板
@@ -61,7 +63,8 @@ class ListController extends WebAction @@ -61,7 +63,8 @@ class ListController extends WebAction
61 //初始化js 63 //初始化js
62 'productListPage' => true, 64 'productListPage' => true,
63 'list' => $list, 65 'list' => $list,
64 - 'controller' => $this->_request->controller 66 + 'controller' => $this->_request->controller,
  67 + 'action' => $this->_request->action
65 ); 68 );
66 $this->setWebNavHeader(); 69 $this->setWebNavHeader();
67 $this->_view->display('list', $data); 70 $this->_view->display('list', $data);
@@ -41,6 +41,7 @@ class SaleController extends WebAction @@ -41,6 +41,7 @@ class SaleController extends WebAction
41 41
42 $options = array( 42 $options = array(
43 'controller' => $this->_request->controller, 43 'controller' => $this->_request->controller,
  44 + 'action' => $this->_request->action,
44 'reviewNum' => 6 45 'reviewNum' => 6
45 ); 46 );
46 47