index.wxss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. }
  13. .tab-bar .tab-bar-item {
  14. position: relative;
  15. flex: 1;
  16. text-align: center;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. flex-direction: column;
  21. padding-bottom: 10rpx;
  22. }
  23. .tab-bar .tab-bar-item .noticeTips {
  24. position: absolute;
  25. left: 100rpx;
  26. top: -12rpx;
  27. width: 28rpx;
  28. padding: 4rpx 0rpx;
  29. border-radius: 40rpx;
  30. color: white;
  31. font-size: 16rpx;
  32. text-align: center;
  33. background-color: #FF0000;
  34. }
  35. .tab-bar .tab-bar-item image {
  36. width: 48rpx;
  37. height: 48rpx;
  38. }
  39. .tab-bar .tab-bar-item view {
  40. font-size: 28rpx;
  41. margin-top: 10rpx;
  42. }
  43. .tab-bar .mask {
  44. position: absolute;
  45. top: 0rpx;
  46. width: 100%;
  47. height: 100%;
  48. z-index: 9;
  49. background: rgba(0, 0, 0, 0.7);
  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. }