1.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <div>
  3. <!--样式1-->
  4. <div class="tabsNewsBox">
  5. <div class="tabsNewsTitle">
  6. <div class="activeTab" v-if="activeTab == 0">查询服务</div>
  7. </div>
  8. <div class="tabsNewsContent">
  9. <div class="linkSectorItem bg1">
  10. <div class="linkSectorItemImg"><img
  11. src="https://img.bjzxtw.org.cn/pre/image/png/20251204/1764829523821547.png" /></div>
  12. <div class="linkSectorItemTitle">人员查询</div>
  13. </div>
  14. <div class="linkSectorItem bg2">
  15. <div class="linkSectorItemImg"><img
  16. src="https://img.bjzxtw.org.cn/pre/image/png/20251204/1764829535138848.png" /></div>
  17. <div class="linkSectorItemTitle">车辆查询</div>
  18. </div>
  19. <div class="linkSectorItem bg3">
  20. <div class="linkSectorItemImg"><img
  21. src="https://img.bjzxtw.org.cn/pre/image/png/20251204/1764829545715397.png" /></div>
  22. <div class="linkSectorItemTitle">调研选题</div>
  23. </div>
  24. <div class="linkSectorItem bg4">
  25. <div class="linkSectorItemImg"><img
  26. src="https://img.bjzxtw.org.cn/pre/image/png/20251204/1764829554955936.png" /></div>
  27. <div class="linkSectorItemTitle">地市中心</div>
  28. </div>
  29. <div class="linkSectorItem bg5">
  30. <div class="linkSectorItemImg"><img
  31. src="https://img.bjzxtw.org.cn/pre/image/png/20251204/176482956394689.png" /></div>
  32. <div class="linkSectorItemTitle">介绍信查询</div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. props: {
  41. name: {
  42. type: String,
  43. default: ""
  44. },
  45. componentStyle: {
  46. type: Number,
  47. default: 0
  48. }
  49. },
  50. data() {
  51. return {
  52. activeTab: 0
  53. };
  54. },
  55. methods: {
  56. },
  57. mounted() {
  58. },
  59. };
  60. </script>
  61. <style scoped lang="less">
  62. //基本样式
  63. .tabsNewsBox {
  64. height: 460px;
  65. .tabsNewsTitle {
  66. display: flex;
  67. align-items: flex-start;
  68. justify-content: flex-start;
  69. height: 40px;
  70. margin-bottom: 15px;
  71. div {
  72. height: 35px;
  73. width: 138px;
  74. line-height: 32px;
  75. font-size: 22px;
  76. font-weight: bold;
  77. color: #333333;
  78. cursor: pointer;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. white-space: nowrap;
  82. &.activeTab {
  83. color: #154079;
  84. background: url("https://img.bjzxtw.org.cn/pre/image/png/20251203/1764727759430368.png") bottom left no-repeat;
  85. }
  86. }
  87. }
  88. .tabsNewsContent {
  89. width: 380px;
  90. height: 150px;
  91. margin: 0 auto;
  92. display: flex;
  93. flex-wrap: wrap;
  94. align-items: center;
  95. justify-content: space-between;
  96. // border-top: 2px dashed #999;
  97. .linkSectorItem {
  98. width: 185px;
  99. height: 120px;
  100. box-sizing: border-box;
  101. cursor: pointer;
  102. text-align: center;
  103. margin-bottom: 14px;
  104. &:last-child {
  105. margin-bottom: 0;
  106. }
  107. .linkSectorItemImg {
  108. width: 100%;
  109. height: 54px;
  110. line-height: 54px;
  111. margin-top: 21px;
  112. margin-bottom: 10px;
  113. }
  114. .linkSectorItemTitle {
  115. font-size: 16px;
  116. }
  117. &:nth-child(1) {
  118. .linkSectorItemImg {
  119. margin-top: 24px;
  120. margin-bottom: 7px;
  121. }
  122. }
  123. }
  124. .bg1 {
  125. background: url(https://img.bjzxtw.org.cn/pre/image/png/20251204/176483007447579.png) no-repeat center center;
  126. }
  127. .bg2 {
  128. background: url(https://img.bjzxtw.org.cn/pre/image/png/20251204/1764830085351980.png) no-repeat center center;
  129. }
  130. .bg3 {
  131. background: url(https://img.bjzxtw.org.cn/pre/image/png/20251204/176483009768433.png) no-repeat center center;
  132. }
  133. .bg4 {
  134. background: url(https://img.bjzxtw.org.cn/pre/image/png/20251204/1764830107460839.png) no-repeat center center;
  135. }
  136. .bg5 {
  137. background: url(https://img.bjzxtw.org.cn/pre/image/png/20251204/1764830115163124.png) no-repeat center center;
  138. }
  139. }
  140. }
  141. </style>