Authored by 郭成尧

Revert "ajax-params-handle"

This reverts commit bcef2bf8.
... ... @@ -13,7 +13,6 @@ const _ = require('lodash');
const helpers = global.yoho.helpers;
const searchProcess = require(`${utils}/search-process`);
const productProcess = require(`${utils}/product-process`);
const listParamsProcess = require(`${utils}/list-params-process`);
const co = require('bluebird').coroutine;
/**
... ... @@ -219,11 +218,7 @@ exports.search = (req, res, next) => {
res.setHeader('Access-Control-Allow-Origin', allowOrigin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
let currentUrlParams = listParamsProcess.getParams(req.query.currentUrl);
delete req.query.currentUrl;
let params = Object.assign({}, req.query, currentUrlParams);
let params = Object.assign({}, req.query);
let uid = req.user.uid || 0;
if (uid) {
... ...
... ... @@ -527,9 +527,7 @@ function search(opt) {
params.categoryId = categoryId;
}
$.extend(setting, defaultOpt, params, {
currentUrl: location.pathname
});
$.extend(setting, defaultOpt, params);
searching = true;
loading.showLoadingMask();
... ...