@@ -208,14 +208,9 @@
// 计算高度
handleScroll(e) {
const that = this;
- uni.getStorage({
- key: 'token',
- success: function(res) {
- let user = that.$jwt(res.data);
- if (user) that.$set(that, `user`, user);
- },
- fail: function(err) {}
- });
+ let scrollTop = e.detail.scrollTop;
+ that.isShow = scrollTop > 500;
+ that.topItem = '';
},
// 返回顶部
backTop() {