MoreService.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <!-- 首页更多服务 -->
  3. <div class="moreServices">
  4. <div class="inner">
  5. <div class="title">
  6. <h1>更多服务</h1>
  7. <p> More services</p>
  8. </div>
  9. <ul class="serviceList">
  10. <li v-for="(item, index) in arr" :key="index">
  11. <img class="left" :src="item.leftImg">
  12. <div class="left detail">
  13. <img :src="item.titleTopImg" alt="">
  14. <h3>{{ item.title }}</h3>
  15. <p>
  16. <!-- 外链数据 -->
  17. <NuxtLink to="/primaryNavigation/1">
  18. 查看详情
  19. <span class="iconfont icon-youjiantou"></span>
  20. </NuxtLink>
  21. </p>
  22. </div>
  23. </li>
  24. </ul>
  25. </div>
  26. </div>
  27. </template>
  28. <script setup>
  29. let arr = [
  30. {
  31. id: 1,
  32. title: "会员服务",
  33. titleTopImg: "/images/Group 1560.png",
  34. leftImg: "/images/djdhdhsjk46448_Endless_rice_fields_565ffc17-1845-4d9d-be71-3c745b1ab6bb.png"
  35. },
  36. {
  37. id: 2,
  38. title: "人员查询",
  39. titleTopImg: "/images/Group 1819.png",
  40. leftImg: "/images/sgbhsihfgisdfaasda45632113_A_Chinese_farmer_carrying_a_hoe_is_h_a23e4b96-a6d7-49e1-a283-68c395f277f9(3).png"
  41. },
  42. {
  43. id: 3,
  44. title: "调研选题",
  45. titleTopImg: "/images/Group 1820.png",
  46. leftImg: "/images/sgbhsihfgisdfaasda45632113_A_Chinese_farmer_carrying_a_hoe_is_h_1ba32eee-c498-4dd7-9cd9-013568c09db7(2).png"
  47. },
  48. {
  49. id: 4,
  50. title: "车辆查询",
  51. titleTopImg: "/images/Group 1821.png",
  52. leftImg: "/images/rgmezdvz_19982_On_a_vast_and_boundless_wheat_field_many_harvest_5b5cfeda-ef17-4551-a935-5f8e3f799b69(2).png"
  53. },
  54. {
  55. id: 5,
  56. title: "地市中心",
  57. titleTopImg: "/images/Group 1822.png",
  58. leftImg: "/images/htjskikess_Harvester_harvesting_in_wheat_fields_619469a3-bdc0-40ca-9ac8-e2f17a0ae33f.png"
  59. },
  60. {
  61. id: 6,
  62. title: "介绍信查询",
  63. titleTopImg: "/images/Group 1823.png",
  64. leftImg: "/images/rgmezdvz_19982_A_Chinese_farmer_carrying_a_hoe_is_hoeing_the_fi_75ccecda-5a25-4a4b-be60-d950bb8a2666(2).png"
  65. }
  66. ]
  67. </script>
  68. <style lang="less">
  69. //更多服务
  70. .moreServices {
  71. width: 100%;
  72. height: 646px;
  73. .inner {
  74. position: relative;
  75. // 标题
  76. .title {
  77. width: 300px;
  78. text-align: center;
  79. margin: 0 auto;
  80. font-family: PingFang SC, PingFang SC;
  81. >h1 {
  82. font-weight: 600;
  83. font-size: 36px;
  84. color: #000000;
  85. line-height: 42px;
  86. letter-spacing: 3px;
  87. font-style: normal;
  88. text-transform: none;
  89. }
  90. >p {
  91. height: 34px;
  92. font-weight: 600;
  93. font-size: 24px;
  94. color: #F4F4F4;
  95. line-height: 24px;
  96. letter-spacing: 2px;
  97. font-style: normal;
  98. text-transform: none;
  99. }
  100. }
  101. .title::before {
  102. content: " ";
  103. display: inline-block;
  104. position: absolute;
  105. top: 14px;
  106. left: 34px;
  107. width: 366px;
  108. height: 23px;
  109. background: url("../../static/images/Frame 486.png") no-repeat;
  110. }
  111. .title::after {
  112. content: " ";
  113. display: inline-block;
  114. position: absolute;
  115. top: 14px;
  116. right: 34px;
  117. width: 366px;
  118. height: 23px;
  119. background: url("../../static/images/Frame 485.png") no-repeat;
  120. }
  121. >.serviceList {
  122. >li {
  123. width: 380px;
  124. float: left;
  125. position: relative;
  126. margin: 17px 30px 40px 0;
  127. >img {
  128. width: 240px;
  129. height: 240px;
  130. }
  131. >.detail {
  132. width: 170px;
  133. height: 240px;
  134. position: absolute;
  135. background-color: #fff;
  136. top: -12px;
  137. right: 0;
  138. box-shadow: 0px 0px 16px 1px rgba(0, 0, 0, 0.1);
  139. border: 1px solid #F0F0F0;
  140. >img {
  141. width: 52px;
  142. height: 52px;
  143. margin: 54px 57px 14px 61px
  144. }
  145. >h3 {
  146. font-family: PingFang SC;
  147. font-weight: 600;
  148. font-size: 20px;
  149. color: #000000;
  150. line-height: 23px;
  151. letter-spacing: 2px;
  152. text-align: center;
  153. font-style: normal;
  154. text-transform: none;
  155. }
  156. >p {
  157. width: 116px;
  158. height: 32px;
  159. line-height: 32px;
  160. border: 1px solid #eee;
  161. margin: 26px 25px 34px 29px;
  162. border-radius: 18px;
  163. font-weight: 400;
  164. font-size: 12px;
  165. color: #139602;
  166. letter-spacing: 1px;
  167. text-align: center;
  168. font-style: normal;
  169. text-transform: none;
  170. a{
  171. color: #139602;
  172. }
  173. }
  174. >p:hover {
  175. background-color: #139602;
  176. }
  177. >p:hover a{
  178. color: #fff;
  179. }
  180. }
  181. >.detail::after {
  182. content: "";
  183. width: 0;
  184. height: 0;
  185. border-left: 31px solid transparent;
  186. border-top: 10px solid #e1e1e1;
  187. position: absolute;
  188. top: - 70px;
  189. left: - 40px;
  190. }
  191. }
  192. >li:nth-child(3),
  193. >li:nth-child(6) {
  194. margin-right: 0;
  195. }
  196. }
  197. }
  198. }
  199. </style>