فهرست منبع

判断是否签到

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.storeId = uni.getStorageSync('storeId')
 			this.storeName = uni.getStorageSync('storeName')
 			this.storeName = uni.getStorageSync('storeName')
 			this.getUserInfo()
 			this.getUserInfo()
-			// this.currServiceInfo()
-
-
 		},
 		},
 		onShow() {
 		onShow() {
+			this.userInfo = uni.getStorageSync('userInfo')
+			if (this.userInfo.signIn){
+				this.currServiceInfo()
+			}
 		},
 		},
 		methods: {
 		methods: {
 			openSelectServiceObjectPopup(){
 			openSelectServiceObjectPopup(){