闫增涛
2024-03-28 b6923adb7b6a5fcbe4a2eaa06e1ebe0e044ba0e2
pages/bookExhibitionList/index.js
@@ -26,7 +26,6 @@
    },
    product: {
      value: '*',
      options: [
        {
          value: '*',
@@ -59,6 +58,7 @@
    navBarHeight: '',
    barHeight: '',
    windowHeight: '',
  },
@@ -100,12 +100,14 @@
    console.log(this.data.bookExhibitionList.length, 'this.data.bookExhibitionList.length');
    // 更新数据
    this.setData({
      'multipleSelect.options': singleSelectOptions,
    });
    //
  },
  /**
@@ -120,8 +122,8 @@
   */
  onShow() {
    this.bookExhibitionGet()
    this.keyProjectsGet()
  },
  /**
@@ -222,12 +224,24 @@
      console.log(res, 'item');
      this.data.total = res.total
      //  list.push(res.datas)
      // list.push(res.datas)
      console.log(res.datas.length);
      if (res.datas.length == 0) {
        this.setData({
          keynoteDisabled: true
        })
      }
      const list = [...res.datas]
      this.setData({
        bookExhibitionList: list
      })
      // 判断数据长度
      console.log(list.length, 'list.length');
      //取消
      wx.hideLoading()
@@ -296,12 +310,12 @@
    if (this.data.keynoteValue) {
      //如果有数据就清空并刷新页面
      this.data.keynoteValue = []
      this.bookExhibitionGet(newValue)
      this.onLoad()
      console.log('true');
    }
  },
  // 重点项目