jiangping
2023-10-24 9e6d06469d712b5a28a75d59645fc5d3d3dfa235
minipro_standard/store/index.js
@@ -77,7 +77,7 @@
   },
   actions: {
      // 向后端获取菜单栏权限
      async getMenuList(content, type) {
      async getMenuList(content, type) {
         let res = await getTreeList({
            type: type
         })
@@ -86,24 +86,27 @@
         }
      },
      // 获取状态高度
      getHeight(context) {
         let res = uni.getMenuButtonBoundingClientRect()
         let status = uni.getSystemInfoSync()
         let menuButtonWidth = res.width
         let height = res.height
         let statusbarHeight = status.statusBarHeight
         let navHeight = res.height + (res.top - statusbarHeight) * 2;
         context.commit('setHeight', {
            statusbarHeight,
            navHeight,
            height,
            menuButtonWidth
         })
      getHeight(context) {
         // #ifdef MP-WEIXIN
         let res = uni.getMenuButtonBoundingClientRect()
         let status = uni.getSystemInfoSync()
         let menuButtonWidth = res.width
         let height = res.height
         let statusbarHeight = status.statusBarHeight
         let navHeight = res.height + (res.top - statusbarHeight) * 2;
         context.commit('setHeight', {
            statusbarHeight,
            navHeight,
            height,
            menuButtonWidth
         })
         // #endif
      },
      async getUpcomingNum() {
      async getUpcomingNum(context) {
         let res = await pageCount({})
         if (res.code === 200) {
            content.commit('SETNUM', {
            context.commit('SETNUM', {
               d: res.data.startNum,
               y: res.data.endNum
            })