achao hace 2 años
padre
commit
985f11210a
Se han modificado 1 ficheros con 6 adiciones y 12 borrados
  1. 6 12
      xiaochengxu/pages/cardHolder/cardHolder.vue

+ 6 - 12
xiaochengxu/pages/cardHolder/cardHolder.vue

@@ -370,6 +370,7 @@
 					page: {
 						size: 10 // 每页数据的数量,默认10
 					},
+					auto: false,
 					noMoreSize: 1,
 					empty: {
 						tip: '暂无相关数据'
@@ -419,9 +420,6 @@
 					color:'#157DFB'
 				},
 			};
-		},
-		onShow() {
-			
 		},
 		mounted() {
 
@@ -432,9 +430,10 @@
 				this.userInfo = uni.getStorageSync("userInfo")
 				this.$nextTick(function() {
 					this.mescroll.resetUpScroll()
-					// this.canReset && this.mescroll.resetUpScroll() // 重置列表数据为第一页  
-					// this.canReset && this.mescroll.scrollTo(0, 0) // 重置列表数据为第一页时,建议把滚动条也重置到顶部,避免无法再次翻页的问题  
-					// this.canReset = true // 过滤第一次的onShow事件,避免初始化界面时重复触发upCallback, 无需配置auto:false
+					wx.showShareMenu({
+						withShareTicket: true,
+						menus: ["shareAppMessage", "shareTimeline"]
+					})
 				});
 				this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
 			} else {
@@ -450,12 +449,7 @@
 					icon: 'none',
 					duration: 10000
 				});
-			} else {
-				wx.showShareMenu({
-					withShareTicket: true,
-					menus: ["shareAppMessage", "shareTimeline"]
-				})
-			}
+			} 
 
 		},
 		onShareAppMessage(res) {