index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906
  1. <template>
  2. <div>
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 页面导航 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- <HomePageNavigation1></HomePageNavigation1> -->
  8. <!-- 资讯 -->
  9. <HomePageMessage></HomePageMessage>
  10. <!-- 十强称号logo -->
  11. <HomeAdvertising></HomeAdvertising>
  12. <!-- <HomeTopTenTitle></HomeTopTenTitle> -->
  13. <!-- 更多服务 -->
  14. <HomeMoreService></HomeMoreService>
  15. <!-- 三农资讯logo -->
  16. <HomeSannongzixun></HomeSannongzixun>
  17. <!-- 模块一 -->
  18. <div class="farming">
  19. <div class="inner">
  20. <div class="farmerLeft">
  21. <div class="farmer">
  22. <h3>
  23. {{ pageData[0].alias }}
  24. <NuxtLink
  25. :to="{ path: `/newsList/${pageData[0].cid}`, query: { catid: pageData[0].cid } }"
  26. target="_blank" v-if="pageData[0].cid">
  27. 查看更多
  28. </NuxtLink>
  29. </h3>
  30. <ul>
  31. <li v-for="item in boxData1">
  32. <em></em>
  33. <NuxtLink
  34. :to="{ path: `/newsDetail/${item.id}`, query: { listId: routeId, listName: routeName } }"
  35. target="_blank">{{ item.title }}</NuxtLink>
  36. </li>
  37. </ul>
  38. </div>
  39. <div class="farmerbottom">
  40. <!-- <img class="left"
  41. src="../static/images/rgmezdvz_19982_A_Chinese_farmer_carrying_a_hoe_is_hoeing_the_fi_a036c7b3-b05e-4d3d-a371-0bed91ec1ff8.png"
  42. alt=""> -->
  43. <img class="left" :src="boxData2[0].imgurl" v-if="boxData2[0] && hoverStatus == 0">
  44. <img class="left" :src="boxData2[1].imgurl" v-if="boxData2[1] && hoverStatus == 1">
  45. <img class="left" :src="boxData2[2].imgurl" v-if="boxData2[2] && hoverStatus == 2">
  46. <img class="left" :src="boxData2[3].imgurl" v-if="boxData2[3] && hoverStatus == 3">
  47. <img class="left" :src="boxData2[4].imgurl" v-if="boxData2[4] && hoverStatus == 4">
  48. <img class="left" :src="boxData2[5].imgurl" v-if="boxData2[5] && hoverStatus == 5">
  49. <ul class="leftList left">
  50. <li v-for='(item, index) in boxData2' @mouseenter="qhPic(index)">
  51. <NuxtLink
  52. :to="{ path: `/newsDetail/${item.id}`, query: { listId: routeId, listName: routeName } }"
  53. target="_blank">
  54. <h4>
  55. <em></em>
  56. {{ item.title }}
  57. </h4>
  58. <!-- <p>{{ item.introduce }}</p> -->
  59. </NuxtLink>
  60. </li>
  61. <!-- <li>
  62. <h4>
  63. <em></em>
  64. 仪征市农业农村局召开
  65. </h4>
  66. <p>高邮市周山镇开展渔业安全生产应急高邮市周山镇开展渔业</p>
  67. </li> -->
  68. </ul>
  69. </div>
  70. </div>
  71. <div class="farmerRight">
  72. <!-- 致富信息 -->
  73. <div class="rich">
  74. <h3>
  75. {{ pageData[1].alias }}
  76. <NuxtLink
  77. :to="{ path: `/newsList/${pageData[1].cid}`, query: { catid: pageData[1].cid } }"
  78. target="_blank" v-if="pageData[1].cid">
  79. 查看更多
  80. </NuxtLink>
  81. </h3>
  82. <!-- <div class="photo">
  83. <div class="photoL" v-for="item in boxData4">
  84. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  85. <img :src="item.imgurl">
  86. <span>{{ item.title }}</span>
  87. </NuxtLink>
  88. </div>
  89. </div> -->
  90. <ul>
  91. <li v-for="item in boxData3">
  92. <em></em>
  93. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">{{ item.title }}</NuxtLink>
  94. </li>
  95. </ul>
  96. <!-- 轮播图 -->
  97. <div class="banner">
  98. <HomeSmallSwiper1 :message="pageData[1].cid"></HomeSmallSwiper1>
  99. <!-- <HomeSmallSwiper :swiperData="navigation1[17].data"></HomeSmallSwiper> -->
  100. </div>
  101. <!-- 轮播图下小图列表 及内容列表 -->
  102. <div class="photo">
  103. <div class="photoL" v-for="item in boxData4">
  104. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  105. <img :src="item.imgurl">
  106. <span>{{ item.title }}</span>
  107. </NuxtLink>
  108. </div>
  109. </div>
  110. </div>
  111. <!-- 三农调查 -->
  112. <!-- <div class="inquire">
  113. <h3>
  114. 三农调查
  115. <span>查看更多</span>
  116. </h3>
  117. <p>郑州17名警察因出警慢被关禁闭,你怎么看?</p>
  118. <div class="radio">
  119. <el-radio-group v-model="radio1" text-color=#33B023>
  120. <el-radio value="1" size="large">支持,警察不关心百姓应惩罚</el-radio>
  121. <el-radio value="2" size="large">反对,这件事就关禁闭不合理</el-radio>
  122. <el-radio value="3" size="large">建议其他部门效仿此做法</el-radio>
  123. </el-radio-group>
  124. </div>
  125. <div class="btn">
  126. <button class="voting">投票</button>
  127. <button class="look">查看</button>
  128. </div>
  129. </div> -->
  130. </div>
  131. </div>
  132. </div>
  133. <!-- 十强称号logo -->
  134. <HomeTopTenTitle></HomeTopTenTitle>
  135. <!-- 三农科教 -->
  136. <div class="scienceEducation">
  137. <div class="inner">
  138. <!-- 左侧 -->
  139. <div class="scienceLeft">
  140. <HomeSlider :message="pageData[2]"></HomeSlider>
  141. </div>
  142. <!-- 右侧 -->
  143. <div class="scienceRight">
  144. <!-- 标题部分 -->
  145. <h3>
  146. {{ pageData[3].alias }}
  147. <NuxtLink
  148. :to="{ path: `/newsList/${pageData[3].cid}`, query: { catid: pageData[3].cid } }"
  149. target="_blank" v-if="pageData[3].cid">
  150. 查看更多
  151. </NuxtLink>
  152. </h3>
  153. <!-- 轮播图 -->
  154. <div class="banner">
  155. <HomeSmallSwiper1 :message="pageData[3].cid"></HomeSmallSwiper1>
  156. <!-- <HomeSmallSwiper :swiperData="navigation1[17].data"></HomeSmallSwiper> -->
  157. </div>
  158. <!-- 轮播图下小图列表 及内容列表 -->
  159. <div class="banner_b_img">
  160. <div class="photo">
  161. <div class="photoL" v-for="item in boxData6">
  162. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  163. <img :src="item.imgurl">
  164. <span>{{ item.title }}</span>
  165. </NuxtLink>
  166. </div>
  167. </div>
  168. <ul>
  169. <li v-for="item in boxData5">
  170. <em></em>
  171. <!-- <span>{{ item.title }}</span> -->
  172. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">{{ item.title }}</NuxtLink>
  173. </li>
  174. </ul>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. <!-- 农副产品十强光荣称号logo -->
  180. <HomeTopTen></HomeTopTen>
  181. <!--打假维权 产业动态 -->
  182. <div class="dynamic">
  183. <div class="inner">
  184. <div class="innerLeft">
  185. <!-- 标题部分 -->
  186. <div class="title">
  187. <h3>
  188. {{ pageData[4].alias }}
  189. <NuxtLink
  190. :to="{ path: `/newsList/${pageData[4].cid}`, query: { catid: pageData[4].cid } }"
  191. target="_blank" v-if="pageData[4].cid">
  192. 查看更多
  193. </NuxtLink>
  194. </h3>
  195. </div>
  196. <!-- 维权 protect rights -->
  197. <div class="protectRights">
  198. <div class="photoList">
  199. <div class="top" v-for="item in boxData8">
  200. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  201. <img :src="item.imgurl" alt="">
  202. <span>{{ item.title }}</span>
  203. </NuxtLink>
  204. </div>
  205. <ul class="bottom">
  206. <li v-for="item in boxData88">
  207. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  208. <img :src="item.imgurl" alt="">
  209. <p>{{ item.title }}</p>
  210. </NuxtLink>
  211. </li>
  212. </ul>
  213. </div>
  214. <ul class="textList">
  215. <li v-for="item in boxData9">
  216. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  217. <h4>
  218. <em></em>
  219. {{ item.title }}
  220. </h4>
  221. <!-- <p>{{ item.introduce }}</p> -->
  222. </NuxtLink>
  223. </li>
  224. </ul>
  225. </div>
  226. </div>
  227. <div class="innerRight">
  228. <!-- 标题部分 -->
  229. <div class="title">
  230. <h3>
  231. {{ pageData[5].alias }}
  232. <NuxtLink
  233. :to="{ path: `/newsList/${pageData[5].cid}`, query: { catid: pageData[5].cid } }"
  234. target="_blank" v-if="pageData[5].cid">
  235. 查看更多
  236. </NuxtLink>
  237. </h3>
  238. </div>
  239. <ul class="dynamicList">
  240. <li v-for="item in boxData10">
  241. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  242. <img :src="item.imgurl" alt="">
  243. <div class="text">
  244. <h5>{{ item.title }}</h5>
  245. <p>作者:{{ item.author }}</p>
  246. </div>
  247. </NuxtLink>
  248. </li>
  249. </ul>
  250. </div>
  251. </div>
  252. </div>
  253. <!-- 三农资讯logo -->
  254. <HomeSannongzixun></HomeSannongzixun>
  255. <!--政策法规 -->
  256. <div class="policy">
  257. <div class="inner">
  258. <div class="innerLeft">
  259. <div class="title">
  260. <h3>
  261. {{ pageData[6].alias }}
  262. <NuxtLink
  263. :to="{ path: `/newsList/${pageData[6].cid}`, query: { catid: pageData[6].cid } }"
  264. target="_blank" v-if="pageData[6].cid">
  265. 查看更多
  266. </NuxtLink>
  267. </h3>
  268. </div>
  269. <ul class="policyList">
  270. <li v-for="item in boxData11">
  271. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  272. <img :src="item.imgurl">
  273. <div class="text">
  274. <h5>{{ item.title }}</h5>
  275. <p>
  276. <span class="left">来源:{{ item.copyfrom }}</span>
  277. <span class="left">作者:{{ item.author }}</span>
  278. <span class="right">{{ item.created_at }}</span>
  279. </p>
  280. </div>
  281. </NuxtLink>
  282. </li>
  283. </ul>
  284. </div>
  285. <div class="innerRight">
  286. <div class="title">
  287. <h3>
  288. {{ pageData[7].alias }}
  289. <NuxtLink
  290. :to="{ path: `/newsList/${pageData[7].cid}`, query: { catid: pageData[7].cid } }"
  291. target="_blank" v-if="pageData[7].cid">
  292. 查看更多
  293. </NuxtLink>
  294. </h3>
  295. </div>
  296. <!-- 轮播图 -->
  297. <div class="banner">
  298. <HomeSmallSwiper1 :message="pageData[7].cid" v-show="pageData[7] != ''"></HomeSmallSwiper1>
  299. <!-- <HomeSmallSwiper :swiperData="navigation1[20].data"></HomeSmallSwiper> -->
  300. </div>
  301. <!-- 轮播图下小图列表 及内容列表 -->
  302. <div class="banner_b_img">
  303. <div class="photo">
  304. <div class="photoL" v-for="item in boxData13">
  305. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">
  306. <img :src="item.imgurl">
  307. <span>{{ item.title }}</span>
  308. </NuxtLink>
  309. </div>
  310. </div>
  311. <ul>
  312. <li v-for="item in boxData12">
  313. <em></em>
  314. <NuxtLink :to="`/newsDetail/${item.id}`" target="_blank">{{ item.title }}</NuxtLink>
  315. </li>
  316. </ul>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. <!-- 页面底部 -->
  322. <HomeFoot></HomeFoot>
  323. </div>
  324. </template>
  325. <script setup>
  326. import { ref, onMounted } from 'vue'
  327. import { ElRadio, ElRadioGroup } from 'element-plus'
  328. const nuxtApp = useNuxtApp();
  329. const axios = nuxtApp.$axios;
  330. const aa = ref(21);
  331. const hoverStatus = ref(1)
  332. const qhPic = function (num) {
  333. console.log('--------------------------------------------');
  334. console.log('qhPic', num)
  335. hoverStatus.value = num;
  336. }
  337. const info = ref("");
  338. const getInfo = async () => {
  339. const response = await axios.get(`/web/getWebsiteFootInfo`);
  340. info.value = response.data.website_head;
  341. console.log('3333333333333333333333333')
  342. console.log(info.value)
  343. }
  344. // 定义响应式数据
  345. const seoData = ref({
  346. title: '默认标题',
  347. description: '默认描述',
  348. keywords: '默认关键词',
  349. image: 'https://example.com/default-image.jpg'
  350. });
  351. // 在 onMounted 钩子中获取数据
  352. onMounted(async () => {
  353. try {
  354. const response = await axios.get('/web/getWebsiteFootInfo');
  355. const data = response.data.website_head; // 假设接口返回的数据在 data 字段中
  356. console.log(seoData.value.title)
  357. // 更新 seoData
  358. seoData.value = {
  359. title: data.title,
  360. description: data.description,
  361. keywords: data.keywords,
  362. image: data.image
  363. };
  364. console.log(seoData.value.title)
  365. } catch (error) {
  366. console.error('获取 SEO 数据失败:', error);
  367. // 设置默认值
  368. seoData.value = {
  369. title: '默认标题',
  370. description: '默认描述',
  371. keywords: '默认关键词',
  372. image: 'https://example.com/default-image.jpg'
  373. };
  374. }
  375. });
  376. // 监听 seoData 的变化,动态设置 SEO 字段
  377. watch(seoData, (newVal) => {
  378. if (newVal.title) { // 确保 title 有值
  379. useSeoMeta({
  380. title: newVal.title, // 使用动态值
  381. description: newVal.description,
  382. ogTitle: newVal.title,
  383. ogDescription: newVal.description,
  384. ogImage: newVal.image,
  385. twitterTitle: newVal.title,
  386. twitterDescription: newVal.description,
  387. twitterImage: newVal.image,
  388. keywords: newVal.keywords
  389. });
  390. }
  391. }, { immediate: true });
  392. const radio1 = ref('1');
  393. let index = ref(0)
  394. onMounted(() => {
  395. getInfo();
  396. })
  397. const pageData = ref([
  398. { cid: "", title: "", data: [] },
  399. { cid: "", title: "", data: [] },
  400. { cid: "", title: "", data: [] },
  401. { cid: "", title: "", data: [] },
  402. { cid: "", title: "", data: [] },
  403. { cid: "", title: "", data: [] },
  404. { cid: "", title: "", data: [] },
  405. { cid: "", title: "", data: [] },
  406. { cid: "", title: "", data: [] },
  407. { cid: "", title: "", data: [] },
  408. { cid: "", title: "", data: [] },
  409. { cid: "", title: "", data: [] },
  410. { cid: "", title: "", data: [] },
  411. { cid: "", title: "", data: [] },
  412. { cid: "", title: "", data: [] },
  413. { cid: "", title: "", data: [] },
  414. { cid: "", title: "", data: [] },
  415. { cid: "", title: "", data: [] },
  416. { cid: "", title: "", data: [] },
  417. { cid: "", title: "", data: [] }
  418. ]);
  419. //获取导航一的栏目
  420. const navigation1 = ref("");
  421. const navigateList = async () => {
  422. try {
  423. const response = await axios.get(`/web/getWebsiteModelCategory?placeid=${1}&pid=${0}&num=${20}`);
  424. console.log('成功获得1级导航1111', pageData.value);
  425. pageData.value = response.data;
  426. for (let index in response.data) {
  427. pageData.value[index].title = response.data[index].name
  428. pageData.value[index].cid = response.data[index].category_id
  429. }
  430. //console.log('成功获得1级导航3333', pageData.value);
  431. //console.log(pageData.value[0].cid)
  432. //14
  433. //获取模块中的数据1
  434. getWebsiteModelArticles();
  435. //获取模块中的数据2
  436. getWebsiteModelArticles2();
  437. //15
  438. //获取模块中的数据3
  439. getWebsiteModelArticles3();
  440. //获取模块中的数据4
  441. getWebsiteModelArticles4();
  442. //17
  443. //获取模块中的数据5
  444. getWebsiteModelArticles5();
  445. //获取模块中的数据6
  446. getWebsiteModelArticles6()
  447. //获取模块中的数据7
  448. getWebsiteModelArticles7()
  449. //18
  450. //获取模块中的数据8
  451. getWebsiteModelArticles8();
  452. //获取模块中的数据9
  453. getWebsiteModelArticles9()
  454. getWebsiteModelArticles88()
  455. //19
  456. //获取模块中的数据10
  457. getWebsiteModelArticles10()
  458. //20
  459. //获取模块中的数据11
  460. getWebsiteModelArticles11()
  461. //21
  462. //获取模块中的数据12
  463. getWebsiteModelArticles12()
  464. //获取模块中的数据13
  465. getWebsiteModelArticles13()
  466. } catch (error) {
  467. console.error(error);
  468. }
  469. }
  470. //获取模块中的数据 getWebsiteModelArticles
  471. //14
  472. const boxData1 = ref("");
  473. const getWebsiteModelArticles = async () => {
  474. try {
  475. // const response = await axios.get(`/web/getWebsiteModelArticles?catid=${14}&level=${1}&pagesize=${10}`);
  476. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[0].cid}&level=${1}&pagesize=${10}`);
  477. console.log('获得第一个板块的内容', response.data);
  478. boxData1.value = response.data;
  479. } catch (error) {
  480. console.error(error);
  481. }
  482. }
  483. const boxData2 = ref("");
  484. const getWebsiteModelArticles2 = async () => {
  485. try {
  486. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[0].cid}&level=${3}&pagesize=${6}`);
  487. console.log('mouseenter', response.data);
  488. boxData2.value = response.data;
  489. } catch (error) {
  490. console.error(error);
  491. }
  492. }
  493. //15
  494. const boxData3 = ref("");
  495. const getWebsiteModelArticles3 = async () => {
  496. try {
  497. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[1].cid}&level=${1}&pagesize=${5}`);
  498. console.log('一级导航', response.data);
  499. boxData3.value = response.data;
  500. } catch (error) {
  501. console.error(error);
  502. }
  503. }
  504. const boxData4 = ref("");
  505. const getWebsiteModelArticles4 = async () => {
  506. try {
  507. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[1].cid}&level=${3}&pagesize=${2}`);
  508. console.log('boxData4', response.data);
  509. boxData4.value = response.data;
  510. } catch (error) {
  511. console.error(error);
  512. }
  513. }
  514. //17
  515. const boxData5 = ref("");
  516. const getWebsiteModelArticles5 = async () => {
  517. try {
  518. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${1}&pagesize=${5}`);
  519. console.log('一级导航', response.data);
  520. boxData5.value = response.data;
  521. } catch (error) {
  522. console.error(error);
  523. }
  524. }
  525. const boxData6 = ref("");
  526. const getWebsiteModelArticles6 = async () => {
  527. try {
  528. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${3}&pagesize=${2}`);
  529. console.log('boxData6', response.data);
  530. boxData6.value = response.data;
  531. } catch (error) {
  532. console.error(error);
  533. }
  534. }
  535. const boxData7 = ref("");
  536. const getWebsiteModelArticles7 = async () => {
  537. try {
  538. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${3}&pagesize=${2}`);
  539. console.log('一级导航', response.data);
  540. boxData7.value = response.data;
  541. } catch (error) {
  542. console.error(error);
  543. }
  544. }
  545. //18
  546. const boxData8 = ref("");
  547. const getWebsiteModelArticles8 = async () => {
  548. try {
  549. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${3}&pagesize=${1}`);
  550. console.log('一级导航', response.data);
  551. boxData8.value = response.data;
  552. } catch (error) {
  553. console.error(error);
  554. }
  555. }
  556. const boxData88 = ref("");
  557. const getWebsiteModelArticles88 = async () => {
  558. try {
  559. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${3}&pagesize=${2}&placeid=${1}`);
  560. console.log('一级导航', response.data);
  561. boxData88.value = response.data;
  562. } catch (error) {
  563. console.error(error);
  564. }
  565. }
  566. const boxData9 = ref("");
  567. const getWebsiteModelArticles9 = async () => {
  568. try {
  569. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[3].cid}&level=${1}&pagesize=${12}`);
  570. console.log('boxData9', response.data);
  571. boxData9.value = response.data;
  572. } catch (error) {
  573. console.error(error);
  574. }
  575. }
  576. //19
  577. const boxData10 = ref("");
  578. const getWebsiteModelArticles10 = async () => {
  579. try {
  580. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[4].cid}&level=${3}&pagesize=${4}`);
  581. console.log('boxData10', response.data);
  582. boxData10.value = response.data;
  583. } catch (error) {
  584. console.error(error);
  585. }
  586. }
  587. //22
  588. const boxData11 = ref("");
  589. const getWebsiteModelArticles11 = async () => {
  590. try {
  591. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[5].cid}&level=${3}&pagesize=${4}`);
  592. console.log('boxData11', response.data);
  593. boxData11.value = response.data;
  594. } catch (error) {
  595. console.error(error);
  596. }
  597. }
  598. //21
  599. const boxData12 = ref("");
  600. const getWebsiteModelArticles12 = async () => {
  601. try {
  602. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[6].cid}&level=${1}&pagesize=${5}`);
  603. console.log('boxData12', response.data);
  604. boxData12.value = response.data;
  605. } catch (error) {
  606. console.error(error);
  607. }
  608. }
  609. const boxData13 = ref("");
  610. const getWebsiteModelArticles13 = async () => {
  611. try {
  612. const response = await axios.get(`/web/getWebsiteModelArticles?catid=${pageData.value[6].cid}&level=${3}&pagesize=${2}`);
  613. console.log('boxData13', response.data);
  614. boxData13.value = response.data;
  615. } catch (error) {
  616. console.error(error);
  617. }
  618. }
  619. onMounted(() => {
  620. navigateList();
  621. })
  622. // 跳转更多
  623. // const goMore = (id) => {
  624. // console.log(id);
  625. // navigateTo({
  626. // path: '/primaryNavigation/newsList',
  627. // query: {
  628. // id: id // 传递id
  629. // }
  630. // })
  631. // }
  632. </script>
  633. <style lang="less" scoped>
  634. // 农民工
  635. .farming {
  636. width: 100%;
  637. height: 616px;
  638. .farmerLeft,
  639. .farmerRight {
  640. float: left;
  641. }
  642. // 左侧
  643. .farmerLeft {
  644. width: 790px;
  645. height: 616px;
  646. margin-right: 21px;
  647. .farmer {
  648. width: 790px;
  649. height: 330px;
  650. >h3 {
  651. height: 36px;
  652. font-family: Source Han Sans, Source Han Sans;
  653. font-weight: bold;
  654. font-size: 24px;
  655. color: #000000;
  656. line-height: 28px;
  657. text-align: left;
  658. font-style: normal;
  659. text-transform: none;
  660. border-bottom: 1px solid #139602;
  661. >a {
  662. float: right;
  663. width: 56px;
  664. height: 20px;
  665. line-height: 24px;
  666. font-weight: 400;
  667. font-size: 14px;
  668. color: #999999;
  669. font-style: normal;
  670. text-transform: none;
  671. }
  672. }
  673. >ul {
  674. margin-top: 20px;
  675. >li {
  676. float: left;
  677. width: 362px;
  678. white-space: nowrap;
  679. overflow: hidden;
  680. text-overflow: ellipsis;
  681. height: 22px;
  682. font-weight: 500;
  683. font-size: 18px;
  684. color: #333333;
  685. line-height: 21px;
  686. text-align: left;
  687. margin-bottom: 32px;
  688. margin-right: 27px;
  689. >em {
  690. display: inline-block;
  691. width: 8px;
  692. height: 8px;
  693. background-color: #d9d9d9;
  694. border-radius: 4px;
  695. margin: 5px 8px 6px;
  696. vertical-align: middle;
  697. }
  698. a {
  699. color: #333333;
  700. }
  701. a:hover {
  702. color: #139602;
  703. }
  704. }
  705. >li:hover {
  706. color: #139602;
  707. }
  708. }
  709. }
  710. .farmerbottom {
  711. width: 790px;
  712. height: 280px;
  713. img {
  714. width: 498px;
  715. height: 280px;
  716. }
  717. >.leftList {
  718. width: 290px;
  719. height: 280px;
  720. background-color: #f6f6f6;
  721. padding: 11px 26px 6px 20px;
  722. box-sizing: border-box;
  723. >li {
  724. width: 296px;
  725. height: 32px;
  726. color: #666666;
  727. font-size: 14px;
  728. margin-bottom: 14px;
  729. h4 {
  730. width: 249px;
  731. white-space: nowrap;
  732. overflow: hidden;
  733. text-overflow: ellipsis;
  734. font-family: Source Han Sans, Source Han Sans;
  735. height: 27px;
  736. line-height: 21px;
  737. font-size: 18px;
  738. color: #333333;
  739. font-weight: 400;
  740. em {
  741. display: inline-block;
  742. width: 8px;
  743. height: 8px;
  744. background-color: #333333;
  745. border-radius: 8px;
  746. }
  747. }
  748. p {
  749. width: 249px;
  750. height: 48px;
  751. // line-height: 24px;
  752. padding-left: 14px;
  753. // color: #333333;
  754. }
  755. a {
  756. color: #333333;
  757. }
  758. a:hover {
  759. color: #139602;
  760. }
  761. }
  762. >li:hover,
  763. >li:hover>a>h4 {
  764. color: #088f04;
  765. }
  766. >li:hover>a>h4>em {
  767. background-color: #088f04;
  768. }
  769. }
  770. }
  771. }
  772. // 右侧
  773. .farmerRight {
  774. width: 380px;
  775. height: 600px;
  776. .rich,
  777. .inquire {
  778. width: 100%;
  779. height: 309px;
  780. // 标题部分
  781. >h3 {
  782. height: 36px;
  783. font-family: Source Han Sans, Source Han Sans;
  784. font-weight: bold;
  785. font-size: 24px;
  786. color: #000000;
  787. line-height: 28px;
  788. text-align: left;
  789. font-style: normal;
  790. text-transform: none;
  791. border-bottom: 1px solid #139602;
  792. >a,
  793. >span {
  794. float: right;
  795. width: 56px;
  796. height: 20px;
  797. line-height: 24px;
  798. font-weight: 400;
  799. font-size: 14px;
  800. color: #999999;
  801. font-style: normal;
  802. text-transform: none;
  803. }
  804. }
  805. // 图片部分
  806. .photo {
  807. height: 104px;
  808. margin-top: 23px;
  809. >.photoL:first-child {
  810. margin-right: 10px;
  811. }
  812. }
  813. .photoL {
  814. display: inline-block;
  815. width: 185px;
  816. height: 104px;
  817. border-radius: 6px;
  818. position: relative;
  819. a {
  820. width: 185px;
  821. height: 104px;
  822. }
  823. img {
  824. width: 185px;
  825. height: 104px;
  826. border-radius: 6px;
  827. }
  828. span {
  829. position: absolute;
  830. bottom: 0;
  831. left: 0;
  832. display: inline-block;
  833. padding-left: 7px;
  834. box-sizing: border-box;
  835. width: 185px;
  836. height: 22px;
  837. white-space: nowrap;
  838. overflow: hidden;
  839. text-overflow: ellipsis;
  840. background-color: rgba(0, 0, 0, 0.5);
  841. font-weight: 500px;
  842. font-size: 14px;
  843. color: #FFFFFF;
  844. line-height: 22px;
  845. // border-radius: 6px 6px 0px 0px;
  846. }
  847. }
  848. .photoList {
  849. display: inline-block;
  850. width: 185px;
  851. height: 104px;
  852. position: relative;
  853. img {
  854. width: 185px;
  855. height: 104px;
  856. }
  857. span {
  858. position: absolute;
  859. bottom: 0;
  860. left: 0;
  861. display: inline-block;
  862. width: 185px;
  863. height: 30px;
  864. font-weight: 500;
  865. color: #FFFFFF;
  866. padding-top: 7px;
  867. padding-left: 6px;
  868. box-sizing: border-box;
  869. }
  870. }
  871. // .photoL {
  872. // margin-right: 10px;
  873. // }
  874. // 文字部分
  875. ul {
  876. height: 220px;
  877. margin-bottom: 10px;
  878. >li {
  879. height: 25px;
  880. padding-top: 16px;
  881. >em {
  882. display: inline-block;
  883. width: 8px;
  884. height: 8px;
  885. background-color: #d9d9d9;
  886. border-radius: 4px;
  887. margin: 5px 8px 6px 5px;
  888. margin-left: 5px;
  889. vertical-align: middle;
  890. }
  891. >a,
  892. >span {
  893. display: inline-block;
  894. width: 340px;
  895. height: 25px;
  896. white-space: nowrap;
  897. overflow: hidden;
  898. text-overflow: ellipsis;
  899. font-weight: 500;
  900. font-size: 18px;
  901. color: #333333;
  902. line-height: 21px;
  903. text-align: left;
  904. font-style: normal;
  905. text-transform: none;
  906. padding-left: 10px;
  907. vertical-align: middle;
  908. }
  909. >a:hover,
  910. >span:hover {
  911. color: #139609;
  912. }
  913. }
  914. }
  915. }
  916. .rich {
  917. .photoL {
  918. display: inline-block;
  919. width: 185px;
  920. height: 104px;
  921. position: relative;
  922. border-radius: 6px;
  923. img {
  924. width: 185px;
  925. height: 104px;
  926. border-radius: 6px;
  927. }
  928. span {
  929. position: absolute;
  930. bottom: 0;
  931. left: 0;
  932. display: inline-block;
  933. padding-left: 7px;
  934. box-sizing: border-box;
  935. width: 185px;
  936. height: 22px;
  937. white-space: nowrap;
  938. overflow: hidden;
  939. text-overflow: ellipsis;
  940. background-color: rgba(0, 0, 0, 0.5);
  941. font-weight: 500px;
  942. font-size: 14px;
  943. color: #FFFFFF;
  944. line-height: 22px;
  945. border-radius: 0px 0px 6px 6px;
  946. }
  947. }
  948. }
  949. // 三农调查
  950. .inquire {
  951. width: 380px;
  952. height: 280px;
  953. margin-top: 20px;
  954. background: #FFFFFF;
  955. box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  956. border-radius: 6px 6px 6px 6px;
  957. padding: 4px 6px;
  958. box-sizing: border-box;
  959. p {
  960. width: 328px;
  961. height: 69px;
  962. font-family: PingFang SC, PingFang SC;
  963. font-weight: 500;
  964. font-size: 18px;
  965. color: #333333;
  966. line-height: 21px;
  967. text-align: left;
  968. font-style: normal;
  969. text-transform: none;
  970. padding: 12px 20px 0 32px;
  971. }
  972. .radio {
  973. /deep/.el-radio {
  974. --el-radio-input-border-color-hover: #27881a;
  975. }
  976. /deep/.el-radio-group {
  977. align-items: center;
  978. display: inline-flex;
  979. flex-wrap: wrap;
  980. font-size: 0;
  981. padding-left: 35px;
  982. }
  983. /deep/.el-radio.el-radio--large {
  984. height: 29px;
  985. }
  986. /deep/.el-radio.el-radio--large .el-radio__label {
  987. font-family: PingFang SC, PingFang SC;
  988. font-weight: 400;
  989. font-size: 16px;
  990. color: #333333;
  991. }
  992. /deep/.el-radio.el-radio--large .el-radio__inner {
  993. height: 16px;
  994. width: 16px;
  995. }
  996. /deep/.el-radio__input.is-checked+.el-radio__label {
  997. color: #27881a;
  998. }
  999. /deep/.el-radio__input.is-checked .el-radio__inner {
  1000. background: #33b023;
  1001. border-color: #27881a;
  1002. }
  1003. }
  1004. .btn {
  1005. width: 188px;
  1006. height: 32px;
  1007. margin: 20px auto;
  1008. button {
  1009. width: 70px;
  1010. height: 32px;
  1011. line-height: 32px;
  1012. border-radius: 6px;
  1013. border: none;
  1014. font-family: PingFang SC, PingFang SC;
  1015. font-weight: 400;
  1016. font-size: 16px;
  1017. color: #999999;
  1018. }
  1019. .voting {
  1020. background-color: #33b023;
  1021. color: #fff;
  1022. margin-right: 44px;
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. //三农科教
  1029. .scienceEducation {
  1030. height: 590px;
  1031. .scienceLeft,
  1032. .scienceRight {
  1033. float: left;
  1034. }
  1035. // 左侧
  1036. .scienceLeft {
  1037. width: 790px;
  1038. height: 616px;
  1039. margin-right: 21px;
  1040. }
  1041. // 右侧
  1042. .scienceRight {
  1043. width: 380px;
  1044. height: 600px;
  1045. // 标题部分
  1046. >h3 {
  1047. height: 36px;
  1048. font-family: Source Han Sans, Source Han Sans;
  1049. font-weight: bold;
  1050. font-size: 24px;
  1051. color: #000000;
  1052. line-height: 28px;
  1053. text-align: left;
  1054. font-style: normal;
  1055. text-transform: none;
  1056. border-bottom: 1px solid #139602;
  1057. >a {
  1058. float: right;
  1059. width: 56px;
  1060. height: 20px;
  1061. line-height: 24px;
  1062. font-weight: 400;
  1063. font-size: 14px;
  1064. color: #999999;
  1065. font-style: normal;
  1066. text-transform: none;
  1067. }
  1068. }
  1069. // 轮播图
  1070. .banner {
  1071. width: 380px;
  1072. height: 214px;
  1073. margin-top: 20px;
  1074. }
  1075. .banner_b_img {
  1076. // 图片部分
  1077. .photo {
  1078. height: 104px;
  1079. margin-top: 23px;
  1080. >.photoL:first-child {
  1081. margin-right: 10px;
  1082. }
  1083. }
  1084. .photoL {
  1085. display: inline-block;
  1086. width: 185px;
  1087. height: 104px;
  1088. position: relative;
  1089. border-radius: 2px;
  1090. img {
  1091. width: 185px;
  1092. height: 104px;
  1093. border-radius: 2px;
  1094. }
  1095. span {
  1096. position: absolute;
  1097. top: 0;
  1098. left: 0;
  1099. display: inline-block;
  1100. padding-left: 7px;
  1101. box-sizing: border-box;
  1102. width: 185px;
  1103. height: 22px;
  1104. white-space: nowrap;
  1105. overflow: hidden;
  1106. text-overflow: ellipsis;
  1107. background-color: rgba(0, 0, 0, 0.5);
  1108. font-weight: 500px;
  1109. font-size: 14px;
  1110. color: #FFFFFF;
  1111. line-height: 22px;
  1112. border-radius: 2px 2px 0px 0px;
  1113. }
  1114. }
  1115. // .photoL {
  1116. // margin-right: 5px;
  1117. // }
  1118. ul {
  1119. width: 380px;
  1120. height: 186px;
  1121. >li {
  1122. height: 22px;
  1123. padding-top: 16px;
  1124. >strong {
  1125. display: inline-block;
  1126. width: 24px;
  1127. height: 24px;
  1128. line-height: 24px;
  1129. background-color: #cecece;
  1130. padding-left: 6px;
  1131. box-sizing: border-box;
  1132. font-family: Source Han Sans, Source Han Sans;
  1133. font-weight: 500;
  1134. font-size: 18px;
  1135. color: #FFFFFF;
  1136. font-style: normal;
  1137. text-transform: none;
  1138. }
  1139. >em {
  1140. display: inline-block;
  1141. width: 6px;
  1142. height: 6px;
  1143. border-radius: 10px;
  1144. border: 2px solid #8CBA86;
  1145. vertical-align: 5px;
  1146. }
  1147. a,
  1148. span {
  1149. display: inline-block;
  1150. width: 350px;
  1151. height: 22px;
  1152. white-space: nowrap;
  1153. overflow: hidden;
  1154. text-overflow: ellipsis;
  1155. font-family: PingFang SC, PingFang SC;
  1156. font-weight: 500;
  1157. font-size: 18px;
  1158. color: #333333;
  1159. line-height: 21px;
  1160. text-align: left;
  1161. font-style: normal;
  1162. text-transform: none;
  1163. padding-left: 9px;
  1164. }
  1165. >a:hover,
  1166. >span:hover {
  1167. color: #139609;
  1168. }
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. //打假维权 动态
  1175. .dynamic {
  1176. height: 610px;
  1177. .inner {
  1178. height: 610px;
  1179. }
  1180. .innerLeft {
  1181. .title {
  1182. >h3 {
  1183. height: 36px;
  1184. font-family: Source Han Sans, Source Han Sans;
  1185. font-weight: bold;
  1186. font-size: 24px;
  1187. color: #000000;
  1188. line-height: 28px;
  1189. text-align: left;
  1190. font-style: normal;
  1191. text-transform: none;
  1192. border-bottom: 1px solid #139602;
  1193. >a {
  1194. float: right;
  1195. width: 56px;
  1196. height: 20px;
  1197. line-height: 24px;
  1198. font-weight: 400;
  1199. font-size: 14px;
  1200. color: #999999;
  1201. font-style: normal;
  1202. text-transform: none;
  1203. }
  1204. }
  1205. }
  1206. .protectRights {
  1207. float: left;
  1208. margin-top: 26px;
  1209. // 右侧的图片
  1210. .photoList {
  1211. float: left;
  1212. width: 387px;
  1213. margin-right: 40px;
  1214. >.top {
  1215. width: 387px;
  1216. height: 320px;
  1217. position: relative;
  1218. img {
  1219. width: 387px;
  1220. height: 320px;
  1221. border-radius: 6px;
  1222. }
  1223. span {
  1224. position: absolute;
  1225. bottom: 0;
  1226. left: 0;
  1227. display: inline-block;
  1228. width: 387px;
  1229. height: 68px;
  1230. white-space: nowrap;
  1231. overflow: hidden;
  1232. text-overflow: ellipsis;
  1233. padding: 33px 33px 8px 13px;
  1234. box-sizing: border-box;
  1235. font-family: PingFang SC, PingFang SC;
  1236. font-weight: 500;
  1237. font-size: 18px;
  1238. color: #FFFFFF;
  1239. line-height: 21px;
  1240. }
  1241. }
  1242. >.bottom {
  1243. width: 387px;
  1244. height: 202px;
  1245. margin-top: 15px;
  1246. >li {
  1247. width: 185px;
  1248. height: 210px;
  1249. float: left;
  1250. margin-right: 17px;
  1251. background-color: #f5f5f5;
  1252. img {
  1253. width: 185px;
  1254. height: 139px;
  1255. border-radius: 6px;
  1256. }
  1257. p {
  1258. width: 175px;
  1259. height: 63px;
  1260. display: -webkit-box;
  1261. -webkit-box-orient: vertical;
  1262. -webkit-line-clamp: 2;
  1263. overflow: hidden;
  1264. text-overflow: ellipsis;
  1265. word-break: break-all;
  1266. font-family: PingFang SC, PingFang SC;
  1267. font-weight: 500;
  1268. font-size: 18px;
  1269. color: #333333;
  1270. line-height: 30px;
  1271. text-align: left;
  1272. font-style: normal;
  1273. text-transform: none;
  1274. margin-left: 5px;
  1275. }
  1276. }
  1277. >li:nth-child(2) {
  1278. margin-right: 0;
  1279. }
  1280. }
  1281. }
  1282. // 右侧的文字
  1283. .textList {
  1284. float: left;
  1285. width: 340px;
  1286. height: 545px;
  1287. >li {
  1288. width: 340px;
  1289. height: 27px;
  1290. margin-bottom: 19px;
  1291. h4 {
  1292. width: 282px;
  1293. height: 25px;
  1294. white-space: nowrap;
  1295. overflow: hidden;
  1296. text-overflow: ellipsis;
  1297. font-family: PingFang SC, PingFang SC;
  1298. font-weight: 400;
  1299. font-size: 18px;
  1300. color: #333333;
  1301. line-height: 21px;
  1302. text-align: left;
  1303. font-style: normal;
  1304. text-transform: none;
  1305. // padding-left: 14px;
  1306. em {
  1307. display: inline-block;
  1308. width: 8px;
  1309. height: 8px;
  1310. margin-right: 6px;
  1311. border-radius: 4px;
  1312. background-color: #333333;
  1313. }
  1314. }
  1315. p {
  1316. padding-left: 14px;
  1317. width: 249px;
  1318. height: 48px;
  1319. display: -webkit-box;
  1320. -webkit-box-orient: vertical;
  1321. -webkit-line-clamp: 2;
  1322. overflow: hidden;
  1323. text-overflow: ellipsis;
  1324. word-break: break-all;
  1325. font-family: PingFang SC, PingFang SC;
  1326. font-weight: 400;
  1327. font-size: 14px;
  1328. color: #666666;
  1329. line-height: 24px;
  1330. text-align: left;
  1331. font-style: normal;
  1332. text-transform: none;
  1333. }
  1334. }
  1335. a {
  1336. color: #333333;
  1337. }
  1338. a:hover {
  1339. color: #139602;
  1340. }
  1341. >li:hover>a>h4,
  1342. >li:hover>a>p {
  1343. color: #139602;
  1344. }
  1345. >li:hover>a>h4>em {
  1346. background-color: #139602;
  1347. }
  1348. }
  1349. }
  1350. }
  1351. .innerRight {
  1352. .title {
  1353. >h3 {
  1354. height: 36px;
  1355. font-family: Source Han Sans, Source Han Sans;
  1356. font-weight: bold;
  1357. font-size: 24px;
  1358. color: #000000;
  1359. line-height: 28px;
  1360. text-align: left;
  1361. font-style: normal;
  1362. text-transform: none;
  1363. border-bottom: 1px solid #139602;
  1364. >a {
  1365. float: right;
  1366. width: 56px;
  1367. height: 20px;
  1368. line-height: 24px;
  1369. font-weight: 400;
  1370. font-size: 14px;
  1371. color: #999999;
  1372. font-style: normal;
  1373. text-transform: none;
  1374. }
  1375. }
  1376. }
  1377. .dynamicList {
  1378. width: 380px;
  1379. margin-top: 26px;
  1380. >li {
  1381. width: 380px;
  1382. height: 120px;
  1383. margin-bottom: 21px;
  1384. img {
  1385. float: left;
  1386. width: 160px;
  1387. height: 120px;
  1388. }
  1389. .text {
  1390. float: left;
  1391. width: 220px;
  1392. height: 120px;
  1393. padding-left: 15px;
  1394. box-sizing: border-box;
  1395. >h5 {
  1396. width: 199px;
  1397. height: 52px;
  1398. margin-bottom: 40px;
  1399. display: -webkit-box;
  1400. -webkit-box-orient: vertical;
  1401. -webkit-line-clamp: 2;
  1402. overflow: hidden;
  1403. text-overflow: ellipsis;
  1404. word-break: break-all;
  1405. padding-top: 6px;
  1406. font-family: PingFang SC, PingFang SC;
  1407. font-weight: 600;
  1408. font-size: 18px;
  1409. color: #333333;
  1410. line-height: 26px;
  1411. text-align: left;
  1412. font-style: normal;
  1413. text-transform: none;
  1414. }
  1415. >p {
  1416. width: 198px;
  1417. height: 70px;
  1418. display: -webkit-box;
  1419. -webkit-box-orient: vertical;
  1420. -webkit-line-clamp: 3;
  1421. overflow: hidden;
  1422. text-overflow: ellipsis;
  1423. word-break: break-all;
  1424. margin-top: 10px;
  1425. font-family: PingFang SC, PingFang SC;
  1426. font-weight: 400;
  1427. font-size: 14px;
  1428. color: #666666;
  1429. line-height: 24px;
  1430. text-align: left;
  1431. font-style: normal;
  1432. text-transform: none;
  1433. }
  1434. }
  1435. }
  1436. li:hover {
  1437. .text {
  1438. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  1439. background-color: #fff;
  1440. h5,
  1441. p {
  1442. color: #139602;
  1443. }
  1444. }
  1445. }
  1446. }
  1447. }
  1448. }
  1449. // 政策法规
  1450. .policy {
  1451. height: 678px;
  1452. .inner {
  1453. height: 678px;
  1454. .innerLeft {
  1455. width: 790px;
  1456. height: 621px;
  1457. .title {
  1458. >h3 {
  1459. height: 36px;
  1460. font-family: Source Han Sans, Source Han Sans;
  1461. font-weight: bold;
  1462. font-size: 24px;
  1463. color: #000000;
  1464. line-height: 28px;
  1465. text-align: left;
  1466. font-style: normal;
  1467. text-transform: none;
  1468. border-bottom: 1px solid #139602;
  1469. >a {
  1470. float: right;
  1471. width: 56px;
  1472. height: 20px;
  1473. line-height: 24px;
  1474. font-weight: 400;
  1475. font-size: 14px;
  1476. color: #999999;
  1477. font-style: normal;
  1478. text-transform: none;
  1479. }
  1480. }
  1481. }
  1482. .policyList {
  1483. width: 790px;
  1484. margin-top: 20px;
  1485. >li {
  1486. width: 790px;
  1487. height: 121px;
  1488. margin-bottom: 20px;
  1489. img,
  1490. .text {
  1491. float: left;
  1492. }
  1493. img {
  1494. width: 224px;
  1495. height: 121px;
  1496. }
  1497. .text {
  1498. width: 566px;
  1499. height: 121px;
  1500. padding-left: 20px;
  1501. box-sizing: border-box;
  1502. >h5 {
  1503. padding: 13px 0 6px;
  1504. width: 536px;
  1505. height: 25px;
  1506. margin-bottom: 45px;
  1507. white-space: nowrap;
  1508. overflow: hidden;
  1509. text-overflow: ellipsis;
  1510. font-family: PingFang SC, PingFang SC;
  1511. font-weight: 600;
  1512. font-size: 18px;
  1513. color: #333333;
  1514. line-height: 21px;
  1515. text-align: left;
  1516. font-style: normal;
  1517. text-transform: none;
  1518. }
  1519. p {
  1520. width: 536px;
  1521. height: 30px;
  1522. display: -webkit-box;
  1523. -webkit-box-orient: vertical;
  1524. -webkit-line-clamp: 3;
  1525. overflow: hidden;
  1526. text-overflow: ellipsis;
  1527. word-break: break-all;
  1528. font-family: PingFang SC, PingFang SC;
  1529. font-weight: 400;
  1530. font-size: 14px;
  1531. color: #666666;
  1532. line-height: 24px;
  1533. text-align: left;
  1534. font-style: normal;
  1535. text-transform: none;
  1536. >span:first-child {
  1537. margin-right: 20px;
  1538. }
  1539. }
  1540. }
  1541. }
  1542. li:hover {
  1543. .text {
  1544. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  1545. background-color: #fff;
  1546. h5,
  1547. p {
  1548. color: #139602;
  1549. }
  1550. }
  1551. }
  1552. }
  1553. }
  1554. .innerRight {
  1555. .title {
  1556. h3 {
  1557. height: 36px;
  1558. font-family: Source Han Sans, Source Han Sans;
  1559. font-weight: bold;
  1560. font-size: 24px;
  1561. color: #000000;
  1562. line-height: 28px;
  1563. text-align: left;
  1564. font-style: normal;
  1565. text-transform: none;
  1566. border-bottom: 1px solid #139602;
  1567. a {
  1568. float: right;
  1569. width: 56px;
  1570. height: 20px;
  1571. line-height: 24px;
  1572. font-weight: 400;
  1573. font-size: 14px;
  1574. color: #999999;
  1575. font-style: normal;
  1576. text-transform: none;
  1577. }
  1578. }
  1579. }
  1580. // 轮播图
  1581. .banner {
  1582. width: 380px;
  1583. height: 214px;
  1584. margin-top: 20px;
  1585. }
  1586. .banner_b_img {
  1587. // 图片部分
  1588. .photo {
  1589. height: 104px;
  1590. margin-top: 23px;
  1591. }
  1592. .photoL {
  1593. display: inline-block;
  1594. width: 185px;
  1595. height: 104px;
  1596. position: relative;
  1597. img {
  1598. width: 185px;
  1599. height: 104px;
  1600. border-radius: 2px;
  1601. }
  1602. // a,
  1603. span {
  1604. position: absolute;
  1605. top: 0;
  1606. left: 0;
  1607. display: inline-block;
  1608. padding-left: 7px;
  1609. box-sizing: border-box;
  1610. width: 185px;
  1611. height: 22px;
  1612. white-space: nowrap;
  1613. overflow: hidden;
  1614. text-overflow: ellipsis;
  1615. background-color: rgba(0, 0, 0, 0.5);
  1616. font-weight: 500px;
  1617. font-size: 14px;
  1618. color: #FFFFFF;
  1619. line-height: 22px;
  1620. }
  1621. }
  1622. .photoL {
  1623. margin-right: 10px;
  1624. }
  1625. ul {
  1626. width: 380px;
  1627. height: 186px;
  1628. >li {
  1629. height: 22px;
  1630. padding-top: 16px;
  1631. >strong {
  1632. display: inline-block;
  1633. width: 24px;
  1634. height: 24px;
  1635. line-height: 24px;
  1636. background-color: #cecece;
  1637. padding-left: 6px;
  1638. box-sizing: border-box;
  1639. font-family: Source Han Sans, Source Han Sans;
  1640. font-weight: 500;
  1641. font-size: 18px;
  1642. color: #FFFFFF;
  1643. font-style: normal;
  1644. text-transform: none;
  1645. }
  1646. >em {
  1647. display: inline-block;
  1648. width: 6px;
  1649. height: 6px;
  1650. border-radius: 10px;
  1651. border: 2px solid #8CBA86;
  1652. vertical-align: middle;
  1653. }
  1654. a,
  1655. >span {
  1656. display: inline-block;
  1657. width: 350px;
  1658. height: 22px;
  1659. white-space: nowrap;
  1660. overflow: hidden;
  1661. text-overflow: ellipsis;
  1662. font-family: PingFang SC, PingFang SC;
  1663. font-weight: 500;
  1664. font-size: 18px;
  1665. color: #333333;
  1666. line-height: 21px;
  1667. text-align: left;
  1668. font-style: normal;
  1669. text-transform: none;
  1670. padding-left: 9px;
  1671. vertical-align: middle;
  1672. }
  1673. a:hover,
  1674. >span:hover {
  1675. color: #139609;
  1676. }
  1677. }
  1678. }
  1679. }
  1680. }
  1681. }
  1682. }
  1683. </style>