...
|
...
|
@@ -7,6 +7,7 @@ |
|
|
var $ = require('jquery'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
tip = require('../plugin/tip'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
|
|
|
|
|
var navHammer,
|
...
|
...
|
@@ -65,7 +66,7 @@ if (lifestyleType) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//loading.init($('.maybe-like'));
|
|
|
loading.init($('.maybe-like'));
|
|
|
|
|
|
function search() {
|
|
|
if (searching) {
|
...
|
...
|
@@ -73,7 +74,7 @@ function search() { |
|
|
}
|
|
|
searching = true;
|
|
|
|
|
|
//loading.showLoadingMask();
|
|
|
loading.showLoadingMask();
|
|
|
|
|
|
//num = $goodList.find('.good-info').length;
|
|
|
$.ajax({
|
...
|
...
|
@@ -123,15 +124,13 @@ function search() { |
|
|
}
|
|
|
|
|
|
searching = false;
|
|
|
|
|
|
//loading.hideLoadingMask();
|
|
|
loading.hideLoadingMask();
|
|
|
page++;
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
|
|
searching = false;
|
|
|
|
|
|
//loading.hideLoadingMask();
|
|
|
loading.hideLoadingMask();
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|