Authored by 郭成尧

del-decodeuricom

... ... @@ -20,7 +20,7 @@ const list = (req, res, next) => {
cartUrl: helpers.urlFormat('/cart/index/index')
}, req.query);
let title = '';
let query = req.query.query ? decodeURIComponent(req.query.query) : '';
let query = req.query.query;
let isQueryFirstClass = false; // 标识用户搜的是不是一级品类
let isQuerySecondClass = false; // 标识用户搜的是不是二级品类
let domain = null;
... ...
... ... @@ -8,8 +8,7 @@ var $ = require('yoho-jquery'),
security = require('../../plugin/security'),
tip = require('../../plugin/tip'),
Hammer = require('yoho-hammer'),
dialog = require('../../plugin/dialog'),
Swiper = require('yoho-swiper');
dialog = require('../../plugin/dialog');
var $input = $('#search-input input');
... ... @@ -30,7 +29,7 @@ var writeSearch = require('./write-search');
var ranToken = writeSearch.getRanToken();
var historyval = writeSearch.getHistoryval();
var chHammer, cHammer, navSwiper;
var chHammer, cHammer;
var C_ID, POS_ID, FLR_INDEX, prdLoad, querys, prdids = [];
... ... @@ -212,8 +211,9 @@ $('.search-items .search-group').on('click', 'li', function(event) {
$('.hot-term').on('click', function(event) {
var Hotquery = '';
POS_ID = 2;
FLR_INDEX = 2;
POS_ID = 2;
FLR_INDEX = 2;
if (event.target.nodeName === 'A') {
Hotquery = $(event.target).html();
... ... @@ -236,7 +236,7 @@ $('.hot-term').on('click', function(event) {
}
goSearch(Hotquery);
})
});
inputAction();
... ...