service.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <template>
  2. <div id="service">
  3. <el-row>
  4. <el-col :span="24" class="service">
  5. <el-col :span="24" class="one">
  6. <div class="title">办事事项</div>
  7. <div class="English">AFFAIRS</div>
  8. </el-col>
  9. <el-col :span="24" class="two">
  10. <el-col
  11. :span="6"
  12. :style="`background: url(${item.url}) center no-repeat`"
  13. class="list"
  14. v-for="(item, index) in menuList"
  15. :key="index"
  16. @click="toCommon(item)"
  17. >
  18. <div class="name">
  19. {{ item.name }}
  20. </div>
  21. </el-col>
  22. </el-col>
  23. <el-col :span="24" class="thr">
  24. <el-col :span="12" class="left">
  25. <div class="title">政策法规</div>
  26. <div class="English">POLITICS and REGULATIONS</div>
  27. </el-col>
  28. <el-col :span="12" class="right" @click="toPolicy">查看更多 ></el-col>
  29. </el-col>
  30. <el-col :span="24" class="four">
  31. <el-col :span="3" class="left">
  32. <el-image class="image" src="/src/assets/service_5.jpg" fit="fill" />
  33. </el-col>
  34. <el-col :span="21" class="right">
  35. <el-col :span="12" class="list" v-for="(item, index) in list" :key="index" @click="toView(item)">
  36. <el-col :span="4" class="left">
  37. <div class="year" v-if="item.time">{{ moment(item.time).format('YYYY') }}</div>
  38. <div class="date" v-if="item.time">{{ moment(item.time).format('MM-DD') }}</div>
  39. </el-col>
  40. <el-col :span="20" class="right">
  41. <el-col :span="24" class="name textOver">
  42. <el-tooltip effect="dark" :content="item.title" placement="top">
  43. {{ item.title || '暂无标题' }}
  44. </el-tooltip>
  45. </el-col>
  46. <el-col :span="24" class="content"> {{ item.content || '暂无内容' }}</el-col>
  47. </el-col>
  48. </el-col>
  49. </el-col>
  50. </el-col>
  51. <el-col :span="24" class="one">
  52. <div class="title">服务内容</div>
  53. <div class="English">SERVICE CONTENT</div>
  54. </el-col>
  55. <el-col :span="24" class="five">
  56. <el-carousel height="300px" :interval="5000" type="card">
  57. <el-carousel-item v-for="(item, index) in carouselList" :key="index">
  58. <el-col :span="24" class="content" :style="`background-image: url(${item.url})`" @click="toService(item)">
  59. <el-col :span="24" class="title"> {{ item.title }}</el-col>
  60. <el-col :span="12" class="brief"> {{ item.content }}</el-col>
  61. </el-col>
  62. </el-carousel-item>
  63. </el-carousel>
  64. </el-col>
  65. </el-col>
  66. </el-row>
  67. </div>
  68. </template>
  69. <script setup lang="ts">
  70. import moment from 'moment';
  71. import type { Ref } from 'vue';
  72. import { ref, toRefs } from 'vue';
  73. // #region 参数传递
  74. const props = defineProps({
  75. serviceList: { type: Array, default: () => [] }
  76. });
  77. const { serviceList } = toRefs(props);
  78. // 列表
  79. const list: Ref<any> = ref(serviceList);
  80. // 菜单
  81. const menuList: Ref<any> = ref([
  82. { name: '技术合同认定登记', url: '/src/assets/service_1.jpg', route: '/' },
  83. { name: '科技成果登记', url: '/src/assets/service_2.jpg', route: '/' },
  84. { name: '敬请期待', url: '/src/assets/service_3.jpg', route: '/' },
  85. { name: '敬请期待', url: '/src/assets/service_4.jpg', route: '/' }
  86. ]);
  87. // 菜单
  88. const carouselList: Ref<any> = ref([
  89. { title: '技术转移', url: '/src/assets/service1.png', content: '为企业提供跨领域、跨区域、全过程的技术转移集成服务。', type: '0' },
  90. {
  91. title: '科技金融',
  92. url: '/src/assets/service2.png',
  93. content: '面向科技型企业开展科技保险、科技担保、知识产权质押等科技金融服务,提供天使投资、创业投资等股权投资服务等。',
  94. type: '1'
  95. },
  96. {
  97. title: '政策咨询/服务',
  98. url: '/src/assets/service3.png',
  99. content: '为科学技术发展规划的编制和科研项目的组织实施提供科技发展水平和其他各方面的预测、设计实施方案等集成化应用的咨询和服务。',
  100. type: '2'
  101. },
  102. {
  103. title: '科技评估/评价',
  104. url: '/src/assets/service4.png',
  105. content:
  106. '遵循一定的原则、程序和标准,运用科学、可行的方法对承担科技战略、规划、政策、改革、计划、项目、载体、机构、科技成果、人才、资金预算及其他科技相关活动的研究和全过程评估、评价工作,提供科技创新发展决策辅助等服务。',
  107. type: '3'
  108. },
  109. {
  110. title: '知识产权',
  111. url: '/src/assets/service5.png',
  112. content: '提供知识产权代理、信息、咨询、培训等,以及知识产权分析评议、运营实施、保护维权等服务。',
  113. type: '4'
  114. },
  115. {
  116. title: '创业孵化',
  117. url: '/src/assets/service6.png',
  118. content: '为创业团队、科技型企业提供共享服务空间、经营场地、政策指导、资金申请、技术鉴定、咨询策划、项目顾问、人才培训等多类创业的服务。',
  119. type: '5'
  120. },
  121. { title: '财税法律', url: '/src/assets/service7.png', content: '为企业提供财税、法律服务。', type: '6' },
  122. { title: '工业设计', url: '/src/assets/service8.png', content: '以工学、美学、经济学为基础对工业产品提供设计服务。', type: '7' },
  123. {
  124. title: '检验检测',
  125. url: '/src/assets/service9.png',
  126. content: '面向设计开发、生产制造、售后服务全过程的观测、分析、测试、检验、标准、认证等第三方检验检测认证服务。',
  127. type: '8'
  128. },
  129. { title: '其他', url: '/src/assets/service10.png', content: '成果转化全链条中的其他类服务。', type: '9' }
  130. ]);
  131. // #endregion
  132. const emit = defineEmits(['toCommon', 'toView', 'toPolicy', 'toService']);
  133. const toCommon = (item) => {
  134. emit('toCommon', item);
  135. };
  136. // 查看
  137. const toView = (item) => {
  138. emit('toView', item);
  139. };
  140. // 政策法规查看更多
  141. const toPolicy = () => {
  142. emit('toPolicy', '0');
  143. };
  144. // 服务内容查看更多
  145. const toService = (item) => {
  146. emit('toService', { type: item.type });
  147. };
  148. </script>
  149. <style lang="scss" scoped>
  150. .service {
  151. width: 1200px;
  152. .one {
  153. width: 100%;
  154. margin: 10px 0;
  155. .title {
  156. font-family: PingFangSC-Medium;
  157. font-size: 24px;
  158. line-height: 26px;
  159. font-weight: 500;
  160. }
  161. .English {
  162. height: 12px;
  163. font-size: 12px;
  164. line-height: 12px;
  165. font-weight: 400;
  166. margin: 5px 0 0 0;
  167. }
  168. }
  169. .two {
  170. display: flex;
  171. justify-content: space-between;
  172. margin: 10px 0;
  173. .list {
  174. border-radius: 5px;
  175. .name {
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. height: 50px;
  180. font-size: 20px;
  181. color: #ffff;
  182. font-family: PingFangSC-Medium;
  183. }
  184. }
  185. .list:hover {
  186. box-shadow: 0 0 16px rgba(35, 116, 255, 0.6);
  187. }
  188. }
  189. .thr {
  190. display: flex;
  191. justify-content: space-between;
  192. align-items: center;
  193. width: 100%;
  194. margin: 10px 0;
  195. .left {
  196. .title {
  197. font-family: PingFangSC-Medium;
  198. font-size: 23px;
  199. line-height: 26px;
  200. font-weight: 500;
  201. }
  202. .English {
  203. height: 12px;
  204. font-size: 11px;
  205. line-height: 12px;
  206. font-weight: 400;
  207. margin: 5px 0 0 0;
  208. }
  209. }
  210. .right {
  211. text-align: right;
  212. font-size: 14px;
  213. }
  214. .right:hover {
  215. color: #2374ff;
  216. }
  217. }
  218. .four {
  219. display: flex;
  220. .left {
  221. .image {
  222. width: 140px;
  223. }
  224. }
  225. .right {
  226. display: flex;
  227. justify-content: space-between;
  228. flex-wrap: wrap;
  229. .list {
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. padding: 20px;
  234. transition: all 0.3s;
  235. .left {
  236. font-family: PingFangSC-Regular;
  237. font-size: 12px;
  238. color: #2374ff;
  239. line-height: 12px;
  240. .year {
  241. margin-bottom: 2px;
  242. }
  243. .date {
  244. font-size: 22px;
  245. line-height: 22px;
  246. margin-bottom: 10px;
  247. }
  248. }
  249. .right {
  250. .name {
  251. font-family: PingFangSC-Medium;
  252. font-size: 16px;
  253. color: #121834;
  254. line-height: 16px;
  255. font-weight: 700;
  256. margin-bottom: 8px;
  257. }
  258. .content {
  259. font-size: 12px;
  260. color: #525a68;
  261. line-height: 19px;
  262. font-weight: 400;
  263. display: -webkit-box;
  264. -webkit-line-clamp: 2;
  265. -webkit-box-orient: vertical;
  266. overflow: hidden;
  267. text-overflow: ellipsis;
  268. margin-top: 8px;
  269. }
  270. }
  271. }
  272. .list:hover {
  273. background: #f0f7ff;
  274. box-shadow: 0 0 16px rgba(205, 205, 205, 0.6);
  275. }
  276. }
  277. }
  278. .five {
  279. .content {
  280. background: #1f2431;
  281. background-repeat: no-repeat;
  282. background-size: contain;
  283. background-position: right bottom;
  284. height: 300px;
  285. padding: 20px;
  286. width: 100%;
  287. color: #ffff;
  288. .title {
  289. font-family: PingFangSC-Medium;
  290. font-size: 23px;
  291. line-height: 26px;
  292. font-weight: 500;
  293. margin: 10px 0;
  294. }
  295. .brief {
  296. height: 12px;
  297. font-size: 12px;
  298. line-height: 12px;
  299. font-weight: 400;
  300. margin: 5px 0 0 0;
  301. }
  302. }
  303. }
  304. }
  305. </style>