en-tab.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="tab-box">
  3. <view class="tab-item">
  4. <view class="tab-content">
  5. <image class="tab-img" src="/static/img/tabBar/home-select.png"></image>
  6. <view class="tab-text sys-size-24 text-color-dominant sys-weight-500">工作台</view>
  7. </view>
  8. </view>
  9. <view class="tab-item">
  10. <view class="tab-content">
  11. <image class="tab-img" src="/static/img/tabBar/home-select.png"></image>
  12. <view class="tab-text sys-size-24 text-color-dominant sys-weight-500">任务</view>
  13. </view>
  14. </view>
  15. <view class="tab-item">
  16. <view class="tab-content">
  17. <image class="tab-img" src="/static/img/tabBar/home-select.png"></image>
  18. <view class="tab-text sys-size-24 text-color-dominant sys-weight-500">贷后</view>
  19. </view>
  20. </view>
  21. <view class="tab-item">
  22. <view class="tab-content">
  23. <image class="tab-img" src="/static/img/tabBar/home-select.png"></image>
  24. <view class="tab-text sys-size-24 text-color-dominant sys-weight-500">统计</view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. name:'en-tab',
  32. props:{
  33. 'tabIndex':{
  34. default:1
  35. }
  36. },
  37. data() {
  38. return {};
  39. },
  40. }
  41. </script>
  42. <style lang="scss">
  43. .tab-box{
  44. display: flex;
  45. justify-content: space-between;
  46. height: 120rpx;
  47. padding-bottom: 14rpx;
  48. .tab-item{
  49. width: 25%;
  50. display: flex;
  51. justify-content: center;
  52. .tab-content{
  53. padding-top: 25rpx;
  54. width: 108rpx;
  55. height: 120rpx;
  56. box-sizing: border-box;
  57. box-shadow: 0 4rpx 20rpx 0 rgba(192,192,192,0.55);
  58. border-radius: 0 0 100rpx 100rpx;
  59. .tab-img{
  60. width: 42rpx;
  61. height: 42rpx;
  62. margin-left: 38rpx;
  63. }
  64. .tab-text{
  65. text-align: center;
  66. }
  67. }
  68. }
  69. }
  70. </style>