App.vue 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script>
  2. export default {
  3. onLoad() {
  4. this.$store.dispatch('user/GetInfo'); // 获取用户信息
  5. },
  6. };
  7. </script>
  8. <style lang="scss">
  9. /*每个页面公共css */
  10. // #ifdef APP-PLUS
  11. /*第一个view继承高度100%*/
  12. page {
  13. height: 100%;
  14. & > uni-view {
  15. height: 100%;
  16. background-color: #f8f8f8;
  17. /*ios底部安全距离-padding*/
  18. padding-bottom: env(safe-area-inset-bottom);
  19. box-sizing: border-box;
  20. }
  21. }
  22. // #endif
  23. // #ifdef H5
  24. /*第一个view继承高度100%*/
  25. uni-page-body {
  26. height: 100%;
  27. & > uni-view {
  28. height: 100%;
  29. background-color: #f8f8f8;
  30. /*ios底部安全距离-padding*/
  31. padding-bottom: env(safe-area-inset-bottom);
  32. box-sizing: border-box;
  33. }
  34. }
  35. // #endif
  36. view {
  37. box-sizing: border-box;
  38. }
  39. @import 'uview-ui/index.scss';
  40. @import '@/static/styles/uview.scss';
  41. @import '@/static/styles/index.scss';
  42. </style>