闫增涛
2024-03-21 057199d5c5284a71e5d04e091492873ced412fa5
pages/home/home.js
@@ -4,6 +4,8 @@
const app = getApp()
Page({
  data: {
    barHeight: '',
    navBarHeight: '',
    searchVal: '',
    isWhite: false,
    backUrl: null,
@@ -36,6 +38,13 @@
  },
  onLoad(options) {
    const systInfo = wx.getSystemInfoSync();
    const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息
    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度
    this.setData({
      barHeight: systInfo.statusBarHeight,
      navBarHeight: navBarHeight,
    });
    if (options.backUrl) {
      let backUrl = JSON.parse(decodeURIComponent(options.backUrl));
      if (backUrl.options) {
@@ -149,7 +158,7 @@
  getBannerList() {
    const list = []
    app.MG.resource.getItem({
      path: 'jsek_banner\\jsek_homeBanner',
      path: 'jsek_banner\\jsek_homeBannerApplet',
      fields: { jsek_link: [] },
      paging: { start: 0, size: 9 }
    }).then(res => {
@@ -524,6 +533,7 @@
    })
  }
  },
});