Showing
1 changed file
with
2 additions
and
2 deletions
@@ -72,11 +72,11 @@ function setIndexAction() { | @@ -72,11 +72,11 @@ function setIndexAction() { | ||
72 | $loadingTip = $('.loading-tip'), | 72 | $loadingTip = $('.loading-tip'), |
73 | $avatarWrap = $('.avatar-wrap'), | 73 | $avatarWrap = $('.avatar-wrap'), |
74 | avatarHeight = $('.avatar').height(), | 74 | avatarHeight = $('.avatar').height(), |
75 | - infoTop = parseInt($('.star-info').css('margin-top')); | 75 | + infoTop = $('.star-info').css('margin-top'); |
76 | 76 | ||
77 | // 下拉刷新,上拉加载 | 77 | // 下拉刷新,上拉加载 |
78 | starIScroll = new PullRefresh('.star-wrap', { | 78 | starIScroll = new PullRefresh('.star-wrap', { |
79 | - height: $(window).height() - commonHeaderTop - avatarHeight - infoTop * 2, | 79 | + height: $(window).height() - commonHeaderTop - avatarHeight - parseInt(infoTop) * 2, |
80 | pullDown: function() { | 80 | pullDown: function() { |
81 | if (!stopLoading) { | 81 | if (!stopLoading) { |
82 | stopLoading = true; | 82 | stopLoading = true; |
-
Please register or login to post a comment