修改问题

This commit is contained in:
2025-09-19 15:29:26 +08:00
parent 345a362c74
commit d77af4b78f
6 changed files with 83 additions and 7 deletions

View File

@@ -21,7 +21,6 @@ Component({
if (!newValue) {
return;
}
console.log("newValue", newValue)
this.checkFinish(newValue)
}
},
@@ -66,7 +65,7 @@ Component({
return
}
alertSuccess("操作成功")
this.init()
wx.navigateBack()
},
onPhotoFinish(e) {
const { number, success } = e.detail;
@@ -93,19 +92,20 @@ Component({
}
alertSuccess("录入成功")
const that = this;
setTimeout(() => {
const isFinished = that.checkFinish()
setTimeout(async () => {
const isFinished = await that.checkFinish()
if (isFinished) {
wx.showModal({
title: '提示',
content: '所有电表都已抄完,是否结束抄表',
content: '所有电表都已抄完,是否返回',
complete: async (res) => {
if (res.cancel) {
}
if (res.confirm) {
await that.changeEndStatus()
// await that.changeEndStatus()
wx.navigateBack()
}
}