沙盘演示系统应用的微信小程序
pages/feedback/feedback.js
@@ -27,7 +27,6 @@
      height: 160,
    },
    originFiles: [],
    contentValue: '', //反馈详情
    accSavePath: [], //上传的音频文件接口返回的地址
    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,7 +512,7 @@
      this.setData({
        isRefreshing: false,
        pageCurr: 1,
        listData:[]
        listData: []
      });
    }
    const app = getApp();