3.vue 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  1. <template>
  2. <!--样式1-->
  3. <div class="headLineStyle" v-if="componentStyle == 1">
  4. <div class="headLineTitle" v-if="templateData.length > 0">
  5. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png" />
  6. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  7. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  8. {{ component_style1_News1.title }}
  9. </NuxtLink>
  10. </div>
  11. <div class="headLineContent">
  12. <div v-for="item in component_style1_News2Array" :key="item.id">
  13. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  14. :target="item.islink == 1 ? '_blank' : '_self'">
  15. {{ item.title }}
  16. </NuxtLink>
  17. </div>
  18. </div>
  19. </div>
  20. <!--样式2-->
  21. <div class="headLineStyle" v-if="componentStyle == 2">
  22. <div class="headLineTitle" v-if="templateData.length > 0">
  23. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png" />
  24. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  25. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  26. {{ component_style1_News1.title }}
  27. </NuxtLink>
  28. </div>
  29. <div class="headLineContent">
  30. <div v-for="item in component_style2_News2Array" :key="item.id">
  31. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  32. :target="item.islink == 1 ? '_blank' : '_self'">
  33. {{ item.title }}
  34. </NuxtLink>
  35. </div>
  36. </div>
  37. </div>
  38. <!--样式3-->
  39. <div class="headLineStyle" v-if="componentStyle == 3">
  40. <div class="headLineTitle" v-if="templateData.length > 0">
  41. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png" />
  42. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  43. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  44. {{ component_style1_News1.title }}
  45. </NuxtLink>
  46. </div>
  47. <div class="headLineContent">
  48. <div v-for="item in component_style3_News2Array" :key="item.id">
  49. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  50. :target="item.islink == 1 ? '_blank' : '_self'">
  51. {{ item.title }}
  52. </NuxtLink>
  53. </div>
  54. </div>
  55. </div>
  56. <!--样式4-->
  57. <div class="headLineStyle headLineContent4" v-if="componentStyle == 4">
  58. <div class="headLineTitle" v-if="templateData.length > 0">
  59. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png" />
  60. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  61. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  62. {{ component_style1_News1.title }}
  63. </NuxtLink>
  64. </div>
  65. </div>
  66. <!--样式5-->
  67. <div class="headLineStyle headLineContent5" v-if="componentStyle == 5">
  68. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array" :key="item.id"
  69. :class="{ 'active': activeTab == index }">
  70. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png"
  71. v-if="activeTab == index" />
  72. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  73. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  74. {{ item.title }}
  75. </NuxtLink>
  76. </div>
  77. <div class="headLineContent">
  78. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  79. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  80. <div @mouseenter="activeTab = 2" :class="{ 'active': activeTab == 2 }"></div>
  81. </div>
  82. </div>
  83. <!--样式6-->
  84. <div class="headLineStyle headLineContent5" v-if="componentStyle == 6">
  85. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array_1" :key="item.id"
  86. :class="{ 'active': activeTab == index }">
  87. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001480688860.png"
  88. v-if="activeTab == index" />
  89. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  90. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  91. {{ item.title }}
  92. </NuxtLink>
  93. </div>
  94. <div class="headLineContent">
  95. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  96. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  97. </div>
  98. </div>
  99. <!--样式7-->
  100. <div class="headLineStyle headLineContent7" v-if="componentStyle == 7">
  101. <div class="headLineTitle" v-if="templateData.length > 0">
  102. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png" />
  103. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  104. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  105. {{ component_style1_News1.title }}
  106. </NuxtLink>
  107. </div>
  108. <div class="headLineContent">
  109. <div v-for="item in component_style1_News2Array" :key="item.id">
  110. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  111. :target="item.islink == 1 ? '_blank' : '_self'">
  112. {{ item.title }}
  113. </NuxtLink>
  114. </div>
  115. </div>
  116. </div>
  117. <!--样式8-->
  118. <div class="headLineStyle headLineContent7" v-if="componentStyle == 8">
  119. <div class="headLineTitle" v-if="templateData.length > 0">
  120. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png" />
  121. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  122. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  123. {{ component_style1_News1.title }}
  124. </NuxtLink>
  125. </div>
  126. <div class="headLineContent">
  127. <div v-for="item in component_style2_News2Array" :key="item.id">
  128. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  129. :target="item.islink == 1 ? '_blank' : '_self'">
  130. {{ item.title }}
  131. </NuxtLink>
  132. </div>
  133. </div>
  134. </div>
  135. <!--样式9-->
  136. <div class="headLineStyle headLineContent7" v-if="componentStyle == 9">
  137. <div class="headLineTitle" v-if="templateData.length > 0">
  138. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png" />
  139. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  140. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  141. {{ component_style1_News1.title }}
  142. </NuxtLink>
  143. </div>
  144. <div class="headLineContent">
  145. <div v-for="item in component_style3_News2Array" :key="item.id">
  146. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  147. :target="item.islink == 1 ? '_blank' : '_self'">
  148. {{ item.title }}
  149. </NuxtLink>
  150. </div>
  151. </div>
  152. </div>
  153. <!--样式10-->
  154. <div class="headLineStyle headLineContent10" v-if="componentStyle == 10">
  155. <div class="headLineTitle" v-if="templateData.length > 0">
  156. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png" />
  157. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  158. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  159. {{ component_style1_News1.title }}
  160. </NuxtLink>
  161. </div>
  162. </div>
  163. <!--样式11-->
  164. <div class="headLineStyle headLineContent11" v-if="componentStyle == 11">
  165. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array" :key="item.id"
  166. :class="{ 'active': activeTab == index }">
  167. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png"
  168. v-if="activeTab == index" />
  169. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  170. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  171. {{ item.title }}
  172. </NuxtLink>
  173. </div>
  174. <div class="headLineContent">
  175. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  176. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  177. <div @mouseenter="activeTab = 2" :class="{ 'active': activeTab == 2 }"></div>
  178. </div>
  179. </div>
  180. <!--样式12-->
  181. <div class="headLineStyle headLineContent11" v-if="componentStyle == 12">
  182. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array_1" :key="item.id"
  183. :class="{ 'active': activeTab == index }">
  184. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001498581599.png"
  185. v-if="activeTab == index" />
  186. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  187. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  188. {{ item.title }}
  189. </NuxtLink>
  190. </div>
  191. <div class="headLineContent">
  192. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  193. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  194. </div>
  195. </div>
  196. <!--样式13-->
  197. <div class="headLineStyle headLineContent7" v-if="componentStyle == 13">
  198. <div class="headLineTitle" v-if="templateData.length > 0">
  199. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  200. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  201. {{ component_style1_News1.title }}
  202. </NuxtLink>
  203. </div>
  204. <div class="headLineContent">
  205. <div v-for="item in component_style1_News2Array" :key="item.id">
  206. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  207. :target="item.islink == 1 ? '_blank' : '_self'">
  208. {{ item.title }}
  209. </NuxtLink>
  210. </div>
  211. </div>
  212. </div>
  213. <!--样式14-->
  214. <div class="headLineStyle headLineContent7" v-if="componentStyle == 14">
  215. <div class="headLineTitle" v-if="templateData.length > 0">
  216. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  217. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  218. {{ component_style1_News1.title }}
  219. </NuxtLink>
  220. </div>
  221. <div class="headLineContent">
  222. <div v-for="item in component_style2_News2Array" :key="item.id">
  223. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  224. :target="item.islink == 1 ? '_blank' : '_self'">
  225. {{ item.title }}
  226. </NuxtLink>
  227. </div>
  228. </div>
  229. </div>
  230. <!--样式15-->
  231. <div class="headLineStyle headLineContent7" v-if="componentStyle == 15">
  232. <div class="headLineTitle" v-if="templateData.length > 0">
  233. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  234. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  235. {{ component_style1_News1.title }}
  236. </NuxtLink>
  237. </div>
  238. <div class="headLineContent">
  239. <div v-for="item in component_style3_News2Array" :key="item.id">
  240. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  241. :target="item.islink == 1 ? '_blank' : '_self'">
  242. {{ item.title }}
  243. </NuxtLink>
  244. </div>
  245. </div>
  246. </div>
  247. <!--样式16-->
  248. <div class="headLineStyle headLineContent10" v-if="componentStyle == 16">
  249. <div class="headLineTitle" v-if="templateData.length > 0">
  250. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  251. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  252. {{ component_style1_News1.title }}
  253. </NuxtLink>
  254. </div>
  255. </div>
  256. <!--样式17-->
  257. <div class="headLineStyle headLineContent11" v-if="componentStyle == 17">
  258. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array" :key="item.id"
  259. :class="{ 'active': activeTab == index }">
  260. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  261. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  262. {{ item.title }}
  263. </NuxtLink>
  264. </div>
  265. <div class="headLineContent">
  266. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  267. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  268. <div @mouseenter="activeTab = 2" :class="{ 'active': activeTab == 2 }"></div>
  269. </div>
  270. </div>
  271. <!--样式18-->
  272. <div class="headLineStyle headLineContent11" v-if="componentStyle == 18">
  273. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array_1" :key="item.id"
  274. :class="{ 'active': activeTab == index }">
  275. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  276. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  277. {{ item.title }}
  278. </NuxtLink>
  279. </div>
  280. <div class="headLineContent">
  281. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  282. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  283. </div>
  284. </div>
  285. <!--样式19-->
  286. <div class="headLineStyle headLineContent19" v-if="componentStyle == 19">
  287. <div class="headLineTitle" v-if="templateData.length > 0">
  288. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001514460574.png" />
  289. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  290. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  291. {{ component_style1_News1.title }}
  292. </NuxtLink>
  293. </div>
  294. </div>
  295. <!-- 样式20 -->
  296. <div class="headLineStyle headLineContent20" v-if="componentStyle == 20">
  297. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  298. <div class="headLineTitle" v-if="templateData.length > 0">
  299. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  300. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  301. {{ component_style1_News1.title }}
  302. </NuxtLink>
  303. </div>
  304. <div class="headLineContent">
  305. <div v-for="item in component_style1_News2Array" :key="item.id">
  306. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  307. :target="item.islink == 1 ? '_blank' : '_self'">
  308. {{ item.title }}
  309. </NuxtLink>
  310. </div>
  311. </div>
  312. </div>
  313. <!-- 样式21 -->
  314. <div class="headLineStyle headLineContent20" v-if="componentStyle == 21">
  315. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  316. <div class="headLineTitle" v-if="templateData.length > 0">
  317. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  318. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  319. {{ component_style1_News1.title }}
  320. </NuxtLink>
  321. </div>
  322. <div class="headLineContent">
  323. <div v-for="item in component_style2_News2Array" :key="item.id">
  324. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  325. :target="item.islink == 1 ? '_blank' : '_self'">
  326. {{ item.title }}
  327. </NuxtLink>
  328. </div>
  329. </div>
  330. </div>
  331. <!-- 样式22 -->
  332. <div class="headLineStyle headLineContent20" v-if="componentStyle == 22">
  333. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  334. <div class="headLineTitle" v-if="templateData.length > 0">
  335. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  336. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  337. {{ component_style1_News1.title }}
  338. </NuxtLink>
  339. </div>
  340. <div class="headLineContent">
  341. <div v-for="item in component_style3_News2Array" :key="item.id">
  342. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  343. :target="item.islink == 1 ? '_blank' : '_self'">
  344. {{ item.title }}
  345. </NuxtLink>
  346. </div>
  347. </div>
  348. </div>
  349. <!-- 样式23 -->
  350. <div class="headLineStyle headLineContent23" v-if="componentStyle == 23">
  351. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  352. <div class="headLineTitle" v-if="templateData.length > 0">
  353. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  354. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  355. {{ component_style1_News1.title }}
  356. </NuxtLink>
  357. </div>
  358. </div>
  359. <!--样式24-->
  360. <div class="headLineStyle headLineContent24" v-if="componentStyle == 24">
  361. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  362. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array" :key="item.id"
  363. :class="{ 'active': activeTab == index }">
  364. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  365. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  366. {{ item.title }}
  367. </NuxtLink>
  368. </div>
  369. <div class="headLineContent">
  370. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  371. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  372. <div @mouseenter="activeTab = 2" :class="{ 'active': activeTab == 2 }"></div>
  373. </div>
  374. </div>
  375. <!--样式25-->
  376. <div class="headLineStyle headLineContent24" v-if="componentStyle == 25">
  377. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/1760001531454485.png" />
  378. <div class="headLineTitle" v-for="(item, index) in component_style1_News1Array_1" :key="item.id"
  379. :class="{ 'active': activeTab == index }">
  380. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  381. :target="item.islink == 1 ? '_blank' : '_self'" v-if="activeTab == index">
  382. {{ item.title }}
  383. </NuxtLink>
  384. </div>
  385. <div class="headLineContent">
  386. <div @mouseenter="activeTab = 0" :class="{ 'active': activeTab == 0 }"></div>
  387. <div @mouseenter="activeTab = 1" :class="{ 'active': activeTab == 1 }"></div>
  388. </div>
  389. </div>
  390. <!--样式26-->
  391. <div class="headLineStyle1_skin2" v-if="componentStyle == 26">
  392. <div class="headTip">
  393. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/176000154581322.png">
  394. </div>
  395. <div class="headLineContentBox" ref="contentBox">
  396. <div class="headLineSlider" :style="sliderStyle" v-if="templateData.length > 0">
  397. <div class="headLineTitleBox">
  398. <div class="headLineTop">
  399. <NuxtLink :href="getLinkPathDetail(component_style26_News1)"
  400. :title="component_style26_News1.title"
  401. :target="component_style26_News1.islink == 1 ? '_blank' : '_self'">
  402. {{ getTitleLength(component_style26_News1.title, 33) }}
  403. </NuxtLink>
  404. </div>
  405. <div class="headLineBottom">
  406. <div v-for="item in component_style26_News1Array" :key="item.id">
  407. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  408. :target="item.islink == 1 ? '_blank' : '_self'">
  409. {{ item.title }}
  410. </NuxtLink>
  411. </div>
  412. </div>
  413. </div>
  414. <div class="headLineTitleBox" v-if="templateData.length > 4">
  415. <div class="headLineTop">
  416. <NuxtLink :href="getLinkPathDetail(component_style26_News2)"
  417. :title="component_style26_News2.title"
  418. :target="component_style26_News2.islink == 1 ? '_blank' : '_self'">
  419. {{ component_style26_News2.title }}
  420. </NuxtLink>
  421. </div>
  422. <div class="headLineBottom">
  423. <div v-for="item in component_style26_News2Array" :key="item.id">
  424. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  425. :target="item.islink == 1 ? '_blank' : '_self'">
  426. {{ item.title }}
  427. </NuxtLink>
  428. </div>
  429. </div>
  430. </div>
  431. <div class="headLineTitleBox" v-if="templateData.length > 8">
  432. <div class="headLineTop">
  433. <NuxtLink :href="getLinkPathDetail(component_style26_News3)"
  434. :title="component_style26_News3.title"
  435. :target="component_style26_News3.islink == 1 ? '_blank' : '_self'">
  436. {{ component_style26_News3.title }}
  437. </NuxtLink>
  438. </div>
  439. <div class="headLineBottom">
  440. <div v-for="item in component_style26_News3Array" :key="item.id">
  441. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  442. :target="item.islink == 1 ? '_blank' : '_self'">
  443. {{ item.title }}
  444. </NuxtLink>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="headLineIcon">
  451. <div @mouseover="setActive(0)" :class="{ active: activeIndex === 0 }" v-if="templateData.length > 0"></div>
  452. <div @mouseover="setActive(1)" :class="{ active: activeIndex === 1 }" v-if="templateData.length > 4"></div>
  453. <div @mouseover="setActive(2)" :class="{ active: activeIndex === 2 }" v-if="templateData.length > 8"></div>
  454. </div>
  455. </div>
  456. <!--样式27-->
  457. <div class="headLineStyle1_skin2" v-if="componentStyle == 27">
  458. <div class="headTip">
  459. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/176000154581322.png">
  460. </div>
  461. <div class="headLineContentBox" ref="contentBox">
  462. <div class="headLineSlider" :style="sliderStyle" v-if="templateData.length > 0">
  463. <div class="headLineTitleBox">
  464. <div class="headLineTop">
  465. <NuxtLink :href="getLinkPathDetail(component_style27_News1)"
  466. :title="component_style27_News1.title"
  467. :target="component_style27_News1.islink == 1 ? '_blank' : '_self'">
  468. {{ getTitleLength(component_style27_News1.title, 33) }}
  469. </NuxtLink>
  470. </div>
  471. <div class="headLineBottom">
  472. <div v-for="item in component_style27_News1Array" :key="item.id">
  473. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  474. :target="item.islink == 1 ? '_blank' : '_self'">
  475. {{ item.title }}
  476. </NuxtLink>
  477. </div>
  478. </div>
  479. </div>
  480. <div class="headLineTitleBox" v-if="templateData.length > 3">
  481. <div class="headLineTop">
  482. <NuxtLink :href="getLinkPathDetail(component_style27_News2)"
  483. :title="component_style27_News2.title"
  484. :target="component_style27_News2.islink == 1 ? '_blank' : '_self'">
  485. {{ component_style27_News2.title }}
  486. </NuxtLink>
  487. </div>
  488. <div class="headLineBottom">
  489. <div v-for="item in component_style27_News2Array" :key="item.id">
  490. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  491. :target="item.islink == 1 ? '_blank' : '_self'">
  492. {{ item.title }}
  493. </NuxtLink>
  494. </div>
  495. </div>
  496. </div>
  497. <div class="headLineTitleBox" v-if="templateData.length > 6">
  498. <div class="headLineTop">
  499. <NuxtLink :href="getLinkPathDetail(component_style27_News3)"
  500. :title="component_style27_News3.title"
  501. :target="component_style27_News3.islink == 1 ? '_blank' : '_self'">
  502. {{ component_style27_News3.title }}
  503. </NuxtLink>
  504. </div>
  505. <div class="headLineBottom">
  506. <div v-for="item in component_style27_News3Array" :key="item.id">
  507. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  508. :target="item.islink == 1 ? '_blank' : '_self'">
  509. {{ item.title }}
  510. </NuxtLink>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. <div class="headLineIcon">
  517. <div @mouseover="setActive(0)" :class="{ active: activeIndex === 0 }" v-if="templateData.length > 0"></div>
  518. <div @mouseover="setActive(1)" :class="{ active: activeIndex === 1 }" v-if="templateData.length > 3"></div>
  519. <div @mouseover="setActive(2)" :class="{ active: activeIndex === 2 }" v-if="templateData.length > 6"></div>
  520. </div>
  521. </div>
  522. <!--样式28-->
  523. <div class="headLineStyle1_skin26" v-if="componentStyle == 28">
  524. <div class="headTip">
  525. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/176000154581322.png">
  526. </div>
  527. <div class="headLineContentBox" ref="contentBox">
  528. <div class="headLineSlider" :style="sliderStyle" v-if="templateData.length > 0">
  529. <div class="headLineTitleBox" v-if="templateData.length > 0">
  530. <div class="headLineTop">
  531. <NuxtLink :href="getLinkPathDetail(component_style28_News1)"
  532. :title="component_style28_News1.title"
  533. :target="component_style28_News1.islink == 1 ? '_blank' : '_self'">
  534. {{ getTitleLength(component_style28_News1.title, 33) }}
  535. </NuxtLink>
  536. </div>
  537. <div class="headLineBottom">
  538. <div v-for="item in component_style28_News1Array" :key="item.id">
  539. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  540. :target="item.islink == 1 ? '_blank' : '_self'">
  541. {{ item.title }}
  542. </NuxtLink>
  543. </div>
  544. </div>
  545. </div>
  546. <div class="headLineTitleBox" v-if="templateData.length > 2">
  547. <div class="headLineTop">
  548. <NuxtLink :href="getLinkPathDetail(component_style28_News2)"
  549. :title="component_style28_News2.title"
  550. :target="component_style28_News2.islink == 1 ? '_blank' : '_self'">
  551. {{ getTitleLength(component_style28_News2.title, 33) }}
  552. </NuxtLink>
  553. </div>
  554. <div class="headLineBottom">
  555. <div v-for="item in component_style28_News2Array" :key="item.id">
  556. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  557. :target="item.islink == 1 ? '_blank' : '_self'">
  558. {{ item.title }}
  559. </NuxtLink>
  560. </div>
  561. </div>
  562. </div>
  563. <div class="headLineTitleBox" v-if="templateData.length > 4">
  564. <div class="headLineTop">
  565. <NuxtLink :href="getLinkPathDetail(component_style28_News3)"
  566. :title="component_style28_News3.title"
  567. :target="component_style28_News3.islink == 1 ? '_blank' : '_self'">
  568. {{ getTitleLength(component_style28_News3.title, 33) }}
  569. </NuxtLink>
  570. </div>
  571. <div class="headLineBottom">
  572. <div v-for="item in component_style28_News3Array" :key="item.id">
  573. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  574. :target="item.islink == 1 ? '_blank' : '_self'">
  575. {{ item.title }}
  576. </NuxtLink>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. </div>
  582. <div class="headLineIcon">
  583. <div @mouseover="setActive(0)" :class="{ active: activeIndex === 0 }"></div>
  584. <div @mouseover="setActive(1)" :class="{ active: activeIndex === 1 }"></div>
  585. <div @mouseover="setActive(2)" :class="{ active: activeIndex === 2 }"></div>
  586. </div>
  587. </div>
  588. <!--样式29-->
  589. <div class="headLineStyle1_skin26" v-if="componentStyle == 29">
  590. <div class="headTip">
  591. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/176000154581322.png">
  592. </div>
  593. <div class="headLineContentBox" ref="contentBox">
  594. <div class="headLineSlider" :style="sliderStyle" v-if="templateData.length > 0">
  595. <div class="headLineTitleBox" v-if="templateData.length > 0">
  596. <div class="headLineMiddle">
  597. <NuxtLink :href="getLinkPathDetail(component_style29_News1)"
  598. :title="component_style29_News1.title"
  599. :target="component_style29_News1.islink == 1 ? '_blank' : '_self'">
  600. {{ getTitleLength(component_style29_News1.title, 33) }}
  601. </NuxtLink>
  602. </div>
  603. </div>
  604. <div class="headLineTitleBox" v-if="templateData.length > 1">
  605. <div class="headLineMiddle">
  606. <NuxtLink :href="getLinkPathDetail(component_style29_News2)"
  607. :title="component_style29_News2.title"
  608. :target="component_style29_News2.islink == 1 ? '_blank' : '_self'">
  609. {{ getTitleLength(component_style29_News2.title, 33) }}
  610. </NuxtLink>
  611. </div>
  612. </div>
  613. <div class="headLineTitleBox" v-if="templateData.length > 2">
  614. <div class="headLineMiddle">
  615. <NuxtLink :href="getLinkPathDetail(component_style29_News3)"
  616. :title="component_style29_News3.title"
  617. :target="component_style29_News3.islink == 1 ? '_blank' : '_self'">
  618. {{ getTitleLength(component_style29_News3.title, 33) }}
  619. </NuxtLink>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="headLineIcon">
  625. <div @mouseover="setActive(0)" :class="{ active: activeIndex === 0 }"></div>
  626. <div @mouseover="setActive(1)" :class="{ active: activeIndex === 1 }"></div>
  627. <div @mouseover="setActive(2)" :class="{ active: activeIndex === 2 }"></div>
  628. </div>
  629. </div>
  630. <!--样式30-->
  631. <div class="headLineStyle1_skin26 headLineStyle1_skin30" v-if="componentStyle == 30">
  632. <div class="headTip">
  633. <img src="https://img.bjzxtw.org.cn/pre/image/png/20251009/176000154581322.png">
  634. </div>
  635. <div class="headLineContentBox" ref="contentBox">
  636. <div class="headLineSlider" :style="sliderStyle" v-if="templateData.length > 0">
  637. <div class="headLineTitleBox" v-if="templateData.length > 0">
  638. <div class="headLineMiddle">
  639. <NuxtLink :href="getLinkPathDetail(component_style29_News1)"
  640. :title="component_style29_News1.title"
  641. :target="component_style29_News1.islink == 1 ? '_blank' : '_self'">
  642. {{ getTitleLength(component_style29_News1.title, 33) }}
  643. </NuxtLink>
  644. </div>
  645. </div>
  646. <div class="headLineTitleBox" v-if="templateData.length > 1">
  647. <div class="headLineMiddle">
  648. <NuxtLink :href="getLinkPathDetail(component_style29_News2)"
  649. :title="component_style29_News2.title"
  650. :target="component_style29_News2.islink == 1 ? '_blank' : '_self'">
  651. {{ getTitleLength(component_style29_News2.title, 33) }}
  652. </NuxtLink>
  653. </div>
  654. </div>
  655. <div class="headLineTitleBox" v-if="templateData.length > 2">
  656. <div class="headLineMiddle">
  657. <NuxtLink :href="getLinkPathDetail(component_style29_News3)"
  658. :title="component_style29_News3.title"
  659. :target="component_style29_News3.islink == 1 ? '_blank' : '_self'">
  660. {{ getTitleLength(component_style29_News3.title, 33) }}
  661. </NuxtLink>
  662. </div>
  663. </div>
  664. </div>
  665. </div>
  666. <div class="headLineIcon">
  667. <div @mouseover="setActive(0)" :class="{ active: activeIndex === 0 }"></div>
  668. <div @mouseover="setActive(1)" :class="{ active: activeIndex === 1 }"></div>
  669. <div @mouseover="setActive(2)" :class="{ active: activeIndex === 2 }"></div>
  670. </div>
  671. </div>
  672. <!-- 样式31 -->
  673. <div class="headLineStyle headLineStyle1_skin31" v-if="componentStyle == 31">
  674. <div class="headLineTitle" v-if="templateData.length > 0">
  675. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  676. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  677. {{ component_style1_News1.title }}
  678. </NuxtLink>
  679. </div>
  680. <div class="headLineContent">
  681. <div v-for="item in component_style1_News2Array" :key="item.id">
  682. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  683. :target="item.islink == 1 ? '_blank' : '_self'">
  684. {{ item.title }}
  685. </NuxtLink>
  686. </div>
  687. </div>
  688. </div>
  689. <!-- 样式32 -->
  690. <div class="headLineStyle headLineStyle1_skin32" v-if="componentStyle == 32">
  691. <div class="headLineTitle" v-if="templateData.length > 0">
  692. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  693. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  694. {{ component_style1_News1.title }}
  695. </NuxtLink>
  696. </div>
  697. <div class="headLineContent">
  698. <div v-for="item in component_style1_News2Array" :key="item.id">
  699. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  700. :target="item.islink == 1 ? '_blank' : '_self'">
  701. {{ item.title }}
  702. </NuxtLink>
  703. </div>
  704. </div>
  705. </div>
  706. <!-- 样式33 -->
  707. <div class="headLineStyle headLineStyle1_skin33" v-if="componentStyle == 33">
  708. <div class="headLineTitle" v-if="templateData.length > 0">
  709. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  710. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  711. {{ component_style1_News1.title }}
  712. </NuxtLink>
  713. </div>
  714. <div class="headLineContent">
  715. <div v-for="item in component_style1_News2Array" :key="item.id">
  716. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  717. :target="item.islink == 1 ? '_blank' : '_self'">
  718. {{ item.title }}
  719. </NuxtLink>
  720. </div>
  721. </div>
  722. </div>
  723. <!-- 样式34 -->
  724. <div class="headLineStyle headLineStyle1_skin34" v-if="componentStyle == 34">
  725. <div class="headLineTitle" v-if="templateData.length > 0">
  726. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  727. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  728. {{ component_style1_News1.title }}
  729. </NuxtLink>
  730. </div>
  731. <div class="headLineContent">
  732. <div v-for="item in component_style1_News2Array" :key="item.id">
  733. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  734. :target="item.islink == 1 ? '_blank' : '_self'">
  735. {{ item.title }}
  736. </NuxtLink>
  737. </div>
  738. </div>
  739. </div>
  740. <!-- 样式35 -->
  741. <div class="headLineStyle headLineStyle1_skin35" v-if="componentStyle == 35">
  742. <div class="headLineTitle" v-if="templateData.length > 0">
  743. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  744. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  745. {{ component_style1_News1.title }}
  746. </NuxtLink>
  747. </div>
  748. <div class="headLineContent">
  749. <div v-for="item in component_style1_News2Array" :key="item.id">
  750. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  751. :target="item.islink == 1 ? '_blank' : '_self'">
  752. {{ item.title }}
  753. </NuxtLink>
  754. </div>
  755. </div>
  756. </div>
  757. <!-- 样式36 -->
  758. <div class="headLineStyle headLineStyle1_skin36" v-if="componentStyle == 36">
  759. <div class="headLineTitle" v-if="templateData.length > 0">
  760. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  761. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  762. {{ component_style1_News1.title }}
  763. </NuxtLink>
  764. </div>
  765. <div class="headLineContent">
  766. <div v-for="item in component_style2_News2Array" :key="item.id">
  767. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  768. :target="item.islink == 1 ? '_blank' : '_self'">
  769. {{ item.title }}
  770. </NuxtLink>
  771. </div>
  772. </div>
  773. </div>
  774. <!-- 样式37 -->
  775. <div class="headLineStyle headLineStyle1_skin37" v-if="componentStyle == 37">
  776. <div class="headLineTitle" v-if="templateData.length > 0">
  777. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  778. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  779. {{ component_style1_News1.title }}
  780. </NuxtLink>
  781. </div>
  782. <div class="headLineContent">
  783. <div v-for="item in component_style1_News2Array" :key="item.id">
  784. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  785. :target="item.islink == 1 ? '_blank' : '_self'">
  786. {{ item.title }}
  787. </NuxtLink>
  788. </div>
  789. </div>
  790. </div>
  791. <!-- 样式38 -->
  792. <div class="headLineStyle headLineStyle1_skin38" v-if="componentStyle == 38">
  793. <div class="headLineTitle" v-if="templateData.length > 0">
  794. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  795. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  796. {{ component_style1_News1.title }}
  797. </NuxtLink>
  798. </div>
  799. <div class="headLineContent">
  800. <div v-for="item in component_style2_News2Array" :key="item.id">
  801. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  802. :target="item.islink == 1 ? '_blank' : '_self'">
  803. {{ item.title }}
  804. </NuxtLink>
  805. </div>
  806. </div>
  807. </div>
  808. <!-- 样式39 -->
  809. <div class="headLineStyle headLineStyle1_skin39" v-if="componentStyle == 39">
  810. <div class="headLineTitle" v-if="templateData.length > 0">
  811. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  812. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  813. {{ component_style1_News1.title }}
  814. </NuxtLink>
  815. </div>
  816. <div class="headLineContent">
  817. <div v-for="item in component_style1_News2Array" :key="item.id">
  818. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  819. :target="item.islink == 1 ? '_blank' : '_self'">
  820. {{ item.title }}
  821. </NuxtLink>
  822. </div>
  823. </div>
  824. </div>
  825. <!-- 样式40 -->
  826. <div class="headLineStyle headLineStyle1_skin40" v-if="componentStyle == 40">
  827. <div class="headLineTitle" v-if="templateData.length > 0">
  828. <NuxtLink :href="getLinkPathDetail(component_style1_News1)" :title="component_style1_News1.title"
  829. :target="component_style1_News1.islink == 1 ? '_blank' : '_self'">
  830. {{ component_style1_News1.title }}
  831. </NuxtLink>
  832. </div>
  833. <div class="headLineContent">
  834. <div v-for="item in component_style2_News2Array" :key="item.id">
  835. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  836. :target="item.islink == 1 ? '_blank' : '_self'">
  837. {{ item.title }}
  838. </NuxtLink>
  839. </div>
  840. </div>
  841. </div>
  842. </template>
  843. <script setup>
  844. //引入vue
  845. import { ref } from 'vue';
  846. const activeTab = ref(0);
  847. //获得新闻数据
  848. const props = defineProps({
  849. componentStyle: Number,//样式编号
  850. templateData: Array,//新闻数据
  851. });
  852. //组件样式1/2 start ---------------------------------------->
  853. const component_style1_News1 = ref({});
  854. const component_style1_News1Array = ref([]);
  855. const component_style1_News1Array_1 = ref([]);
  856. const component_style1_News2Array = ref([]);
  857. const component_style2_News2Array = ref([]);
  858. const component_style3_News2Array = ref([]);
  859. component_style1_News1.value = props.templateData[0];
  860. component_style1_News1Array.value = props.templateData.slice(0, 3);
  861. component_style1_News1Array_1.value = props.templateData.slice(0, 2);
  862. component_style1_News2Array.value = props.templateData.slice(1, 4);
  863. component_style2_News2Array.value = props.templateData.slice(1, 3);
  864. component_style3_News2Array.value = props.templateData.slice(1, 2);
  865. //组件样式1 end ---------------------------------------->
  866. //组件样式26/27 start ---------------------------------------->
  867. //样式1 - 一屏4条
  868. const component_style26_News1 = ref({})
  869. const component_style26_News1Array = ref([])
  870. const component_style26_News2 = ref({})
  871. const component_style26_News2Array = ref([])
  872. const component_style26_News3 = ref({})
  873. const component_style26_News3Array = ref([])
  874. if (props.templateData.length > 0) {
  875. if (props.templateData.length > 0) {
  876. component_style26_News1.value = props.templateData[0]
  877. component_style26_News1Array.value = props.templateData.slice(1, 4)
  878. }
  879. if (props.templateData.length > 4) {
  880. component_style26_News2.value = props.templateData[5]
  881. component_style26_News2Array.value = props.templateData.slice(6, 8)
  882. }
  883. if (props.templateData.length > 8) {
  884. component_style26_News3.value = props.templateData[9]
  885. component_style26_News3Array.value = props.templateData.slice(9, 12)
  886. }
  887. }
  888. //样式2 - 一屏3条
  889. const component_style27_News1 = ref({})
  890. const component_style27_News1Array = ref([])
  891. const component_style27_News2 = ref({})
  892. const component_style27_News2Array = ref([])
  893. const component_style27_News3 = ref({})
  894. const component_style27_News3Array = ref([])
  895. if (props.templateData.length > 0) {
  896. if (props.templateData.length > 0) {
  897. component_style27_News1.value = props.templateData[0]
  898. component_style27_News1Array.value = props.templateData.slice(1, 3)
  899. }
  900. if (props.templateData.length > 3) {
  901. component_style27_News2.value = props.templateData[3]
  902. component_style27_News2Array.value = props.templateData.slice(4, 6)
  903. }
  904. if (props.templateData.length > 6) {
  905. component_style27_News3.value = props.templateData[7]
  906. component_style27_News3Array.value = props.templateData.slice(7, 9)
  907. }
  908. }
  909. //样式3 - 一屏2条
  910. const component_style28_News1 = ref({})
  911. const component_style28_News1Array = ref([])
  912. const component_style28_News2 = ref({})
  913. const component_style28_News2Array = ref([])
  914. const component_style28_News3 = ref({})
  915. const component_style28_News3Array = ref([])
  916. if (props.templateData.length > 0) {
  917. if (props.templateData.length > 0) {
  918. component_style28_News1.value = props.templateData[0]
  919. component_style28_News1Array.value = props.templateData.slice(1, 2)
  920. }
  921. if (props.templateData.length > 2) {
  922. component_style28_News2.value = props.templateData[2]
  923. component_style28_News2Array.value = props.templateData.slice(3, 4)
  924. }
  925. if (props.templateData.length > 4) {
  926. component_style28_News3.value = props.templateData[4]
  927. component_style28_News3Array.value = props.templateData.slice(5, 6)
  928. }
  929. }
  930. ///组件样式29 - 一屏1条
  931. const component_style29_News1 = ref({})
  932. const component_style29_News2 = ref({})
  933. const component_style29_News3 = ref({})
  934. if (props.templateData.length > 0) {
  935. if (props.templateData.length > 0) {
  936. component_style29_News1.value = props.templateData[0]
  937. }
  938. if (props.templateData.length > 1) {
  939. component_style29_News2.value = props.templateData[1]
  940. }
  941. if (props.templateData.length > 2) {
  942. component_style29_News3.value = props.templateData[2]
  943. }
  944. }
  945. //滚动
  946. const activeIndex = ref(0);
  947. const sliderStyle = computed(() => {
  948. // 每个headLineTitleBox的高度是70px + 间距30px = 100px
  949. const translateY = -(activeIndex.value * 100);
  950. return {
  951. transform: `translateY(${translateY}px)`,
  952. transition: 'transform 0.3s ease-in-out'
  953. };
  954. });
  955. const setActive = (index) => {
  956. activeIndex.value = index;
  957. };
  958. //组件样式1 end ---------------------------------------->
  959. </script>
  960. <style lang="less" scoped>
  961. //基础样式 start ---------------------------------------->
  962. .headLineStyle {
  963. width: 1200px;
  964. height: 110px;
  965. margin: 0 auto;
  966. box-sizing: border-box;
  967. padding: 0 100px 0 100px;
  968. .headLineTitle {
  969. display: flex;
  970. align-items: center;
  971. justify-content: center;
  972. margin-bottom: 20px;
  973. a {
  974. font-weight: bold;
  975. font-size: 30px;
  976. color: #c82200;
  977. }
  978. img {
  979. margin-right: 20px;
  980. }
  981. }
  982. .headLineContent {
  983. display: flex;
  984. align-items: center;
  985. justify-content: center;
  986. div {
  987. margin-right: 40px;
  988. overflow: hidden;
  989. text-overflow: ellipsis;
  990. white-space: nowrap;
  991. a {
  992. font-size: 18px;
  993. color: #333333;
  994. }
  995. &:last-child {
  996. margin-right: 0;
  997. }
  998. }
  999. }
  1000. }
  1001. //基础样式 end ---------------------------------------->
  1002. //皮肤2 样式1 start---------------------------------------->
  1003. .headLineStyle1_skin2 {
  1004. border: 1px solid #E4E4E4;
  1005. width: 1200px;
  1006. height: 110px;
  1007. box-sizing: border-box;
  1008. padding: 0 15px 0 40px;
  1009. display: flex;
  1010. align-items: center;
  1011. justify-content: space-between;
  1012. .headLineContentBox {
  1013. width: 1000px;
  1014. height: 70px;
  1015. overflow: hidden;
  1016. position: relative;
  1017. .headLineSlider {
  1018. display: flex;
  1019. flex-direction: column; // 改为垂直方向
  1020. width: 100%;
  1021. height: 210px; // 3个titleBox,每个70px高
  1022. }
  1023. }
  1024. .headLineTitleBox {
  1025. text-align: center;
  1026. height: 70px; // 明确设置高度
  1027. width: 100%;
  1028. margin-bottom: 30px;
  1029. flex-shrink: 0; // 防止收缩
  1030. display: flex;
  1031. flex-direction: column;
  1032. justify-content: center;
  1033. .headLineTop {
  1034. margin-bottom: 8px;
  1035. font-weight: bold;
  1036. a {
  1037. font-size: 30px;
  1038. color: #c82200;
  1039. }
  1040. }
  1041. .headLineBottom {
  1042. display: flex;
  1043. align-items: center;
  1044. justify-content: center;
  1045. div {
  1046. width: 32%;
  1047. margin-right: 30px;
  1048. white-space: nowrap;
  1049. overflow: hidden;
  1050. text-overflow: ellipsis;
  1051. a {
  1052. font-size: 18px;
  1053. color: #333333;
  1054. }
  1055. &:last-child {
  1056. margin-right: 0;
  1057. }
  1058. }
  1059. }
  1060. }
  1061. .headLineIcon {
  1062. div {
  1063. width: 10px;
  1064. height: 10px;
  1065. background: #EDEDED;
  1066. margin-bottom: 10px;
  1067. cursor: pointer;
  1068. transition: background 0.3s ease;
  1069. &:last-child {
  1070. margin-bottom: 0;
  1071. }
  1072. &.active {
  1073. background: #c82200;
  1074. }
  1075. &:hover {
  1076. background: #c82200;
  1077. }
  1078. }
  1079. }
  1080. }
  1081. //皮肤2 样式1 start---------------------------------------->
  1082. //样式4
  1083. .headLineContent4 {
  1084. line-height: 100px;
  1085. .headLineTitle {
  1086. margin-bottom: 0;
  1087. }
  1088. }
  1089. //样式5
  1090. .headLineContent5 {
  1091. padding: 15px 100px 15px 100px;
  1092. .headLineTitle {
  1093. margin-bottom: 0;
  1094. }
  1095. .headLineContent {
  1096. margin-top: 30px;
  1097. display: flex;
  1098. align-items: center;
  1099. justify-content: center;
  1100. div {
  1101. width: 360px;
  1102. height: 5px;
  1103. background: #ccdae0;
  1104. margin-right: 10px;
  1105. }
  1106. .active {
  1107. background: #c82200;
  1108. }
  1109. }
  1110. }
  1111. //样式7
  1112. .headLineContent7 {
  1113. .headLineTitle {
  1114. img {
  1115. margin-right: 30px;
  1116. }
  1117. }
  1118. }
  1119. //样式10
  1120. .headLineContent10 {
  1121. line-height: 100px;
  1122. .headLineTitle {
  1123. margin-bottom: 0;
  1124. img {
  1125. margin-right: 30px;
  1126. }
  1127. }
  1128. }
  1129. //样式11
  1130. .headLineContent11 {
  1131. padding: 15px 100px 15px 100px;
  1132. .headLineTitle {
  1133. margin-bottom: 0;
  1134. img {
  1135. margin-right: 30px;
  1136. }
  1137. a {
  1138. white-space: nowrap;
  1139. overflow: hidden;
  1140. text-overflow: ellipsis;
  1141. }
  1142. }
  1143. .headLineContent {
  1144. margin-top: 30px;
  1145. display: flex;
  1146. align-items: center;
  1147. justify-content: center;
  1148. div {
  1149. width: 360px;
  1150. height: 5px;
  1151. background: #ccdae0;
  1152. margin-right: 10px;
  1153. }
  1154. .active {
  1155. background: #c82200;
  1156. }
  1157. }
  1158. }
  1159. //样式19
  1160. .headLineContent19 {
  1161. padding: 20px 50px;
  1162. margin-bottom: 0;
  1163. .headLineTitle {
  1164. width: 1100px;
  1165. height: 70px;
  1166. background-color: #f6fcff;
  1167. position: relative;
  1168. img {
  1169. width: 46px;
  1170. height: 46px;
  1171. position: absolute;
  1172. top: 0px;
  1173. left: 0px;
  1174. }
  1175. }
  1176. }
  1177. //样式20
  1178. .headLineContent20 {
  1179. width: 1196px;
  1180. height: 110px;
  1181. background-color: #fafafa;
  1182. position: relative;
  1183. padding-top: 5px;
  1184. img {
  1185. width: 63px;
  1186. height: 32px;
  1187. position: absolute;
  1188. top: 15px;
  1189. left: 30px;
  1190. }
  1191. }
  1192. //样式23
  1193. .headLineContent23 {
  1194. width: 1196px;
  1195. height: 110px;
  1196. background-color: #fafafa;
  1197. position: relative;
  1198. padding: 32px 100px;
  1199. img {
  1200. width: 63px;
  1201. height: 32px;
  1202. position: absolute;
  1203. top: 38px;
  1204. left: 30px;
  1205. }
  1206. }
  1207. //样式24
  1208. .headLineContent24 {
  1209. width: 1196px;
  1210. height: 110px;
  1211. background-color: #fafafa;
  1212. position: relative;
  1213. padding: 15px 100px;
  1214. img {
  1215. width: 63px;
  1216. height: 32px;
  1217. position: absolute;
  1218. top: 25px;
  1219. left: 30px;
  1220. }
  1221. .headLineTitle {
  1222. margin-bottom: 0;
  1223. }
  1224. .headLineContent {
  1225. margin-top: 30px;
  1226. display: flex;
  1227. align-items: center;
  1228. justify-content: center;
  1229. div {
  1230. width: 360px;
  1231. height: 5px;
  1232. background: #ccdae0;
  1233. margin-right: 10px;
  1234. }
  1235. .active {
  1236. background: #c82200;
  1237. }
  1238. }
  1239. }
  1240. //样式26 样式27
  1241. .headLineStyle1_skin26 {
  1242. border: 1px solid #E4E4E4;
  1243. width: 1200px;
  1244. height: 110px;
  1245. box-sizing: border-box;
  1246. padding: 32px 15px 32px 40px;
  1247. display: flex;
  1248. align-items: center;
  1249. justify-content: space-between;
  1250. .headLineContentBox {
  1251. width: 1000px;
  1252. height: 70px;
  1253. overflow: hidden;
  1254. position: relative;
  1255. scrollbar-width: none;
  1256. .headLineSlider {
  1257. display: flex;
  1258. flex-direction: column; // 改为垂直方向
  1259. width: 100%;
  1260. height: 210px; // 3个titleBox,每个70px高
  1261. }
  1262. }
  1263. .headLineTitleBox {
  1264. text-align: center;
  1265. height: 70px; // 明确设置高度
  1266. width: 100%;
  1267. margin-bottom: 30px;
  1268. flex-shrink: 0; // 防止收缩
  1269. display: flex;
  1270. flex-direction: column;
  1271. justify-content: center;
  1272. .headLineTop {
  1273. font-size: 30px;
  1274. color: #c82200;
  1275. margin-bottom: 6px;
  1276. font-weight: bold;
  1277. a {
  1278. color: #c82200;
  1279. }
  1280. }
  1281. .headLineMiddle {
  1282. font-size: 30px;
  1283. color: #c82200;
  1284. font-weight: bold;
  1285. a {
  1286. color: #c82200;
  1287. }
  1288. }
  1289. .headLineBottom {
  1290. display: flex;
  1291. align-items: center;
  1292. justify-content: center;
  1293. div {
  1294. width: 32%;
  1295. margin-right: 30px;
  1296. font-size: 18px;
  1297. color: #333333;
  1298. white-space: nowrap;
  1299. overflow: hidden;
  1300. text-overflow: ellipsis;
  1301. &:last-child {
  1302. margin-right: 0;
  1303. }
  1304. a {
  1305. color: #333333;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. .headLineIcon {
  1311. div {
  1312. width: 10px;
  1313. height: 10px;
  1314. background: #EDEDED;
  1315. margin-bottom: 10px;
  1316. cursor: pointer;
  1317. transition: background 0.3s ease;
  1318. &:last-child {
  1319. margin-bottom: 0;
  1320. }
  1321. &.active {
  1322. background: #c82200;
  1323. }
  1324. &:hover {
  1325. background: #c82200;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. //样式30
  1331. .headLineStyle1_skin30 {
  1332. border: none;
  1333. }
  1334. //样式31
  1335. .headLineStyle1_skin31 {
  1336. width: 1200px;
  1337. height: 138px;
  1338. border-top: 1px solid #c82200;
  1339. border-bottom: 1px solid #c82200;
  1340. .headLineTitle {
  1341. margin-top: 25px;
  1342. margin-bottom: 15px;
  1343. }
  1344. .headLineContent {
  1345. div {
  1346. color: #c82200;
  1347. a {
  1348. color: #c82200;
  1349. }
  1350. }
  1351. }
  1352. }
  1353. //样式32
  1354. .headLineStyle1_skin32 {
  1355. .headLineTitle {
  1356. margin-top: 25px;
  1357. margin-bottom: 15px;
  1358. padding-top: 25px;
  1359. }
  1360. .headLineContent {
  1361. div {
  1362. color: #c82200;
  1363. a {
  1364. color: #c82200;
  1365. }
  1366. }
  1367. }
  1368. }
  1369. //样式33
  1370. .headLineStyle1_skin33 {
  1371. width: 1200px;
  1372. height: 138px;
  1373. border-top: 1px solid #333333;
  1374. border-bottom: 1px solid #333333;
  1375. .headLineTitle {
  1376. color: #333333;
  1377. margin-top: 25px;
  1378. margin-bottom: 15px;
  1379. a {
  1380. color: #333333;
  1381. }
  1382. }
  1383. .headLineContent {
  1384. div {
  1385. color: #333333;
  1386. a {
  1387. color: #333333;
  1388. }
  1389. }
  1390. }
  1391. }
  1392. //样式34
  1393. .headLineStyle1_skin34 {
  1394. .headLineTitle {
  1395. color: #333333;
  1396. margin-top: 25px;
  1397. margin-bottom: 15px;
  1398. padding-top: 25px;
  1399. a {
  1400. color: #333333;
  1401. }
  1402. }
  1403. .headLineContent {
  1404. div {
  1405. color: #333333;
  1406. a {
  1407. color: #333333;
  1408. }
  1409. }
  1410. }
  1411. }
  1412. //样式35
  1413. .headLineStyle1_skin35 {
  1414. width: 1200px;
  1415. height: 138px;
  1416. border-bottom: 1px solid #333333;
  1417. .headLineTitle {
  1418. color: #333333;
  1419. margin-bottom: 15px;
  1420. margin-top: 25px;
  1421. padding-top: 25px;
  1422. a {
  1423. color: #333333;
  1424. }
  1425. }
  1426. .headLineContent {
  1427. div {
  1428. color: #333333;
  1429. a {
  1430. color: #333333;
  1431. }
  1432. }
  1433. }
  1434. }
  1435. //样式36
  1436. .headLineStyle1_skin36 {
  1437. width: 1200px;
  1438. height: 138px;
  1439. border-bottom: 1px solid #333333;
  1440. .headLineTitle {
  1441. color: #333333;
  1442. margin-bottom: 15px;
  1443. margin-top: 25px;
  1444. padding-top: 25px;
  1445. a {
  1446. color: #333333;
  1447. }
  1448. }
  1449. .headLineContent {
  1450. div {
  1451. color: #333333;
  1452. a {
  1453. color: #333333;
  1454. }
  1455. }
  1456. }
  1457. }
  1458. //样式37
  1459. .headLineStyle1_skin37 {
  1460. width: 1200px;
  1461. height: 138px;
  1462. border-top: 1px solid #333333;
  1463. border-bottom: 1px solid #333333;
  1464. .headLineTitle {
  1465. color: #333333;
  1466. margin-bottom: 15px;
  1467. margin-top: 25px;
  1468. a {
  1469. color: #333333;
  1470. }
  1471. }
  1472. .headLineContent {
  1473. div {
  1474. color: #999999;
  1475. a {
  1476. color: #999999;
  1477. }
  1478. }
  1479. }
  1480. }
  1481. //样式38
  1482. .headLineStyle1_skin38 {
  1483. .headLineTitle {
  1484. color: #333333;
  1485. margin-bottom: 15px;
  1486. margin-top: 25px;
  1487. padding-top: 25px;
  1488. a {
  1489. color: #333333;
  1490. }
  1491. }
  1492. .headLineContent {
  1493. div {
  1494. color: #999999;
  1495. a {
  1496. color: #999999;
  1497. }
  1498. }
  1499. }
  1500. }
  1501. //样式39
  1502. .headLineStyle1_skin39 {
  1503. width: 1200px;
  1504. height: 138px;
  1505. border-bottom: 1px solid #333333;
  1506. .headLineTitle {
  1507. color: #333333;
  1508. margin-bottom: 15px;
  1509. margin-top: 25px;
  1510. padding-top: 25px;
  1511. a {
  1512. color: #333333;
  1513. }
  1514. }
  1515. .headLineContent {
  1516. div {
  1517. color: #999999;
  1518. a {
  1519. color: #999999;
  1520. }
  1521. }
  1522. }
  1523. }
  1524. //样式40
  1525. .headLineStyle1_skin40 {
  1526. width: 1200px;
  1527. height: 138px;
  1528. border-bottom: 1px solid #333333;
  1529. .headLineTitle {
  1530. color: #333333;
  1531. margin-bottom: 15px;
  1532. margin-top: 25px;
  1533. padding-top: 25px;
  1534. a {
  1535. color: #333333;
  1536. }
  1537. }
  1538. .headLineContent {
  1539. div {
  1540. color: #999999;
  1541. a {
  1542. color: #999999;
  1543. }
  1544. }
  1545. }
  1546. }
  1547. </style>