MoreService.vue 6.9 KB

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