瀏覽代碼

判断是否签到

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