...
|
...
|
@@ -11,6 +11,7 @@ var $ = require('yoho-jquery'), |
|
|
PullRefresh = require('../plugin/pull-refresh');
|
|
|
|
|
|
var $window = $(window),
|
|
|
$headTab = $('.head-tab'),
|
|
|
$starArticle = $('.star-article');
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -49,8 +50,28 @@ $(function() { |
|
|
starIScroll.iScroll.on('scrollStart', function() {
|
|
|
$window.trigger('scroll');
|
|
|
});
|
|
|
|
|
|
// starIScroll.iScroll.on('scroll', function() {
|
|
|
// var scale = 1;
|
|
|
//
|
|
|
// if (this.y < 0 && this.startY > -40) {
|
|
|
// console.log(headTabHeight + this.startY);
|
|
|
// scale = 2 / headTabHeight;
|
|
|
// }
|
|
|
// $headTab.css({
|
|
|
// transfrom: 'scale(' + scale + ')'
|
|
|
// });
|
|
|
|
|
|
// });
|
|
|
starIScroll.iScroll.on('scrollEnd', function() {
|
|
|
$window.trigger('scroll');
|
|
|
|
|
|
// 上滑
|
|
|
if (this.directionY === 1) {
|
|
|
$headTab.addClass('hide-tab');
|
|
|
} else {
|
|
|
$headTab.removeClass('hide-tab');
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
...
|
...
|
|