Authored by 周少峰

价格排序按钮

@@ -1157,7 +1157,6 @@ class HelperSearch @@ -1157,7 +1157,6 @@ class HelperSearch
1157 'activities_id_desc' => 'activities.activity_id:desc', 1157 'activities_id_desc' => 'activities.activity_id:desc',
1158 'activities_id_asc' => 'activities.activity_id:asc', 1158 'activities_id_asc' => 'activities.activity_id:asc',
1159 ); 1159 );
1160 -  
1161 $param = array(); 1160 $param = array();
1162 $param['status'] = 1; // 是否上架,1表示在架,2表示不在 1161 $param['status'] = 1; // 是否上架,1表示在架,2表示不在
1163 $param['sales'] = 'Y'; // 只搜索销售的产品 1162 $param['sales'] = 'Y'; // 只搜索销售的产品
@@ -1182,7 +1181,6 @@ class HelperSearch @@ -1182,7 +1181,6 @@ class HelperSearch
1182 if (!empty($condition)) { 1181 if (!empty($condition)) {
1183 $param += $condition; 1182 $param += $condition;
1184 } 1183 }
1185 -  
1186 return Yohobuy::httpBuildQuery(self::getUrl(), $param); 1184 return Yohobuy::httpBuildQuery(self::getUrl(), $param);
1187 } 1185 }
1188 1186
@@ -1218,8 +1216,8 @@ class HelperSearch @@ -1218,8 +1216,8 @@ class HelperSearch
1218 } 1216 }
1219 1217
1220 /** 1218 /**
1221 - * 并行调接口url获取(获取品牌数据)  
1222 - */ 1219 + * 并行调接口url获取(获取品牌数据)
  1220 + */
1223 public static function getBrandUrl($customOptions = array()) 1221 public static function getBrandUrl($customOptions = array())
1224 { 1222 {
1225 // 构建必传参数 1223 // 构建必传参数
@@ -1312,8 +1310,8 @@ class HelperSearch @@ -1312,8 +1310,8 @@ class HelperSearch
1312 elseif ($type == 'shop') { 1310 elseif ($type == 'shop') {
1313 return 'http://101.200.31.165/yohosearch/shops.json'; 1311 return 'http://101.200.31.165/yohosearch/shops.json';
1314 } 1312 }
1315 - return 'http://101.200.31.165/yohosearch/search.json';  
1316 -// return 'http://192.168.10.64:8080/yohosearch/search-once.json'; 1313 +// return 'http://101.200.31.165/yohosearch/search.json';
  1314 + return 'http://192.168.10.64:8080/yohosearch/search-once.json';
1317 } 1315 }
1318 } 1316 }
1319 1317
@@ -129,7 +129,6 @@ class SearchModel @@ -129,7 +129,6 @@ class SearchModel
129 $data['condition'] = $condition; 129 $data['condition'] = $condition;
130 $data['sortCondition'] = $sortCondition; 130 $data['sortCondition'] = $sortCondition;
131 $data['options'] = $options; 131 $data['options'] = $options;
132 -  
133 return $data; 132 return $data;
134 } 133 }
135 134
@@ -49,10 +49,7 @@ class ListController extends WebAction @@ -49,10 +49,7 @@ class ListController extends WebAction
49 */ 49 */
50 public function saleAction() 50 public function saleAction()
51 { 51 {
52 - //排序  
53 - $condition['order'] = 's_n_desc';  
54 - //打折  
55 - $condition['p_d'] = '0,0.9'; 52 + $condition = array();
56 $list = SearchModel::getListData($condition); 53 $list = SearchModel::getListData($condition);
57 $data = array( 54 $data = array(
58 //初始化js 55 //初始化js