App.vue 616 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <script>
  2. import {
  3. setToken,
  4. getToken,
  5. removeToken
  6. } from '@/utils/auth'
  7. export default {
  8. onLaunch: function() {
  9. console.log('App Launch')
  10. wx.getSystemInfo().then(res=>{
  11. uni.setStorageSync('sysInfo',res)
  12. })
  13. },
  14. onShow: function() {
  15. console.log('App Show')
  16. },
  17. onHide: function() {
  18. console.log('App Hide')
  19. }
  20. }
  21. </script>
  22. <style>
  23. @import "/wxcomponents/vant/common/index.wxss";
  24. @import "@/common/css/animation.css";
  25. /*每个页面公共css */
  26. *{
  27. margin: 0;
  28. padding: 0;
  29. }
  30. html{
  31. background-color: #F1F1F1;
  32. }
  33. .night{
  34. filter: invert(1) hue-rotate(180deg);
  35. }
  36. </style>