| | |
| | | height: 160, |
| | | }, |
| | | originFiles: [], |
| | | |
| | | contentValue: '', //反馈详情 |
| | | accSavePath: [], //上传的音频文件接口返回的地址 |
| | | photoSavePath: [], //上传的照片文件返回的地址 |
| | |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | //开启定时器 |
| | | startRecordingCountdown() { |
| | | console.log("startRecordingCountdown"); |
| | | const that = this; |
| | | if (this.recordingInterval) { |
| | | // 如果定时器已经在运行,避免重复启动 |
| | | return; |
| | | } |
| | | this.recordingInterval = setInterval(() => { |
| | | const newVoiceTime = that.data.voiceTime + 1; |
| | | const newContDownTime = that.data.contDownTime - 1; |
| | |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onUnload() { |
| | | if (this.recordingInterval) { |
| | | clearInterval(this.recordingInterval); |
| | | this.recordingInterval = null; |
| | | } |
| | | }, |
| | | stopRecordingCountdown() { |
| | | console.log("stopRecordingCountdown"); |
| | | if (this.recordingInterval) { |
| | |
| | | this.setData({ |
| | | isRefreshing: false, |
| | | pageCurr: 1, |
| | | listData: [] |
| | | }); |
| | | } |
| | | const app = getApp(); |
| | |
| | | const item = e.currentTarget.dataset.item; |
| | | const that = this; |
| | | wx.showLoading({ |
| | | title: '正在强制删除请稍候...', // 加载提示文字 |
| | | title: '正在删除请稍候...', // 加载提示文字 |
| | | mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false |
| | | }); |
| | | that.setData({ |
| | | lastIntakeName: intakeName |
| | | }) |
| | | const data = { |
| | | vcNum: item.vcNum, //取水口ID |
| | | rtuAddr: item.rtuAddr, //阀控器地址 |
| | | issueReportId: item.issueReportId, //取水口ID |
| | | clientId: app.globalData.clientId, //阀控器地址 |
| | | }; |
| | | post({ |
| | | url: "wx/issue/deleteIssueReport", |
| | |
| | | // 加载完成后隐藏加载动画 |
| | | wx.hideLoading(); |
| | | //重新获取列表刷新数据 |
| | | this.getList(); |
| | | this.getList(true); |
| | | }).catch(error => { |
| | | // 加载完成后隐藏加载动画 |
| | | wx.hideLoading(); |