bottomTabControl.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <u-overlay :show="active" @click="active = false">
  3. <view class="tabbar-box-wrap">
  4. <view class="tabbar-box">
  5. <view class="tabbar-box-item" @click="goToPage('/pages/tabbar-3-detial/tabbar-3-release/tabbar-3-release')">
  6. <image class="box-image" src="../static/img/logo.png" mode="aspectFit"></image>
  7. <text class="explain">发图文</text>
  8. </view>
  9. <view class="tabbar-box-item" @click="goToPage('/pages/tabbar-3-detial/tabbar-3-video/tabbar-3-video')">
  10. <image class="box-image" src="../static/img/logo.png" mode="aspectFit"></image>
  11. <text class="explain">发视频</text>
  12. </view>
  13. <view class="tabbar-box-item" @click="goToPage('/pages/tabbar-3-detial/tabbar-3-qa/tabbar-3-qa')">
  14. <image class="box-image" src="../static/img/logo.png" mode="aspectFit"></image>
  15. <text class="explain">提问</text>
  16. </view>
  17. </view>
  18. </view>
  19. </u-overlay>
  20. </template>
  21. <script>
  22. export default {
  23. name: "TabControl",
  24. props: {},
  25. data() {
  26. return {
  27. active: false
  28. }
  29. },
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .tabbar-box-wrap {
  34. position: absolute;
  35. width: 100%;
  36. padding: 6.667vw;
  37. box-sizing: border-box;
  38. bottom: calc(13.867vw + env(safe-area-inset-bottom) / 2);
  39. left: 0;
  40. .tabbar-box {
  41. position: relative;
  42. display: flex;
  43. width: 100%;
  44. background: #fff;
  45. border-radius: 2.667vw;
  46. padding: 2.000vw 2.667vw;
  47. box-sizing: border-box;
  48. z-index: 2;
  49. box-shadow: 0.000vw 0.533vw 1.333vw 0.533vw rgba(0, 0, 0, 0.1);
  50. &:after {
  51. content: '';
  52. position: absolute;
  53. bottom: -2.133vw;
  54. left: 0;
  55. right: 0;
  56. margin: auto;
  57. width: 6.667vw;
  58. height: 6.667vw;
  59. transform: rotate(45deg);
  60. background: #fff;
  61. z-index: 1;
  62. box-shadow: 0.533vw 0.533vw 1.333vw 0.267vw rgba(0, 0, 0, 0.1);
  63. border-radius: 0.533vw;
  64. }
  65. &:before {
  66. content: '';
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. width: 100%;
  71. height: 100%;
  72. background: #ffffff;
  73. border-radius: 2.667vw;
  74. z-index: 2;
  75. }
  76. .tabbar-box-item {
  77. // position: relative;
  78. width: 100%;
  79. z-index: 3;
  80. margin: 1.333vw;
  81. color: $uni-color-subtitle;
  82. text-align: center;
  83. font-size: $uni-font-size-base;
  84. .box-image {
  85. width: 100%;
  86. height: $uni-img-size-lg;
  87. }
  88. }
  89. }
  90. }
  91. </style>>