修改问题

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

@@ -80,7 +80,7 @@ Component({
alertSuccess("操作成功")
this.init()
setTimeout(() => {
that.jumpToReading()
that.jumpToReading({ currentTarget: { dataset: { id } } })
}, 500)
},
async changeEndStatus(e) {

View File

@@ -0,0 +1,66 @@
// pages/workBench/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"navigator": "/components/navigator/index"
},
"navigationStyle": "custom"
}

View File

@@ -0,0 +1,3 @@
<!--pages/workBench/index.wxml-->
<navigator title="工作台" canBack="{{true}}" />

View File

@@ -0,0 +1 @@
/* pages/workBench/index.wxss */

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()
}
}