zhanghui пре 2 година
родитељ
комит
993d05e6f7
1 измењених фајлова са 16 додато и 14 уклоњено
  1. 16 14
      pages/index/index.vue

+ 16 - 14
pages/index/index.vue

@@ -562,14 +562,14 @@
 								orderServiceId: this.currService ? this.currService.orderServiceId : null,
 								storeId:this.storeId
 							}).then(res => {
-								this.currServiceInfo()
+								this.currServiceInfo(true)
 							})
 						}
 					}
 				})
 			},
 
-			currServiceInfo() {
+			currServiceInfo(e) {
 				if (!this.userInfo.signIn){
 					uni.showToast({
 						icon: 'error',
@@ -581,19 +581,21 @@
 				this.$api.service.currServiceInfo({
 					storeId: this.userInfo.workStoreId
 				}).then(res => {
-					console.log(res.data.data)
-					if (res.data.data === null){
-						uni.showModal({
-							title:'温馨提示',
-							content:'暂无需要服务的客户',
-							editable:false,
-							showCancel:false,
-							success:(e)=>{
-								if (e.confirm){
-
+					if (e){
+						console.log(res.data.data)
+						if (res.data.data === null){
+							uni.showModal({
+								title:'温馨提示',
+								content:'暂无需要服务的客户',
+								editable:false,
+								showCancel:false,
+								success:(e)=>{
+									if (e.confirm){
+
+									}
 								}
-							}
-						})
+							})
+						}
 					}
 					this.currService = res.data.data
 					this.setButtomState(this.currService)