Authored by 郭成尧

Revert "ajax-params-handle"

This reverts commit bcef2bf8.
@@ -13,7 +13,6 @@ const _ = require('lodash'); @@ -13,7 +13,6 @@ const _ = require('lodash');
13 const helpers = global.yoho.helpers; 13 const helpers = global.yoho.helpers;
14 const searchProcess = require(`${utils}/search-process`); 14 const searchProcess = require(`${utils}/search-process`);
15 const productProcess = require(`${utils}/product-process`); 15 const productProcess = require(`${utils}/product-process`);
16 -const listParamsProcess = require(`${utils}/list-params-process`);  
17 const co = require('bluebird').coroutine; 16 const co = require('bluebird').coroutine;
18 17
19 /** 18 /**
@@ -219,11 +218,7 @@ exports.search = (req, res, next) => { @@ -219,11 +218,7 @@ exports.search = (req, res, next) => {
219 res.setHeader('Access-Control-Allow-Origin', allowOrigin); 218 res.setHeader('Access-Control-Allow-Origin', allowOrigin);
220 res.setHeader('Access-Control-Allow-Credentials', 'true'); 219 res.setHeader('Access-Control-Allow-Credentials', 'true');
221 220
222 - let currentUrlParams = listParamsProcess.getParams(req.query.currentUrl);  
223 -  
224 - delete req.query.currentUrl;  
225 -  
226 - let params = Object.assign({}, req.query, currentUrlParams); 221 + let params = Object.assign({}, req.query);
227 let uid = req.user.uid || 0; 222 let uid = req.user.uid || 0;
228 223
229 if (uid) { 224 if (uid) {
@@ -527,9 +527,7 @@ function search(opt) { @@ -527,9 +527,7 @@ function search(opt) {
527 params.categoryId = categoryId; 527 params.categoryId = categoryId;
528 } 528 }
529 529
530 - $.extend(setting, defaultOpt, params, {  
531 - currentUrl: location.pathname  
532 - }); 530 + $.extend(setting, defaultOpt, params);
533 searching = true; 531 searching = true;
534 loading.showLoadingMask(); 532 loading.showLoadingMask();
535 533