yiming
2024-04-28 9ba507bed7688a1a9eee31255e40add8bf1a8689
pages/retrievalPage/index.js
@@ -46,7 +46,6 @@
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    console.log(app.config.appId);
    const systInfo = wx.getSystemInfoSync();
    const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息
@@ -56,19 +55,14 @@
      barHeight: systInfo.statusBarHeight,
      searchVal: options.searchVal
    })
    this.retrievalPageGet()
    this.bibliographyGet()
    let event = {
      detail: {
        value: "0"
      }
    }
    this.onTabsChange(event)
  },
  /**
@@ -142,7 +136,6 @@
        tabValue: value,
        isMore: false
      })
    } else if (value === '1') {
      console.log(value, 'tab');
      this.setData({
@@ -177,6 +170,7 @@
  retrievalPageGet() {
    let fields = {
      liveTime: [],
@@ -578,6 +572,10 @@
    });
  },
  onSearchSubmit() {
    this.setData({
      loading: true,
      hidden: true,
    })
    console.log(this.data.searchVal);
    this.retrievalPageGet()
    this.bibliographyGet()