Authored by 郭成尧

del-decodeuricom

@@ -20,7 +20,7 @@ const list = (req, res, next) => { @@ -20,7 +20,7 @@ const list = (req, res, next) => {
20 cartUrl: helpers.urlFormat('/cart/index/index') 20 cartUrl: helpers.urlFormat('/cart/index/index')
21 }, req.query); 21 }, req.query);
22 let title = ''; 22 let title = '';
23 - let query = req.query.query ? decodeURIComponent(req.query.query) : ''; 23 + let query = req.query.query;
24 let isQueryFirstClass = false; // 标识用户搜的是不是一级品类 24 let isQueryFirstClass = false; // 标识用户搜的是不是一级品类
25 let isQuerySecondClass = false; // 标识用户搜的是不是二级品类 25 let isQuerySecondClass = false; // 标识用户搜的是不是二级品类
26 let domain = null; 26 let domain = null;
@@ -8,8 +8,7 @@ var $ = require('yoho-jquery'), @@ -8,8 +8,7 @@ var $ = require('yoho-jquery'),
8 security = require('../../plugin/security'), 8 security = require('../../plugin/security'),
9 tip = require('../../plugin/tip'), 9 tip = require('../../plugin/tip'),
10 Hammer = require('yoho-hammer'), 10 Hammer = require('yoho-hammer'),
11 - dialog = require('../../plugin/dialog'),  
12 - Swiper = require('yoho-swiper'); 11 + dialog = require('../../plugin/dialog');
13 12
14 var $input = $('#search-input input'); 13 var $input = $('#search-input input');
15 14
@@ -30,7 +29,7 @@ var writeSearch = require('./write-search'); @@ -30,7 +29,7 @@ var writeSearch = require('./write-search');
30 var ranToken = writeSearch.getRanToken(); 29 var ranToken = writeSearch.getRanToken();
31 var historyval = writeSearch.getHistoryval(); 30 var historyval = writeSearch.getHistoryval();
32 31
33 -var chHammer, cHammer, navSwiper; 32 +var chHammer, cHammer;
34 33
35 var C_ID, POS_ID, FLR_INDEX, prdLoad, querys, prdids = []; 34 var C_ID, POS_ID, FLR_INDEX, prdLoad, querys, prdids = [];
36 35
@@ -212,6 +211,7 @@ $('.search-items .search-group').on('click', 'li', function(event) { @@ -212,6 +211,7 @@ $('.search-items .search-group').on('click', 'li', function(event) {
212 211
213 $('.hot-term').on('click', function(event) { 212 $('.hot-term').on('click', function(event) {
214 var Hotquery = ''; 213 var Hotquery = '';
  214 +
215 POS_ID = 2; 215 POS_ID = 2;
216 FLR_INDEX = 2; 216 FLR_INDEX = 2;
217 217
@@ -236,7 +236,7 @@ $('.hot-term').on('click', function(event) { @@ -236,7 +236,7 @@ $('.hot-term').on('click', function(event) {
236 } 236 }
237 237
238 goSearch(Hotquery); 238 goSearch(Hotquery);
239 -}) 239 +});
240 240
241 inputAction(); 241 inputAction();
242 242