master
xy 3 years ago
parent 2775d6b1f6
commit 113d0a55fb

@ -59,6 +59,7 @@ const install = (Vue, vm) => {
icon: "none",
title: res.data.errmsg
})
return false
}
} else
return res.data;

@ -14,7 +14,7 @@
<view class="content__btn">
<u-button :custom-style="btnStyle1" shape="circle" type="error"
@click="$emit('update:isShow',false),clearList()">取消</u-button>
<u-button :throttle-time="3000" :custom-style="btnStyle2" shape="circle" type="primary" @click.stop="submit">确认</u-button>
<u-button :throttle-time="2000" :custom-style="btnStyle2" shape="circle" type="primary" @click.stop="submit">确认</u-button>
</view>
</view>
</u-mask>

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

@ -191,12 +191,12 @@
todayHour: {
title: "今日服务工时",
value: 0,
unit: "小时"
unit: "分钟"
},
monthHour: {
title: "本月服务工时",
value: 0,
unit: "小时"
unit: "分钟"
},
},
status: {

Loading…
Cancel
Save