Authored by yangyang

增加url链接

@@ -101,19 +101,16 @@ class ShopModel @@ -101,19 +101,16 @@ class ShopModel
101 array('href'=> '', 'name' => $data['brandIntro']['brandName'], 'title' => $data['brandIntro']['brandName']) 101 array('href'=> '', 'name' => $data['brandIntro']['brandName'], 'title' => $data['brandIntro']['brandName'])
102 ) 102 )
103 ); 103 );
104 - 104 + //print_r($result['opts']);
105 $sort = self::getSort($res['sort'], $parameters['options']['misort'], $shopId); 105 $sort = self::getSort($res['sort'], $parameters['options']['misort'], $shopId);
106 $searchCondition['userInput'] = empty($searchCondition['userInput']) ? array() : $searchCondition['userInput']; 106 $searchCondition['userInput'] = empty($searchCondition['userInput']) ? array() : $searchCondition['userInput'];
107 $param = array_merge($searchCondition['userInput'], array('navBar' => 1)); 107 $param = array_merge($searchCondition['userInput'], array('navBar' => 1));
108 $data['allGoods']['list'] = $result['goods']; 108 $data['allGoods']['list'] = $result['goods'];
109 - $data['allGoods']['navs'][] = array(  
110 - 'name' => 'MORE',  
111 - 'href' => self::$shopListUrl  
112 - );  
113 $data['allGoods']['name'] = '全部商品 ALL'; 109 $data['allGoods']['name'] = '全部商品 ALL';
114 $data['allGoods']['opts'] = $result['opts']; 110 $data['allGoods']['opts'] = $result['opts'];
115 $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : ''; 111 $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : '';
116 $data['allGoods']['goodsMenu']['menuList'] = $sort; 112 $data['allGoods']['goodsMenu']['menuList'] = $sort;
  113 + $data['allGoods']['goodsMenu']['url'] = self::$shopListUrl . '?'.http_build_query($param);
117 $data['allGoods']['href'] = self::$shopListUrl . '?'.http_build_query($param); 114 $data['allGoods']['href'] = self::$shopListUrl . '?'.http_build_query($param);
118 115
119 return $data; 116 return $data;