沙盘演示系统应用的微信小程序
zuoxiao
2024-11-08 f3058f900e3143c0245c9b1686397b6e6e561422
pages/openCard/openCard.js
@@ -1,4 +1,4 @@
// 开卡选择虚拟卡
// 开阀选择虚拟卡
const {
  get,
  post
@@ -264,6 +264,7 @@
      this.setData({
        isOpenTiming: true,
        radioValue: value,
        dateStartTime: new Date().getTime()
      })
    } else {
      this.setData({
@@ -315,7 +316,8 @@
      dialog_time: false,
      dialog_water: false,
      dialog_mode: true,
      group_time: false
      group_time: false,
      activeIndex: -1
    })
  },
  //立即开泵
@@ -343,7 +345,7 @@
      wx.hideLoading();
      //完成后回到首页
      wx.reLaunch({
        url: '/pages/home/home?param=true' // 首页的路径,根据实际情况填写
        url: '/pages/home/home?param=1' // 首页的路径,根据实际情况填写
      });
    }).catch(error => {
@@ -387,7 +389,7 @@
      wx.hideLoading();
      //完成后回到首页
      wx.reLaunch({
        url: '/pages/home/home?param=true' // 首页的路径,根据实际情况填写
        url: '/pages/home/home?param=1' // 首页的路径,根据实际情况填写
      });
    }).catch(error => {
      // 加载完成后隐藏加载动画
@@ -415,7 +417,7 @@
      plannedOpenTime: this.data.openTime
    };
    post({
      url: "wx/valve/timed_close",
      url: "wx/valve/planed_open_timed_close",
      data: data
    }).then(response => {
      // 处理成功响应
@@ -424,7 +426,7 @@
      wx.hideLoading();
      //完成后回到首页
      wx.reLaunch({
        url: '/pages/home/home?param=true' // 首页的路径,根据实际情况填写
        url: '/pages/home/home?param=2' // 首页的路径,根据实际情况填写
      });
    }).catch(error => {
      // 加载完成后隐藏加载动画
@@ -460,7 +462,7 @@
      wx.hideLoading();
      //完成后回到首页
      wx.reLaunch({
        url: '/pages/home/home?param=true' // 首页的路径,根据实际情况填写
        url: '/pages/home/home?param=1' // 首页的路径,根据实际情况填写
      });
    }).catch(error => {
      // 加载完成后隐藏加载动画
@@ -497,7 +499,7 @@
      wx.hideLoading();
      //完成后回到首页
      wx.reLaunch({
        url: '/pages/home/home?param=true' // 首页的路径,根据实际情况填写
        url: '/pages/home/home?param=2' // 首页的路径,根据实际情况填写
      });
    }).catch(error => {
      // 加载完成后隐藏加载动画