沙盘演示系统应用的微信小程序
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,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: '正在强制删除请稍候...', // 加载提示文字
      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",
@@ -575,7 +582,7 @@
      // 加载完成后隐藏加载动画
      wx.hideLoading();
      //重新获取列表刷新数据
      this.getList();
      this.getList(true);
    }).catch(error => {
      // 加载完成后隐藏加载动画
      wx.hideLoading();