index.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. background: white;
  7. display: flex;
  8. box-sizing: border-box;
  9. padding: 14rpx 0rpx;
  10. padding-bottom: calc(env(safe-area-inset-bottom) + 14rpx);
  11. box-shadow: rgba(0, 0, 0, 0.35) 0px 30rpx 20rpx 20rpx;
  12. .tab-bar-item {
  13. position: relative;
  14. flex: 1;
  15. text-align: center;
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. flex-direction: column;
  20. padding-bottom: 10rpx;
  21. .noticeTips {
  22. position: absolute;
  23. left: 100rpx;
  24. top: -12rpx;
  25. width: 28rpx;
  26. padding: 4rpx 0rpx;
  27. border-radius: 40rpx;
  28. color: white;
  29. font-size: 16rpx;
  30. text-align: center;
  31. background-color: #FF0000;
  32. }
  33. image {
  34. width: 48rpx;
  35. height: 48rpx;
  36. }
  37. view {
  38. font-size: 28rpx;
  39. margin-top: 10rpx;
  40. }
  41. }
  42. .mask {
  43. position: absolute;
  44. top: 0rpx;
  45. width: 100%;
  46. height: 100%;
  47. z-index: 9;
  48. background: rgba(0, 0, 0, 0.7);
  49. }
  50. }
  51. /* #if ANDROID */
  52. .androidMask {
  53. position: absolute;
  54. width: 100%;
  55. height: 100%;
  56. top: 0;
  57. left: 0;
  58. z-index: 9999;
  59. }
  60. /* #endif */
  61. .bounce {
  62. animation: elasticity 1.2s linear;
  63. }
  64. /* Q弹动画关键帧 */
  65. @keyframes elasticity {
  66. 0% {
  67. transform: matrix3d(0.92, 0, 0, 0, 0, 0.92, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  68. }
  69. 3.4% {
  70. transform: matrix3d(0.938, 0, 0, 0, 0, 0.933, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  71. }
  72. 4.7% {
  73. transform: matrix3d(0.945, 0, 0, 0, 0, 0.94, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  74. }
  75. 6.81% {
  76. transform: matrix3d(0.95, 0, 0, 0, 0, 0.956, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  77. }
  78. 9.41% {
  79. transform: matrix3d(0.942, 0, 0, 0, 0, 1.084, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  80. }
  81. 10.21% {
  82. transform: matrix3d(0.971, 0, 0, 0, 0, 1.113, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  83. }
  84. 13.61% {
  85. transform: matrix3d(1.062, 0, 0, 0, 0, 1.166, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  86. }
  87. 14.11% {
  88. transform: matrix3d(1.07, 0, 0, 0, 0, 1.165, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  89. }
  90. 17.52% {
  91. transform: matrix3d(1.104, 0, 0, 0, 0, 1.12, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  92. }
  93. 18.72% {
  94. transform: matrix3d(1.106, 0, 0, 0, 0, 1.094, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  95. }
  96. 21.32% {
  97. transform: matrix3d(1.098, 0, 0, 0, 0, 1.035, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  98. }
  99. 24.32% {
  100. transform: matrix3d(1.075, 0, 0, 0, 0, 0.98, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  101. }
  102. 25.23% {
  103. transform: matrix3d(1.067, 0, 0, 0, 0, 0.969, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  104. }
  105. 29.03% {
  106. transform: matrix3d(1.031, 0, 0, 0, 0, 0.948, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  107. }
  108. 29.93% {
  109. transform: matrix3d(1.024, 0, 0, 0, 0, 0.949, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  110. }
  111. 35.54% {
  112. transform: matrix3d(0.99, 0, 0, 0, 0, 0.981, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  113. }
  114. 36.74% {
  115. transform: matrix3d(0.986, 0, 0, 0, 0, 0.989, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  116. }
  117. 41.04% {
  118. transform: matrix3d(0.98, 0, 0, 0, 0, 1.011, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  119. }
  120. 44.44% {
  121. transform: matrix3d(0.983, 0, 0, 0, 0, 1.016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  122. }
  123. 52.15% {
  124. transform: matrix3d(0.996, 0, 0, 0, 0, 1.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  125. }
  126. 59.86% {
  127. transform: matrix3d(1.003, 0, 0, 0, 0, 0.995, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  128. }
  129. 63.26% {
  130. transform: matrix3d(1.004, 0, 0, 0, 0, 0.996, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  131. }
  132. 75.28% {
  133. transform: matrix3d(1.001, 0, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  134. }
  135. 85.49% {
  136. transform: matrix3d(0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  137. }
  138. 90.69% {
  139. transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  140. }
  141. 100% {
  142. transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  143. }
  144. }