Commit cac52536 by zhangzhen

细节优化

parent 7fe0bfe8
......@@ -253,7 +253,7 @@ import moment from "@/common/moment";
})
},
onNavSearch(val){
if(val.roomStat === 1 && (val.recordsStatus == 0 || val.recordsUserId == this.userInfo.id)){
if(val.roomStat === 1 && (val.recordsStatus == 0 || val.recordsStatus == 1)){
uni.navigateTo({
url:"/pages/cleanOrderInfo/cleanOrderInfo?id="+val.recordsId
})
......
......@@ -268,22 +268,22 @@
// title:'提交前请先开门'
// })
// }
if (!this.orderInfo.startImage.length) {
uni.showToast({
icon: 'none',
title: '请上传至少一张开始保洁图片'
})
return
}
if(this.orderInfo.status ==1){
if (!this.orderInfo.endImage.length) {
uni.showToast({
icon: 'none',
title: '请上传至少一张完成保洁图片'
})
return
}
}
// if (!this.orderInfo.startImage.length) {
// uni.showToast({
// icon: 'none',
// title: '请上传至少一张开始保洁图片'
// })
// return
// }
// if(this.orderInfo.status ==1){
// if (!this.orderInfo.endImage.length) {
// uni.showToast({
// icon: 'none',
// title: '请上传至少一张完成保洁图片'
// })
// return
// }
// }
if (this.orderInfo.status == '1') {
endClean({
storeId: this.orderInfo.storeId,
......@@ -298,6 +298,9 @@
title: '提交成功'
})
this.onLoading()
setTimeout(()=>{
uni.navigateBack();
},500)
} else {
uni.showToast({
icon: 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment