index.vue 50 KB

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