App.vue 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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>