App.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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>
  15. /*每个页面公共css */
  16. .body {
  17. /* width: 100vw; */
  18. display: flex;
  19. flex-direction: column;
  20. align-items: center;
  21. justify-content: center;
  22. }
  23. .body-radius {
  24. border-radius: 50rpx;
  25. overflow: hidden;
  26. /* 确保边框圆角不会溢出 */
  27. }
  28. .uni-row {
  29. display: flex;
  30. flex-direction: row;
  31. align-items: center;
  32. }
  33. .uni-column {
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. }
  38. .uni-jct {
  39. justify-content: start;
  40. }
  41. .uni-jcc {
  42. justify-content: center;
  43. }
  44. .uni-jcsa {
  45. justify-content: space-around;
  46. }
  47. .uni-jcsb {
  48. justify-content: space-between;
  49. }
  50. .uni-jcse {
  51. justify-content: space-evenly;
  52. }
  53. .uni-ais {
  54. align-items: flex-start;
  55. }
  56. .uni-aie {
  57. align-items: flex-end;
  58. }
  59. .uni-aibl {
  60. align-items: baseline;
  61. }
  62. .uni-hidden {
  63. visibility: hidden;
  64. }
  65. .uni-nowrap {
  66. white-space: nowrap;
  67. }
  68. .uni-ovf-hidden {
  69. overflow: hidden;
  70. }
  71. .uni-ovf-ellipsis {
  72. text-overflow: ellipsis;
  73. }
  74. </style>