From a84175b5e189ac6da0d80ac64f77a4b45e7c9157 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期四, 14 十一月 2024 13:48:34 +0800 Subject: [PATCH] 1.添加瞬时流量相关2.优化界面3.修改原开阀和未关阀列表的sessionId为clientId --- pages/feedback/feedback.js | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/pages/feedback/feedback.js b/pages/feedback/feedback.js index 3e08801..273540c 100644 --- a/pages/feedback/feedback.js +++ b/pages/feedback/feedback.js @@ -27,7 +27,6 @@ height: 160, }, originFiles: [], - contentValue: '', //鍙嶉璇︽儏 accSavePath: [], //涓婁紶鐨勯煶棰戞枃浠舵帴鍙h繑鍥炵殑鍦板潃 photoSavePath: [], //涓婁紶鐨勭収鐗囨枃浠惰繑鍥炵殑鍦板潃 @@ -362,10 +361,15 @@ }, 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; @@ -379,7 +383,12 @@ } }, 1000); }, - + onUnload() { + if (this.recordingInterval) { + clearInterval(this.recordingInterval); + this.recordingInterval = null; + } + }, stopRecordingCountdown() { console.log("stopRecordingCountdown"); if (this.recordingInterval) { @@ -503,6 +512,7 @@ this.setData({ isRefreshing: false, pageCurr: 1, + listData: [] }); } const app = getApp(); @@ -555,15 +565,12 @@ const item = e.currentTarget.dataset.item; const that = this; wx.showLoading({ - title: '姝e湪寮哄埗鍒犻櫎璇风◢鍊�...', // 鍔犺浇鎻愮ず鏂囧瓧 + title: '姝e湪鍒犻櫎璇风◢鍊�...', // 鍔犺浇鎻愮ず鏂囧瓧 mask: true // 鏄惁鏄剧ず閫忔槑钂欏眰锛岄槻姝㈣Е鎽哥┛閫忥紝榛樿涓� false }); - that.setData({ - lastIntakeName: intakeName - }) const data = { - vcNum: item.vcNum, //鍙栨按鍙D - rtuAddr: item.rtuAddr, //闃�鎺у櫒鍦板潃 + issueReportId: item.issueReportId, //鍙栨按鍙D + clientId: app.globalData.clientId, //闃�鎺у櫒鍦板潃 }; post({ url: "wx/issue/deleteIssueReport", @@ -575,7 +582,7 @@ // 鍔犺浇瀹屾垚鍚庨殣钘忓姞杞藉姩鐢� wx.hideLoading(); //閲嶆柊鑾峰彇鍒楄〃鍒锋柊鏁版嵁 - this.getList(); + this.getList(true); }).catch(error => { // 鍔犺浇瀹屾垚鍚庨殣钘忓姞杞藉姩鐢� wx.hideLoading(); -- Gitblit v1.8.0