...
|
...
|
@@ -295,9 +295,6 @@ myScroll.on('scroll', function() { |
|
|
}
|
|
|
|
|
|
if (sTop < scH) {
|
|
|
// console.log(sTop);
|
|
|
// console.log(scH);
|
|
|
|
|
|
if (!$nav2.hasClass('fixed-top')) {
|
|
|
$nav2.addClass('fixed-top')
|
|
|
.removeClass('absolute')
|
...
|
...
|
@@ -416,7 +413,6 @@ function search(opt) { |
|
|
nav = navInfo[navType];
|
|
|
|
|
|
page = nav.page + 1;
|
|
|
console.log(page)
|
|
|
if (nav.reload) {
|
|
|
page = 1;
|
|
|
} else if (nav.end) {
|
...
|
...
|
@@ -431,8 +427,6 @@ function search(opt) { |
|
|
page: page
|
|
|
});
|
|
|
|
|
|
console.log(page)
|
|
|
|
|
|
searching = true;
|
|
|
loading.showLoadingMask();
|
|
|
|
...
|
...
|
@@ -745,10 +739,8 @@ function postCollect(info) { |
|
|
|
|
|
if (data.code === 200){
|
|
|
if ($('#collect').hasClass('alreadyCollect')) {
|
|
|
console.log(1)
|
|
|
$('#collect').attr('class', 'notCollect');
|
|
|
}else{
|
|
|
console.log(0)
|
|
|
$('#collect').attr('class', 'alreadyCollect');
|
|
|
}
|
|
|
}
|
...
|
...
|
|