소스 검색

判断是否签到

zhanghui 2 년 전
부모
커밋
0e5def8669
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      pages/index/index.vue

+ 4 - 3
pages/index/index.vue

@@ -234,11 +234,12 @@
 			this.storeId = uni.getStorageSync('storeId')
 			this.storeName = uni.getStorageSync('storeName')
 			this.getUserInfo()
-			// this.currServiceInfo()
-
-
 		},
 		onShow() {
+			this.userInfo = uni.getStorageSync('userInfo')
+			if (this.userInfo.signIn){
+				this.currServiceInfo()
+			}
 		},
 		methods: {
 			openSelectServiceObjectPopup(){