App.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. console.log('@@@@getCache',getCache('SET_ACCESS_TOKEN'));
  10. return
  11. uni.hideTabBar()
  12. let tabbar_type = uni.getStorageSync('tabbar_type')
  13. console.log('@@@tabbar_type',tabbar_type);
  14. // if(tabbar_type == false)
  15. // let token = getCache('access_token')
  16. // console.log('@@@token',token);
  17. // if(!token){
  18. // uni.navigateTo({
  19. // url:'/pages/login/index'
  20. // })
  21. // return
  22. // }
  23. },
  24. onShow() {
  25. uni.hideTabBar()
  26. }
  27. };
  28. </script>
  29. <style lang="scss">
  30. @import 'uview-ui/index.scss';
  31. @import url('design/background.css');
  32. @import url('design/flex.css');
  33. @import url('design/margin.css');
  34. @import url('design/padding.css');
  35. @import url('design/shadow.css');
  36. @import url('design/text.css');
  37. @import url('design/common.css');
  38. page {
  39. background-color: #f5f5f5;
  40. color: $uni-text-color;
  41. font-size: $uni-font-size-base;
  42. }
  43. </style>