<style lang="less">
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
page {
  height: 100%;
}
</style>

<script>
import wepy from '@wepy/core';
import eventHub from './common/eventHub';
import vuex from '@wepy/x';

wepy.use(vuex);

wepy.app({
  hooks: {
    // App 级别 hook，对整个 App 生效
    // 同时存在 Page hook 和 App hook 时，优先执行 Page hook，返回值再交由 App hook 处
    'before-setData': function(dirty) {
      //   console.log('setData dirty: ', dirty);
      return dirty;
    }
  },
  globalData: {
    userInfo: null
  },

  onLaunch() {
    // this.testAsync();
    // eventHub.$on('app-launch', (...args) => {
    //  console.log('app-launch event emitted, the params are:');
    //  console.log(args);
    // });
  },

  methods: {}
});
</script>
<config>
{
    pages: [
      'pages/index',
      'pages/auth/index',
      'pages/bindTenant/index',
    ],
    "subpackages":[
     {
        "root": "packagesEnv/",
        "pages": [
          'pages/home/index',
          'pages/home/carboncredit',
          'pages/home/overtime',
          'pages/home/resident',
          'pages/home/environment',
          'pages/officehome/index',
          'pages/officehome/detail',
          'pages/officehome/demo',
          'pages/portrait/home',
          'pages/portrait/meeting',
          'pages/portrait/energy',
          'pages/portrait/energyPoint',
          'pages/portrait/todayPoint',
          'pages/portrait/pointExplain',
          'pages/portrait/pointRanking',
          'pages/portrait/ajustRecord',
          'pages/portrait/carbonEnterprise',
          'pages/personalCenter/index',
          'pages/personalCenter/personalInfo',
          'pages/personalCenter/operating',
          'pages/personalCenter/xiaosa',
          'pages/administration/index',
          'pages/administration/asuccess',
          'pages/administration/chooseIdentity',
          'pages/search/index'
        ]
      },
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: ' ',
      navigationBarTextStyle: 'black'
    }
}
</config>
