| | |
| | | }, |
| | | touchmove(e) { |
| | | var touchMove = e.detail.scrollTop; |
| | | if(touchMove - touchDot > 60){ |
| | | // this.setData({ showCate: false }) |
| | | if(touchMove - touchDot > 16){ |
| | | touchDot = touchMove |
| | | this.fadeOut(); |
| | | } |
| | | if(touchDot - touchMove > 60){ |
| | | this.fadeIn(); |
| | | this.setData({ showCate: true }) |
| | | if(touchDot - touchMove > 20){ |
| | | setTimeout(() => { |
| | | this.setData({ showCate: true }) |
| | | this.fadeIn(); |
| | | },200) |
| | | } |
| | | }, |
| | | fadeIn: function () { |
| | |
| | | }); |
| | | setTimeout(() => { |
| | | this.setData({ showCate: false }); |
| | | }, 500); // 动画持续时间 |
| | | }, 200); // 动画持续时间 |
| | | }, |
| | | onShow() { |
| | | refreshEnjoy(this) |