Authored by zhangxiaoru

query 解码

@@ -200,7 +200,7 @@ function getQueryString(name) { @@ -200,7 +200,7 @@ function getQueryString(name) {
200 let r = window.location.search.substr(1).match(reg); 200 let r = window.location.search.substr(1).match(reg);
201 201
202 if (r !== null) { 202 if (r !== null) {
203 - return window.unescape(r[2]); 203 + return decodeURIComponent(r[2]);
204 } 204 }
205 return null; 205 return null;
206 } 206 }
@@ -577,7 +577,6 @@ if ($brandHeader.data('isbaseshop') === true) { @@ -577,7 +577,6 @@ if ($brandHeader.data('isbaseshop') === true) {
577 Object.assign(defaultOpt, {shop_id: $brandHeader.data('id')}); 577 Object.assign(defaultOpt, {shop_id: $brandHeader.data('id')});
578 } 578 }
579 579
580 -  
581 $.ajax({ 580 $.ajax({
582 type: 'GET', 581 type: 'GET',
583 url: location.protocol + '//m.yohobuy.com/product/search/filter', 582 url: location.protocol + '//m.yohobuy.com/product/search/filter',