App.vue 791 字节
Newer Older
study夏羽's avatar
study夏羽 已提交
1
<script>
d-u-a's avatar
d-u-a 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
  export default {
    onLaunch: async function() {
      console.log('App Launch')
      checkUpdate() //更新升级
    },
    mounted() {
      // #ifdef H5
      //const VConsole = require('@/common/js/vconsole.min.js')
      //new VConsole()
      // #endif
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
study夏羽's avatar
study夏羽 已提交
21 22 23
</script>

<style>
d-u-a's avatar
d-u-a 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
  /*每个页面公共css */
  /* #ifndef APP-NVUE */
  view {
    box-sizing: border-box;
  }

  @font-face {
    font-family: "iconfont";
    src: url('https://at.alicdn.com/t/font_2354462_s00xh8caffp.ttf');
  }

  .ico {
    font-family: iconfont;
  }

  /* #endif */
study夏羽's avatar
study夏羽 已提交
40
</style>