diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 8e7875e..e49ed55 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -58,7 +58,8 @@ const install = (Vue, vm) => {
uni.showToast({
icon: "none",
title: res.data.errmsg
- })
+ })
+ return false
}
} else
return res.data;
diff --git a/components/doingOrder/doingOrder.vue b/components/doingOrder/doingOrder.vue
index 1a2c6df..9c2d9dd 100644
--- a/components/doingOrder/doingOrder.vue
+++ b/components/doingOrder/doingOrder.vue
@@ -1,84 +1,84 @@
-
-
-
-
-
-
- {{item.start_time}}
-
-
-
- 护理中
- 待护理
- 已护理
-
-
-
-
-
-
-
-
-
-
- {{item.customer.name}}
-
-
-
-
- {{item.customer.phone || '无'}}
-
-
-
-
-
- {{item.customer_address.address || '无'}}
-
-
-
-
- {{item.customer.sex || '无'}}
-
-
+
+
+
+
+
+
+ {{item.start_time}}
+
+
+
+ 护理中
+ 待护理
+ 已护理
+
+
+
+
+
+
+
+
+
+
+ {{item.customer.name}}
+
+
+
-
-
-
- 去那里
-
-
-
-
+ {{item.customer.phone || '无'}}
+
+
+
+
-
+ {{item.customer_address.address || '无'}}
+
+
+
+
+ {{item.customer.sex || '无'}}
-
-
-
+
+
+
+
+ 去那里
+
+
+
-
+
+
+
+
+
+
+
-
+
+
+
-
\ No newline at end of file
+
diff --git a/pages/detailNursing/components/imgUpload.vue b/pages/detailNursing/components/imgUpload.vue
index 6b1b660..d690702 100644
--- a/pages/detailNursing/components/imgUpload.vue
+++ b/pages/detailNursing/components/imgUpload.vue
@@ -14,7 +14,7 @@
取消
- 确认
+ 确认
diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue
index da49fca..86a461c 100644
--- a/pages/detailNursing/detailNursing.vue
+++ b/pages/detailNursing/detailNursing.vue
@@ -387,7 +387,7 @@
}
})
this.form.type = type
- this.$u.api.processSave(this.form).then(res => {
+ this.$u.api.processSave(this.form).then(res1 => {
uni.showToast({
icon: 'success',
title
@@ -395,16 +395,11 @@
this.$refs['imgUpload'].clearList()
this.isShowImg = false
this.getDeatil(this.id)
- }).catch(err => {
- uni.showToast({
- title: '操作失败,请重试',
- icon: "none"
- })
- })
- }).catch(err => {
- uni.showToast({
- icon: 'none',
- title: '图片上传失败'
+
+ if(res1.tip){
+ this.tips = "用户服务次数已达到次数、总服务时长未满"
+ this.isShowModal = true
+ }
})
})
},
@@ -502,7 +497,7 @@
}
}
let totalTime = this.$moment(new Date()).diff(this.$moment(this.detail.sign_in), 'minutes')
- if (useTotalTime >= (totalTime - 10) && useTotalTime < totalTime) {
+ if (useTotalTime <= (totalTime + 10) && useTotalTime > totalTime) {
this.signOut()
uni.showToast({
@@ -510,7 +505,7 @@
title:'请下次补足时间',
duration:2000
})
- } else if (useTotalTime >= totalTime && useTotalTime <= (totalTime + 10)){
+ } else if (useTotalTime <= totalTime){
this.signOut()
} else {
this.tips="当前勾选的时间为"+useTotalTime+"分钟,实际服务时间为"+totalTime+"分钟。系统要求实际服务时间要大于您勾选的时间。";
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 59b818f..d6bd0a3 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -191,12 +191,12 @@
todayHour: {
title: "今日服务工时",
value: 0,
- unit: "小时"
+ unit: "分钟"
},
monthHour: {
title: "本月服务工时",
value: 0,
- unit: "小时"
+ unit: "分钟"
},
},
status: {