...
|
...
|
@@ -78,8 +78,6 @@ function setIndexAction() { |
|
|
});
|
|
|
|
|
|
starIScroll.iScroll.on('scrollStart', function() {
|
|
|
$window.trigger('scroll');
|
|
|
|
|
|
// 下拉
|
|
|
if (this.directionY === -1) {
|
|
|
$headTab.slideDown();
|
...
|
...
|
@@ -89,16 +87,14 @@ function setIndexAction() { |
|
|
|
|
|
starIScroll.iScroll.on('scroll', function() {
|
|
|
if (this.startY < -180) {
|
|
|
|
|
|
console.log('111');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
starIScroll.iScroll.on('scrollEnd', function() {
|
|
|
$window.trigger('scroll');
|
|
|
|
|
|
// 上滑
|
|
|
if (this.directionY === 1) {
|
|
|
$headTab.slideUp();
|
|
|
$headTab.slideUp(1000);
|
|
|
}
|
|
|
$loadingTip.slideUp();
|
|
|
});
|
...
|
...
|
@@ -253,13 +249,14 @@ function setIndexAction() { |
|
|
getIndexHtml = function() {
|
|
|
loading.showLoadingMask();
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/guang/star/ajaxIndexHtml',
|
|
|
url: '/guang/star/getIndexHtml',
|
|
|
dataType: 'html',
|
|
|
success: function(data) {
|
|
|
stopLoading = false;
|
|
|
|
|
|
if (data === '') {
|
|
|
console.log(data);
|
|
|
|
|
|
if (!data) {
|
|
|
stopLoading = true;
|
|
|
tip.show('没有更多内容了');
|
|
|
}
|
...
|
...
|
|