| | |
| | | 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:[] |
| | | listData: [] |
| | | }); |
| | | } |
| | | const app = getApp(); |