Authored by 阿达

gulp ge

... ... @@ -659,8 +659,9 @@ function bindWirteLocal($brandList, list) {
}
if (localStorage) {
historys = localStorage.getItem('historys-brand');
if (isLocalStorageSupported) {
historys = localStorage.getItem('historys-brand');
}
historys = historys ? historys : '';
... ... @@ -749,15 +750,11 @@ function searchResult() {
// 插入 dom,绑定事件
$('.search-result').html(html);
changeBackground();
if (isLocalStorageSupported) {
bindWirteLocal($('.brand-list'), true);
}
bindWirteLocal($('.brand-list'), true);
}
loading.showLoadingMask();
lazyLoad($('img.lazy'));
$('.yoho-header').css({
'z-index': 2,
... ... @@ -988,7 +985,9 @@ if ($('.brand-search-page').length > 0) {
if (localStorage) {
historys = localStorage.getItem('historys-brand');
if (isLocalStorageSupported) {
historys = localStorage.getItem('historys-brand');
}
if (historys && historys.length > 0) {
historys = historys.split(ranToken);
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
... ... @@ -241,7 +241,6 @@ function searchResult() {
// 插入 dom,绑定事件
$('.search-result').html(html);
changeBackground();
bindWirteLocal($('.brand-list'), true);
}
... ...