App.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <script>
  2. export default {
  3. data() {
  4. return {
  5. }
  6. },
  7. onLaunch: function() {
  8. // console.log('App Launch')
  9. },
  10. onShow: function() {
  11. // console.log('App Show')
  12. // this.$audio.play();
  13. },
  14. onHide: function() {
  15. // console.log('App Hide')
  16. // this.$audio.pause();
  17. },
  18. methods: {
  19. }
  20. }
  21. </script>
  22. <style>
  23. /*每个页面公共css */
  24. .body {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. }
  30. .body-radius {
  31. border-radius: 50rpx;
  32. overflow: hidden; /* 确保边框圆角不会溢出 */
  33. }
  34. .uni-row {
  35. display: flex;
  36. flex-direction: row;
  37. align-items: center;
  38. }
  39. .uni-column {
  40. display: flex;
  41. flex-direction: column;
  42. align-items: center;
  43. }
  44. .uni-jct {
  45. justify-content: flex-start;
  46. }
  47. .uni-jcc {
  48. justify-content: center;
  49. }
  50. .uni-jce {
  51. justify-content: flex-end;
  52. }
  53. .uni-jcsa {
  54. justify-content: space-around;
  55. }
  56. .uni-jcsb {
  57. justify-content: space-between;
  58. }
  59. .uni-jcse {
  60. justify-content: space-evenly;
  61. }
  62. .uni-ais {
  63. align-items: flex-start;
  64. }
  65. .uni-aie {
  66. align-items: flex-end;
  67. }
  68. .uni-aibl {
  69. align-items: baseline;
  70. }
  71. .uni-hidden {
  72. visibility: hidden;
  73. }
  74. .uni-nowrap {
  75. white-space: nowrap;
  76. }
  77. .uni-ovf-hidden {
  78. overflow: hidden;
  79. }
  80. .uni-ovf-ellipsis {
  81. text-overflow: ellipsis;
  82. }
  83. </style>