App.vue 702 B

123456789101112131415161718192021222324252627282930313233
  1. <script>
  2. import { updateVersion } from './utils/system';
  3. import { setCache, getCache } from '@/utils/cache';
  4. export default {
  5. async onLaunch() {
  6. //#ifdef MP-WEIXIN
  7. // updateVersion();
  8. //#endif
  9. uni.setStorageSync('tabbar_type', true);
  10. },
  11. onShow() {
  12. uni.hideTabBar({
  13. success: () => {
  14. console.log('hide tabber success');
  15. },fail: () => {
  16. console.log('hide tabber fail');
  17. }
  18. })
  19. }
  20. };
  21. </script>
  22. <style lang="scss">
  23. @import 'uview-ui/index.scss';
  24. @import 'design/index.scss';
  25. @import url('design/common.css');
  26. page {
  27. background-color: #f5f5f5;
  28. color: $uni-text-color;
  29. font-size: $uni-font-size-base;
  30. }
  31. </style>