App.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="stylus">
  15. /*** 每个页面公共css ***/
  16. /*** H5方法 ***/
  17. /* #ifdef WEB */
  18. html,body{
  19. width: 100%;
  20. height: 100%;
  21. flex:1;
  22. display: flex;
  23. flex-direction: column;
  24. overflow: hidden;
  25. background: #f5f5f5;
  26. font-family: PingFang SC;
  27. font-weight: 400;
  28. font-size: 30rpx;
  29. color: #333;
  30. uni-app{
  31. flex:1;
  32. display: flex;
  33. flex-direction: column;
  34. overflow: hidden;
  35. uni-page{
  36. flex:1;
  37. display: flex;
  38. flex-direction: column;
  39. overflow: hidden;
  40. uni-page-wrapper{
  41. flex:1;
  42. display: flex;
  43. flex-direction: column;
  44. overflow: hidden;
  45. uni-page-body{
  46. flex:1;
  47. display: flex;
  48. flex-direction: column;
  49. overflow: hidden;
  50. }
  51. }
  52. }
  53. }
  54. }
  55. /* #endif */
  56. /*** 微信方法 ***/
  57. /* #ifdef MP-WEIXIN */
  58. page {
  59. height: 100%;
  60. width: 100%;
  61. display: flex;
  62. flex-direction: column;
  63. overflow: hidden;
  64. background: #f5f5f5;
  65. font-family: PingFang SC;
  66. font-weight: 400;
  67. font-size: 30rpx;
  68. color: #333;
  69. }
  70. view {
  71. margin: 0;
  72. padding: 0;
  73. }
  74. /* #endif */
  75. img {
  76. margin: 0;
  77. padding: 0;
  78. display: block;
  79. }
  80. /*每个页面公共css */
  81. // @import './styles/index.styl'
  82. </style>