App.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <script>
  2. import md5Libs from '@/uni_modules/uview-ui/libs/function/md5';
  3. import Vue from 'vue';
  4. export default {
  5. created() {
  6. // #ifdef APP-PLUS
  7. plus.navigator.closeSplashscreen();
  8. // #endif
  9. },
  10. // onLaunch: async function () {
  11. // uni.hideTabBar();
  12. // 加载配置
  13. // uni.getSystemInfo({
  14. // success: function (e) {
  15. // // #ifndef MP
  16. // Vue.prototype.StatusBar = e.statusBarHeight;
  17. // if (e.platform == 'android') {
  18. // Vue.prototype.CustomBar = e.statusBarHeight + 50;
  19. // } else {
  20. // Vue.prototype.CustomBar = e.statusBarHeight + 45;
  21. // }
  22. // // #endif
  23. // // #ifdef MP-WEIXIN
  24. // Vue.prototype.StatusBar = e.statusBarHeight;
  25. // let custom = wx.getMenuButtonBoundingClientRect();
  26. // Vue.prototype.Custom = custom;
  27. // Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
  28. // // #endif
  29. // // #ifdef MP-ALIPAY
  30. // Vue.prototype.StatusBar = e.statusBarHeight;
  31. // Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
  32. // // #endif
  33. // }
  34. // });
  35. // let res = await this.$api.getConfig();
  36. // if (!res.code) {
  37. // return;
  38. // }
  39. // this.vuex_config = res.data;
  40. // },
  41. // },
  42. onShow: function () {
  43. uni.hideTabBar();
  44. },
  45. onHide: function () {},
  46. onLoad: function () {
  47. uni.hideTabBar();
  48. }
  49. };
  50. </script>
  51. <style lang="scss">
  52. @import '@/uni_modules/uview-ui/index.scss';
  53. @import 'common/iconfont.css';
  54. @import 'common/app.css';
  55. @import './GraceUI5/css/graceUI.css';
  56. @import './GraceUI5/skin/black.css';
  57. /* 加载图标字体 - 条件编译模式 */
  58. /* #ifdef APP-PLUS-NVUE */
  59. .gui-icons {
  60. font-family: graceIconfont;
  61. }
  62. /* #endif */
  63. </style>