index.vue 60 KB

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