管灌系统农户端微信小程序(嘉峪关应用)
pages/waterIntake/waterIntake.js
@@ -94,18 +94,11 @@
  choseCard(event) {
    //显示二次确认弹窗
    this.setData({
    //   showConfirm: true,
      showConfirm: true,
      choseItem: event.currentTarget.dataset.item,
      allWaterPoints: []
    })
   this.initDialogData();
    //  console.log(intakeId);
    //   wx.navigateTo({
    //     url: '/pages/openCard/openCard?intakeId='+intakeId,
    //   })
    // 注意:initDialogData的调用移到了confirmDialog方法中
  },
  //开泵通信
  /**
@@ -238,14 +231,14 @@
          isRefreshing_all: false
        });
        if (data.success && data.code === "0001") {
          if (!data.content) {
          if (!data.content || data.content.itemTotal === 0 || !data.content.obj || data.content.obj.length === 0) {
            wx.showToast({
              title: '没有搜索到取水口',
              icon: 'error',
            })
          } else {
            this.setData({
              allWaterPoints: [data.content]
              allWaterPoints: data.content.obj
            });
          }
@@ -313,10 +306,6 @@
    this.getcommonWaterPoints();
  },
  confirmDialog() {
    // this.setData({
    //   showConfirm: false
    // })
    // this.postOpenValva(this.data.choseItem.intakeId);
    this.setData({
        showConfirm: false
    })