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,8 +55,6 @@
      barHeight: systInfo.statusBarHeight,
      searchVal: options.searchVal
    })
    this.retrievalPageGet()
    this.bibliographyGet()
    let event = {
@@ -66,8 +63,6 @@
      }
    }
    this.onTabsChange(event)
  },
  /**
@@ -175,6 +170,7 @@
  retrievalPageGet() {
    let fields = {
      liveTime: [],
@@ -576,6 +572,10 @@
    });
  },
  onSearchSubmit() {
    this.setData({
      loading: true,
      hidden: true,
    })
    console.log(this.data.searchVal);
    this.retrievalPageGet()
    this.bibliographyGet()