App.vue 761 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <script>
  2. export default {
  3. onLaunch: function () {
  4. },
  5. onShow: function () {
  6. //this.getAuth();
  7. },
  8. onHide: function () {
  9. },
  10. methods: {
  11. getAuth() {
  12. this.$api.getCurrentAuthCode().then(resp => {
  13. uni.setStorageSync('perList', resp.data);
  14. })
  15. }
  16. }
  17. }
  18. </script>
  19. <style lang="scss">
  20. /*每个页面公共css */
  21. /* uView基础样式 */
  22. @import "uview-ui/index.scss";
  23. //全局页面背景色
  24. page {
  25. background-color: #f7f7f7;
  26. }
  27. // 点击时背景灰色
  28. .hover-class {
  29. background-color: #f7f7f7 !important;
  30. }
  31. //底部安全距离
  32. .bottom-safety {
  33. padding-bottom: constant(safe-area-inset-bottom);
  34. padding-bottom: env(safe-area-inset-bottom);
  35. }
  36. //全局白色背景
  37. .bgc-f {
  38. background-color: #ffffff;
  39. }
  40. </style>