yiming
2024-04-29 4496721cd3af3c68ed4d55218d3e83ea0664c57e
pages/bookExhibitionList/index.js
@@ -52,7 +52,7 @@
      ],
    },
    multipleSelect: {
      // value: [],
      value: [],
      options: [],
    },
    navBarHeight: '',
@@ -87,9 +87,7 @@
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.bookExhibitionGet()
    this.keyProjectsGet(this.data.newPrice)
    // this.setData({
    //   'product.value': '*',
    // });
@@ -102,12 +100,12 @@
    })
    watch.setWatcher(this);
    let that = this;
    setTimeout(function () {
      that.data.name = "测试watch变化了"
    }, 500)
    // watch.setWatcher(this);
    // let that = this;
    // setTimeout(function () {
    //   that.data.name = "测试watch变化了"
    // }, 500)
    console.log(11111);
  },
  watch: {
    name: function (newVal, oldVal) {
@@ -129,12 +127,8 @@
   * 生命周期函数--监听页面显示
   */
  onShow() {
    this.bookExhibitionGet()
    this.keyProjectsGet(this.data.newPrice)
  },
  /**
@@ -434,6 +428,7 @@
      this.bookExhibitionGet(newValue)
    }
    this.onLoad()
  },
  // 重点项目
@@ -449,7 +444,11 @@
      value
    } = event.detail;
    // 确认操作的处理逻辑
    this.data.keynoteValue = value
    // this.data.keynoteValue = value
    this.setData({
      keynoteValue: value,
    })
    this.bookExhibitionGet()
  },