2.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. <template>
  2. <!--样式1-->
  3. <div class="headLineStyle" v-if="componentStyle == 1">
  4. <div class="headLineTitle" v-if="templateData.length > 0">
  5. <img src="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046342186913.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046367616675.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="http://192.168.1.234:19000/pre/image/png/20251218/176604638975835.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/1766046424308425.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="http://192.168.1.234:19000/pre/image/png/20251218/176604644820176.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="http://192.168.1.234:19000/pre/image/png/20251218/176604644820176.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="http://192.168.1.234:19000/pre/image/png/20251218/176604644820176.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="http://192.168.1.234:19000/pre/image/png/20251218/176604644820176.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="http://192.168.1.234:19000/pre/image/png/20251218/176604644820176.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. </template>
  673. <script setup>
  674. //引入vue
  675. import { ref } from 'vue';
  676. const activeTab = ref(0);
  677. //获得新闻数据
  678. const props = defineProps({
  679. componentStyle: Number,//样式编号
  680. templateData: Array,//新闻数据
  681. });
  682. //组件样式1/2 start ---------------------------------------->
  683. const component_style1_News1 = ref({});
  684. const component_style1_News1Array = ref([]);
  685. const component_style1_News1Array_1 = ref([]);
  686. const component_style1_News2Array = ref([]);
  687. const component_style2_News2Array = ref([]);
  688. const component_style3_News2Array = ref([]);
  689. component_style1_News1.value = props.templateData[0];
  690. component_style1_News1Array.value = props.templateData.slice(0, 3);
  691. component_style1_News1Array_1.value = props.templateData.slice(0, 2);
  692. component_style1_News2Array.value = props.templateData.slice(1, 4);
  693. component_style2_News2Array.value = props.templateData.slice(1, 3);
  694. component_style3_News2Array.value = props.templateData.slice(1, 2);
  695. //组件样式1 end ---------------------------------------->
  696. //组件样式26/27 start ---------------------------------------->
  697. //样式1 - 一屏4条
  698. const component_style26_News1 = ref({})
  699. const component_style26_News1Array = ref([])
  700. const component_style26_News2 = ref({})
  701. const component_style26_News2Array = ref([])
  702. const component_style26_News3 = ref({})
  703. const component_style26_News3Array = ref([])
  704. if (props.templateData.length > 0) {
  705. if (props.templateData.length > 0) {
  706. component_style26_News1.value = props.templateData[0]
  707. component_style26_News1Array.value = props.templateData.slice(1, 4)
  708. }
  709. if (props.templateData.length > 4) {
  710. component_style26_News2.value = props.templateData[5]
  711. component_style26_News2Array.value = props.templateData.slice(6, 8)
  712. }
  713. if (props.templateData.length > 8) {
  714. component_style26_News3.value = props.templateData[9]
  715. component_style26_News3Array.value = props.templateData.slice(9, 12)
  716. }
  717. }
  718. //样式2 - 一屏3条
  719. const component_style27_News1 = ref({})
  720. const component_style27_News1Array = ref([])
  721. const component_style27_News2 = ref({})
  722. const component_style27_News2Array = ref([])
  723. const component_style27_News3 = ref({})
  724. const component_style27_News3Array = ref([])
  725. if (props.templateData.length > 0) {
  726. if (props.templateData.length > 0) {
  727. component_style27_News1.value = props.templateData[0]
  728. component_style27_News1Array.value = props.templateData.slice(1, 3)
  729. }
  730. if (props.templateData.length > 3) {
  731. component_style27_News2.value = props.templateData[3]
  732. component_style27_News2Array.value = props.templateData.slice(4, 6)
  733. }
  734. if (props.templateData.length > 6) {
  735. component_style27_News3.value = props.templateData[7]
  736. component_style27_News3Array.value = props.templateData.slice(7, 9)
  737. }
  738. }
  739. //样式3 - 一屏2条
  740. const component_style28_News1 = ref({})
  741. const component_style28_News1Array = ref([])
  742. const component_style28_News2 = ref({})
  743. const component_style28_News2Array = ref([])
  744. const component_style28_News3 = ref({})
  745. const component_style28_News3Array = ref([])
  746. if (props.templateData.length > 0) {
  747. if (props.templateData.length > 0) {
  748. component_style28_News1.value = props.templateData[0]
  749. component_style28_News1Array.value = props.templateData.slice(1, 2)
  750. }
  751. if (props.templateData.length > 2) {
  752. component_style28_News2.value = props.templateData[2]
  753. component_style28_News2Array.value = props.templateData.slice(3, 4)
  754. }
  755. if (props.templateData.length > 4) {
  756. component_style28_News3.value = props.templateData[4]
  757. component_style28_News3Array.value = props.templateData.slice(5, 6)
  758. }
  759. }
  760. ///组件样式29 - 一屏1条
  761. const component_style29_News1 = ref({})
  762. const component_style29_News2 = ref({})
  763. const component_style29_News3 = ref({})
  764. if (props.templateData.length > 0) {
  765. if (props.templateData.length > 0) {
  766. component_style29_News1.value = props.templateData[0]
  767. }
  768. if (props.templateData.length > 1) {
  769. component_style29_News2.value = props.templateData[1]
  770. }
  771. if (props.templateData.length > 2) {
  772. component_style29_News3.value = props.templateData[2]
  773. }
  774. }
  775. //滚动
  776. const activeIndex = ref(0);
  777. const sliderStyle = computed(() => {
  778. // 每个headLineTitleBox的高度是70px + 间距30px = 100px
  779. const translateY = -(activeIndex.value * 100);
  780. return {
  781. transform: `translateY(${translateY}px)`,
  782. transition: 'transform 0.3s ease-in-out'
  783. };
  784. });
  785. const setActive = (index) => {
  786. activeIndex.value = index;
  787. };
  788. //组件样式1 end ---------------------------------------->
  789. </script>
  790. <style lang="less" scoped>
  791. //基础样式 start ---------------------------------------->
  792. .headLineStyle {
  793. width: 1200px;
  794. height: 110px;
  795. margin: 0 auto;
  796. box-sizing: border-box;
  797. padding: 0 100px 0 100px;
  798. .headLineTitle {
  799. display: flex;
  800. align-items: center;
  801. justify-content: center;
  802. margin-bottom: 20px;
  803. a {
  804. font-weight: bold;
  805. font-size: 30px;
  806. color: #A91B33;
  807. }
  808. img {
  809. margin-right: 20px;
  810. }
  811. }
  812. .headLineContent {
  813. display: flex;
  814. align-items: center;
  815. justify-content: center;
  816. div {
  817. margin-right: 40px;
  818. overflow: hidden;
  819. text-overflow: ellipsis;
  820. white-space: nowrap;
  821. a {
  822. font-size: 18px;
  823. color: #333333;
  824. }
  825. &:last-child {
  826. margin-right: 0;
  827. }
  828. }
  829. }
  830. }
  831. //基础样式 end ---------------------------------------->
  832. //皮肤2 样式1 start---------------------------------------->
  833. .headLineStyle1_skin2 {
  834. border: 1px solid #E4E4E4;
  835. width: 1200px;
  836. height: 110px;
  837. box-sizing: border-box;
  838. padding: 0 15px 0 40px;
  839. display: flex;
  840. align-items: center;
  841. justify-content: space-between;
  842. .headLineContentBox {
  843. width: 1000px;
  844. height: 70px;
  845. overflow: hidden;
  846. position: relative;
  847. .headLineSlider {
  848. display: flex;
  849. flex-direction: column; // 改为垂直方向
  850. width: 100%;
  851. height: 210px; // 3个titleBox,每个70px高
  852. }
  853. }
  854. .headLineTitleBox {
  855. text-align: center;
  856. height: 70px; // 明确设置高度
  857. width: 100%;
  858. margin-bottom: 30px;
  859. flex-shrink: 0; // 防止收缩
  860. display: flex;
  861. flex-direction: column;
  862. justify-content: center;
  863. .headLineTop {
  864. margin-bottom: 8px;
  865. font-weight: bold;
  866. a {
  867. font-size: 30px;
  868. color: #A91B33;
  869. }
  870. }
  871. .headLineBottom {
  872. display: flex;
  873. align-items: center;
  874. justify-content: center;
  875. div {
  876. width: 32%;
  877. margin-right: 30px;
  878. white-space: nowrap;
  879. overflow: hidden;
  880. text-overflow: ellipsis;
  881. a {
  882. font-size: 18px;
  883. color: #333333;
  884. }
  885. &:last-child {
  886. margin-right: 0;
  887. }
  888. }
  889. }
  890. }
  891. .headLineIcon {
  892. div {
  893. width: 10px;
  894. height: 10px;
  895. background: #EDEDED;
  896. margin-bottom: 10px;
  897. cursor: pointer;
  898. transition: background 0.3s ease;
  899. &:last-child {
  900. margin-bottom: 0;
  901. }
  902. &.active {
  903. background: #A91B33;
  904. }
  905. &:hover {
  906. background: #A91B33;
  907. }
  908. }
  909. }
  910. }
  911. //皮肤2 样式1 start---------------------------------------->
  912. //样式4
  913. .headLineContent4 {
  914. line-height: 100px;
  915. .headLineTitle {
  916. margin-bottom: 0;
  917. }
  918. }
  919. //样式5
  920. .headLineContent5 {
  921. padding: 15px 100px 15px 100px;
  922. .headLineTitle {
  923. margin-bottom: 0;
  924. }
  925. .headLineContent {
  926. margin-top: 30px;
  927. display: flex;
  928. align-items: center;
  929. justify-content: center;
  930. div {
  931. width: 360px;
  932. height: 5px;
  933. background: #ccdae0;
  934. margin-right: 10px;
  935. }
  936. .active {
  937. background: #A91B33;
  938. }
  939. }
  940. }
  941. //样式7
  942. .headLineContent7 {
  943. .headLineTitle {
  944. img {
  945. margin-right: 30px;
  946. }
  947. }
  948. }
  949. //样式10
  950. .headLineContent10 {
  951. line-height: 100px;
  952. .headLineTitle {
  953. margin-bottom: 0;
  954. img {
  955. margin-right: 30px;
  956. }
  957. }
  958. }
  959. //样式11
  960. .headLineContent11 {
  961. padding: 15px 100px 15px 100px;
  962. .headLineTitle {
  963. margin-bottom: 0;
  964. img {
  965. margin-right: 30px;
  966. }
  967. a {
  968. white-space: nowrap;
  969. overflow: hidden;
  970. text-overflow: ellipsis;
  971. }
  972. }
  973. .headLineContent {
  974. margin-top: 30px;
  975. display: flex;
  976. align-items: center;
  977. justify-content: center;
  978. div {
  979. width: 360px;
  980. height: 5px;
  981. background: #ccdae0;
  982. margin-right: 10px;
  983. }
  984. .active {
  985. background: #A91B33;
  986. }
  987. }
  988. }
  989. //样式19
  990. .headLineContent19 {
  991. padding: 20px 50px;
  992. margin-bottom: 0;
  993. .headLineTitle {
  994. width: 1100px;
  995. height: 70px;
  996. background-color: #f6fcff;
  997. position: relative;
  998. img {
  999. width: 46px;
  1000. height: 46px;
  1001. position: absolute;
  1002. top: 0px;
  1003. left: 0px;
  1004. }
  1005. }
  1006. }
  1007. //样式20
  1008. .headLineContent20 {
  1009. width: 1196px;
  1010. height: 110px;
  1011. background-color: #fafafa;
  1012. position: relative;
  1013. padding-top: 5px;
  1014. img {
  1015. width: 63px;
  1016. height: 32px;
  1017. position: absolute;
  1018. top: 15px;
  1019. left: 30px;
  1020. }
  1021. }
  1022. //样式23
  1023. .headLineContent23 {
  1024. width: 1196px;
  1025. height: 110px;
  1026. background-color: #fafafa;
  1027. position: relative;
  1028. padding: 32px 100px;
  1029. img {
  1030. width: 63px;
  1031. height: 32px;
  1032. position: absolute;
  1033. top: 38px;
  1034. left: 30px;
  1035. }
  1036. }
  1037. //样式24
  1038. .headLineContent24 {
  1039. width: 1196px;
  1040. height: 110px;
  1041. background-color: #fafafa;
  1042. position: relative;
  1043. padding: 15px 100px;
  1044. img {
  1045. width: 63px;
  1046. height: 32px;
  1047. position: absolute;
  1048. top: 25px;
  1049. left: 30px;
  1050. }
  1051. .headLineTitle {
  1052. margin-bottom: 0;
  1053. }
  1054. .headLineContent {
  1055. margin-top: 30px;
  1056. display: flex;
  1057. align-items: center;
  1058. justify-content: center;
  1059. div {
  1060. width: 360px;
  1061. height: 5px;
  1062. background: #ccdae0;
  1063. margin-right: 10px;
  1064. }
  1065. .active {
  1066. background: #A91B33;
  1067. }
  1068. }
  1069. }
  1070. //样式26 样式27
  1071. .headLineStyle1_skin26 {
  1072. border:1px solid #E4E4E4;
  1073. width: 1200px;
  1074. height: 110px;
  1075. box-sizing: border-box;
  1076. padding:32px 15px 32px 40px;
  1077. display: flex;
  1078. align-items: center;
  1079. justify-content: space-between;
  1080. .headLineContentBox {
  1081. width: 1000px;
  1082. height: 70px;
  1083. overflow: hidden;
  1084. position: relative;
  1085. scrollbar-width: none;
  1086. .headLineSlider {
  1087. display: flex;
  1088. flex-direction: column; // 改为垂直方向
  1089. width: 100%;
  1090. height: 210px; // 3个titleBox,每个70px高
  1091. }
  1092. }
  1093. .headLineTitleBox {
  1094. text-align: center;
  1095. height: 70px; // 明确设置高度
  1096. width: 100%;
  1097. margin-bottom: 30px;
  1098. flex-shrink: 0; // 防止收缩
  1099. display: flex;
  1100. flex-direction: column;
  1101. justify-content: center;
  1102. .headLineTop {
  1103. font-size: 30px;
  1104. color:#A91B33;
  1105. margin-bottom: 6px;
  1106. font-weight: bold;
  1107. a{
  1108. color: #A91B33;
  1109. }
  1110. }
  1111. .headLineMiddle {
  1112. font-size: 30px;
  1113. color:#A91B33;
  1114. font-weight: bold;
  1115. a{
  1116. color: #A91B33;
  1117. }
  1118. }
  1119. .headLineBottom {
  1120. display: flex;
  1121. align-items: center;
  1122. justify-content: center;
  1123. div {
  1124. width: 32%;
  1125. margin-right: 30px;
  1126. font-size: 18px;
  1127. color:#333333;
  1128. white-space: nowrap;
  1129. overflow: hidden;
  1130. text-overflow: ellipsis;
  1131. &:last-child {
  1132. margin-right: 0;
  1133. }
  1134. a{
  1135. color: #333333;
  1136. }
  1137. }
  1138. }
  1139. }
  1140. .headLineIcon {
  1141. div {
  1142. width: 10px;
  1143. height: 10px;
  1144. background: #EDEDED;
  1145. margin-bottom: 10px;
  1146. cursor: pointer;
  1147. transition: background 0.3s ease;
  1148. &:last-child {
  1149. margin-bottom: 0;
  1150. }
  1151. &.active {
  1152. background: #A91B33;
  1153. }
  1154. &:hover {
  1155. background: #A91B33;
  1156. }
  1157. }
  1158. }
  1159. }
  1160. //样式30
  1161. .headLineStyle1_skin30 {
  1162. border:none;
  1163. }
  1164. </style>