|
|
|
|
@ -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+"分钟。系统要求实际服务时间要大于您勾选的时间。";
|
|
|
|
|
|