修改问题
This commit is contained in:
@@ -80,7 +80,7 @@ Component({
|
|||||||
alertSuccess("操作成功")
|
alertSuccess("操作成功")
|
||||||
this.init()
|
this.init()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.jumpToReading()
|
that.jumpToReading({ currentTarget: { dataset: { id } } })
|
||||||
}, 500)
|
}, 500)
|
||||||
},
|
},
|
||||||
async changeEndStatus(e) {
|
async changeEndStatus(e) {
|
||||||
|
66
pages/workBenchOld/index.js
Normal file
66
pages/workBenchOld/index.js
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
// pages/workBench/index.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
6
pages/workBenchOld/index.json
Normal file
6
pages/workBenchOld/index.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {
|
||||||
|
"navigator": "/components/navigator/index"
|
||||||
|
},
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
3
pages/workBenchOld/index.wxml
Normal file
3
pages/workBenchOld/index.wxml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<!--pages/workBench/index.wxml-->
|
||||||
|
<navigator title="工作台" canBack="{{true}}" />
|
||||||
|
|
1
pages/workBenchOld/index.wxss
Normal file
1
pages/workBenchOld/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* pages/workBench/index.wxss */
|
@@ -21,7 +21,6 @@ Component({
|
|||||||
if (!newValue) {
|
if (!newValue) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("newValue", newValue)
|
|
||||||
this.checkFinish(newValue)
|
this.checkFinish(newValue)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -66,7 +65,7 @@ Component({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
alertSuccess("操作成功")
|
alertSuccess("操作成功")
|
||||||
this.init()
|
wx.navigateBack()
|
||||||
},
|
},
|
||||||
onPhotoFinish(e) {
|
onPhotoFinish(e) {
|
||||||
const { number, success } = e.detail;
|
const { number, success } = e.detail;
|
||||||
@@ -93,19 +92,20 @@ Component({
|
|||||||
}
|
}
|
||||||
alertSuccess("录入成功")
|
alertSuccess("录入成功")
|
||||||
const that = this;
|
const that = this;
|
||||||
setTimeout(() => {
|
setTimeout(async () => {
|
||||||
const isFinished = that.checkFinish()
|
const isFinished = await that.checkFinish()
|
||||||
if (isFinished) {
|
if (isFinished) {
|
||||||
|
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '所有电表都已抄完,是否结束抄表?',
|
content: '所有电表都已抄完,是否返回?',
|
||||||
complete: async (res) => {
|
complete: async (res) => {
|
||||||
if (res.cancel) {
|
if (res.cancel) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
await that.changeEndStatus()
|
// await that.changeEndStatus()
|
||||||
wx.navigateBack()
|
wx.navigateBack()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user