guhongwei 2 éve
szülő
commit
4bac020084
1 módosított fájl, 3 hozzáadás és 8 törlés
  1. 3 8
      pagesIntegral/order/detail.vue

+ 3 - 8
pagesIntegral/order/detail.vue

@@ -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() {