修改问题
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user