Kaynağa Gözat

判断是否签到

zhanghui 2 yıl önce
ebeveyn
işleme
0e5def8669
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  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(){