App.vue 681 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. @import "uview-ui/index.scss";
  16. /*每个页面公共css */
  17. page {
  18. height: 100%;
  19. background-color: #F7F8FA;
  20. }
  21. nav {
  22. background-color: #0094FF;
  23. color: #fff;
  24. .nav {
  25. text-align: center;
  26. font-weight: 600;
  27. height: 44px;
  28. line-height: 44px;
  29. letter-spacing: 2px;
  30. position: relative;
  31. .return {
  32. padding: 5px 9px;
  33. position: absolute;
  34. top: 50%;
  35. left: 0px;
  36. transform: translateY(-50%);
  37. }
  38. }
  39. }
  40. </style>