Ver código fonte

签到修改

twt 3 anos atrás
pai
commit
a5bc6f1ef4

+ 2 - 2
operatingCompany/pages/entryReport/shopEvaStar.vue

@@ -156,9 +156,9 @@
 						icon:'none',
 					    duration: 2000,
 					});
-					uni.navigateTo({
+					/* uni.navigateTo({
 						url:'entryReport'
-					}) 
+					}) */ 
 				})
 			}
 			

+ 26 - 0
operatingCompany/pages/entryReport/signIn.vue

@@ -80,6 +80,32 @@
 				this.address=item.name;
 			},
 			signin(){
+				uni.showLoading({ });
+				var that=this;
+				this.$http('accompany/SuperAccounts/queryManagerTodaySign', {
+					shopId:this.shopId,
+					
+				},'GET').then(res => {
+					 if(res.data.today){
+						 uni.showModal({
+						     title: '提示',
+						     content: '是否更新签到位置?',
+						     success: function (res) {
+						         if (res.confirm) {
+						           that.gotoQd()
+						 							 
+						         } else if (res.cancel) {
+						             console.log('用户点击取消');
+						         }
+						     }
+						 });	
+					 }else{
+						 this.gotoQd()
+					 }
+				})
+			
+			},
+			gotoQd(){
 				uni.showLoading({ });
 				this.$http('accompany/SuperAccounts/addSuperSignIn', {
 					shopId:this.shopId,