search.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 搜索框 -->
  10. <div class="search">
  11. <div class="inner">
  12. <input v-model="keywordInput" type="text" placeholder="请输入搜索内容">
  13. <button @click="goSearch">搜索</button>
  14. </div>
  15. </div>
  16. <!-- 面包屑导航 -->
  17. <div class="breadcrumb">
  18. <div class="inner">
  19. <span class="location">当前位置:</span>
  20. <el-breadcrumb :separator-icon="ArrowRight">
  21. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  22. <el-breadcrumb-item :to="{ path: '/search/search' }">搜索</el-breadcrumb-item>
  23. </el-breadcrumb>
  24. </div>
  25. </div>
  26. <!-- <div class="searchBox">
  27. <input type="text" placeholder="输入关键词" v-model="keywordInput">
  28. <button @click="goSearch">搜索</button>
  29. </div> -->
  30. <!-- 资讯列表 -->
  31. <div class="newsList">
  32. <div class="inner">
  33. <div class="innerLeft">
  34. <ul class="list" v-if="newsList.length >= 0">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="item.linkurl" target="_blank" v-show="item.islink == 1">{{ item.title }}
  37. </NuxtLink>
  38. <NuxtLink
  39. :to="{ path: `/newsDetail/${item.id}`, query: { listId: routeId, listName: routeName } }"
  40. target="_blank" v-if="item.islink == 0">{{ item.title }}</NuxtLink>
  41. </li>
  42. </ul>
  43. <div v-if="newsList.length == 0" class="empty">
  44. <div>
  45. <img src="../../static/search/empty.png" alt="暂无内容">
  46. <p>暂无搜索数据</p>
  47. </div>
  48. </div>
  49. <!-- 分页器 -->
  50. <div class="pagination">
  51. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  52. v-model:page-size="pageSize" prev-text="上一页" next-text="下一页" @change="changePage" />
  53. <!-- <HomePagination @sendData="handleData"></HomePagination> -->
  54. </div>
  55. </div>
  56. <!-- <div class="innerRight">
  57. <DetailHotNews></DetailHotNews>
  58. </div> -->
  59. </div>
  60. </div>
  61. <!-- 列表页广告二 -->
  62. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  63. <!--
  64. <div class="zixuntuijian">
  65. <div class="inner">
  66. <div class="innerLeft">
  67. <div class="zixunLeft">
  68. <div class="title">
  69. <h3>
  70. 资讯推荐
  71. </h3>
  72. </div>
  73. <ul class="photo_text">
  74. <li v-for="item in news1">
  75. <img :src="item.imgurl" alt="">
  76. <div>
  77. <h5>{{ item.title }}</h5>
  78. <p>
  79. <span>{{ item.author }}</span>
  80. <span>{{ item.created_at }}</span>
  81. </p>
  82. </div>
  83. </li>
  84. <li v-for="item in news11">
  85. <em></em>
  86. {{ item.title }}
  87. </li>
  88. </ul>
  89. </div>
  90. <div class="zixunRight">
  91. <div class="title">
  92. <h3>
  93. 资讯推荐
  94. </h3>
  95. </div>
  96. <ul class="photo_text">
  97. <li v-for="item in news2">
  98. <img :src="item.imgurl" alt="">
  99. <div>
  100. <h5>{{ item.title }}</h5>
  101. <p>
  102. <span>{{ item.author }}</span>
  103. <span>{{ item.created_at }}</span>
  104. </p>
  105. </div>
  106. </li>
  107. <li v-for="item in news22">
  108. <em></em>
  109. {{ item.title }}
  110. </li>
  111. </ul>
  112. </div>
  113. </div>
  114. <div class="innerRight">
  115. <div class="title">
  116. <h4>
  117. 热点资讯
  118. </h4>
  119. </div>
  120. <ul class="rightList">
  121. <li v-for="item in hotlistall">
  122. <img class="left" :src="item.imgurl">
  123. <p class="left">{{ item.title }}</p>
  124. </li>
  125. </ul>
  126. </div>
  127. </div>
  128. </div>
  129. -->
  130. <!-- 页面底部 -->
  131. <HomeFoot1></HomeFoot1>
  132. </div>
  133. </template>
  134. <script setup>
  135. import { onMounted } from 'vue';
  136. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  137. import { ArrowRight } from '@element-plus/icons-vue'
  138. const nuxtApp = useNuxtApp();
  139. const axios = nuxtApp.$axios;
  140. //获得跳转过来的id
  141. const route = useRoute();
  142. const articleId = route.params.id; //获得该页面的id
  143. const category_id = route.query.category_id; //获得该页面的id
  144. const name = route.query.name; //获得该页面的id
  145. const searchKey = route.query.keyword
  146. console.log(name);
  147. //从地区跳转
  148. const catids = ref([]);
  149. //关键词
  150. let keyWord = useState("keyWord", () => "")
  151. let id = useState("id", () => "")
  152. let total = useState("total", () => 0)
  153. let page = useState("page", () => 1)
  154. let pageSize = useState("pageSize", () => 20)
  155. let keywordInput = ref("")
  156. //获得广告
  157. const adList = ref("");
  158. const aa='SEARCH'
  159. const getadList = async () => {
  160. try {
  161. const response = await axios.get(`/web/getWebsiteAdvertisement?ad_tag=${aa}`);
  162. adList.value = response.data;
  163. } catch (error) {
  164. console.error(error);
  165. }
  166. }
  167. onMounted(() => {
  168. getadList()
  169. })
  170. // 定义响应式数据
  171. const seoData = ref({
  172. title: '搜索',
  173. description: '默认描述',
  174. keywords: '默认关键词',
  175. image: 'https://example.com/default-image.jpg'
  176. });
  177. // 在 onMounted 钩子中获取数据
  178. onMounted(()=>{
  179. seoData.value.title = '搜索';
  180. seoData.value.description = '默认描述';
  181. seoData.value.keywords = '默认关键词';
  182. })
  183. // 在 onMounted 钩子中获取数据
  184. // onMounted(async () => {
  185. // try {
  186. // const response = await axios.get(`/web/getWebsiteCategoryHead?catid=${articleId}`);
  187. // const data = response.data.website_head; // 假设接口返回的数据在 data 字段中
  188. // console.log(seoData.value.title)
  189. // // 更新 seoData
  190. // seoData.value = {
  191. // title: data.seo_title,
  192. // description: data.seo_description,
  193. // keywords: data.seo_keywords,
  194. // image: data.seo_image
  195. // };
  196. // console.log(seoData.value.title)
  197. // } catch (error) {
  198. // console.error('获取 SEO 数据失败:', error);
  199. // // 设置默认值
  200. // seoData.value = {
  201. // title: '三农资讯网',
  202. // description: '默认描述',
  203. // keywords: '默认关键词',
  204. // image: 'https://example.com/default-image.jpg'
  205. // };
  206. // }
  207. // });
  208. // 监听 seoData 的变化,动态设置 SEO 字段
  209. // watch(seoData, (newVal) => {
  210. // if (newVal.title) { // 确保 title 有值
  211. // useSeoMeta({
  212. // title: newVal.title, // 使用动态值
  213. // description: newVal.description,
  214. // ogTitle: newVal.title,
  215. // ogDescription: newVal.description,
  216. // ogImage: newVal.image,
  217. // twitterTitle: newVal.title,
  218. // twitterDescription: newVal.description,
  219. // twitterImage: newVal.image,
  220. // keywords: newVal.keywords
  221. // });
  222. // }
  223. // }, { immediate: true });
  224. //点击搜索按钮
  225. let goSearch = async () => {
  226. const response = await axios.get(`/web/getWebsiteArticleList?page=${page.value}&pageSize=${pageSize.value}&keyword=${keywordInput.value}`);
  227. // console.log(response.data.rows);
  228. newsList.value = response.data.rows;
  229. total.value = response.data.count;
  230. }
  231. onMounted(() => {
  232. id.value = route.query.id;
  233. console.log('id', id.value);
  234. })
  235. // 页码
  236. // //页面组件传递数据的时间驱动函数
  237. // const handleData = (data) => {
  238. // console.log(data.value)
  239. // page.value = data.value
  240. // //在页码发生变化时去请求响应页面的新闻数据
  241. // axios.get(`/web/getWebsiteArticlesList?page=${page.value}&pageSize=${10}&catid=${14}&keyword=${keyWord.value}`).then(response => {
  242. // // console.log(response.data.rows);
  243. // newsList.value = response.data.rows;
  244. // }).catch(error => {
  245. // console.error(error);
  246. // })
  247. // }
  248. let changePage = (value) => {
  249. console.log("当前页码", value);
  250. page.value = value
  251. console.log(page.value);
  252. newslists()
  253. }
  254. // 新闻列表
  255. const newsList = useState("newsList", () => '');
  256. const newslists = async () => {
  257. try {
  258. // const response = await axios.get(`/web/getWebsiteArticleList?page=${page.value}&pageSize=${pageSize.value}&keyword=${searchKey}`);
  259. // // console.log(response.data.rows);
  260. // newsList.value = response.data.rows;
  261. // total.value = response.data.count;
  262. // 从地区跳转
  263. if (route.query.catids && route.query.catids.length > 0) {
  264. // 将字符串转换回数组,并过滤掉可能的空值
  265. catids.value = route.query.catids.split(',').filter(id => id);
  266. if (catids.value.length > 0) {
  267. // 有效的 catids 数组,可以进行后续操作
  268. console.log('接收到的分类ID数组:', catids.value);
  269. let font = catids.value.join(",")
  270. font = "[" + font + "]"
  271. //console.log(font);
  272. const response = await axios.get(`/web/getWebsiteArticleList?page=${page.value}&pageSize=${pageSize.value}&catid=${font}`);
  273. console.log(response.data.rows);
  274. newsList.value = response.data.rows;
  275. total.value = response.data.count;
  276. } else {
  277. // 处理空数组情况
  278. console.log('未接收到有效的分类ID');
  279. }
  280. } else {
  281. if (category_id == undefined) {
  282. const response = await axios.get(`/web/getWebsiteArticleList?page=${page.value}&pageSize=${pageSize.value}&keyword=${searchKey}`);
  283. // console.log(response.data.rows);
  284. newsList.value = response.data.rows;
  285. total.value = response.data.count;
  286. } else {
  287. const response = await axios.get(`/web/getWebsiteArticleList?page=${page.value}&pageSize=${pageSize.value}&catid=${category_id}&keyword=${searchKey}`);
  288. // console.log(response.data.rows);
  289. newsList.value = response.data.rows;
  290. total.value = response.data.count;
  291. }
  292. }
  293. } catch (error) {
  294. console.error(error);
  295. }
  296. }
  297. //热点资讯
  298. const hotlistall = useState("hotlistall", () => "");
  299. const hotlist = async () => {
  300. try {
  301. const response = await axios.get(`/web/getWebsiteArticlett?pageSize=${2}&level=${4}&placeid=${1}`);
  302. console.log('热点资讯', response.data);
  303. for (let item of response.data) {
  304. console.log(item);
  305. item.count = 1;
  306. }
  307. hotlistall.value = response.data;
  308. } catch (error) {
  309. console.error(error);
  310. }
  311. }
  312. //资讯推荐1
  313. const news1 = useState("news1", () => "");
  314. const newslist1 = async () => {
  315. try {
  316. const response = await axios.get(`/web/getWebsiteArticlett?pageSize=${1}&level=${5}&placeid=${1}`);
  317. console.log('热点资讯', response.data);
  318. news1.value = response.data;
  319. } catch (error) {
  320. console.error(error);
  321. }
  322. }
  323. const news11 = useState("news11", () => "");
  324. const newslist11 = async () => {
  325. try {
  326. const response = await axios.get(`/web/getWebsiteArticlett?pageSize=${3}&level=${5}&placeid=${1}`);
  327. console.log('热点资讯', response.data);
  328. news11.value = response.data;
  329. } catch (error) {
  330. console.error(error);
  331. }
  332. }
  333. //资讯推荐2
  334. const news2 = useState("news2", () => "");
  335. const newslist2 = async () => {
  336. try {
  337. const response = await axios.get(`/web/getWebsiteArticlett?pageSize=${1}&level=${5}&placeid=${1}`);
  338. console.log('热点资讯', response.data);
  339. news2.value = response.data;
  340. } catch (error) {
  341. console.error(error);
  342. }
  343. }
  344. const news22 = useState("news22", () => "");
  345. const newslist22 = async () => {
  346. try {
  347. const response = await axios.get(`/web/getWebsiteArticlett?pageSize=${3}&level=${5}&placeid=${1}`);
  348. console.log('热点资讯', response.data);
  349. news22.value = response.data;
  350. } catch (error) {
  351. console.error(error);
  352. }
  353. }
  354. //挂载成功钩子函数
  355. onMounted(() => {
  356. // 资讯推荐
  357. newslists()
  358. // 热点资讯
  359. hotlist()
  360. // 资讯推荐
  361. newslist1()
  362. newslist2()
  363. // 热点资讯
  364. newslist11()
  365. newslist22()
  366. })
  367. //路由中间件
  368. definePageMeta({
  369. middleware: 'auth'
  370. })
  371. </script>
  372. <style lang="less" scoped>
  373. //导航条
  374. .breadcrumb {
  375. width: 100%;
  376. height: 22px;
  377. margin-bottom: 30px;
  378. font-family: Microsoft YaHei, Microsoft YaHei;
  379. font-weight: 400;
  380. font-size: 20px;
  381. color: #666666;
  382. line-height: 23px;
  383. text-align: left;
  384. font-style: normal;
  385. text-transform: none;
  386. :deep(.el-breadcrumb) {
  387. display: inline-block;
  388. vertical-align: -4px;
  389. }
  390. :deep(.el-breadcrumb__inner a),
  391. :deep(.el-breadcrumb__inner.is-link) {
  392. color: #666666;
  393. font-weight: 400;
  394. text-decoration: none;
  395. transition: var(--el-transition-color);
  396. }
  397. span {
  398. font-family: Microsoft YaHei, Microsoft YaHei;
  399. font-weight: 400;
  400. font-size: 20px;
  401. color: #666666;
  402. line-height: 23px;
  403. text-align: left;
  404. font-style: normal;
  405. text-transform: none;
  406. }
  407. span:hover {
  408. color: #666666;
  409. }
  410. .location {
  411. margin-right: 20px;
  412. width: 100px;
  413. height: 22px;
  414. font-family: Microsoft YaHei, Microsoft YaHei;
  415. font-weight: 400;
  416. font-size: 20px;
  417. color: #666666;
  418. line-height: 23px;
  419. text-align: left;
  420. font-style: normal;
  421. text-transform: none;
  422. }
  423. }
  424. .empty {
  425. div {
  426. display: flex;
  427. justify-content: center;
  428. align-items: center;
  429. padding-top: 200px;
  430. }
  431. width: 100%;
  432. height: 600px;
  433. font-size: 26px;
  434. color: #CCCCCC;
  435. img {
  436. display: inline-block;
  437. }
  438. }
  439. // 资讯列表
  440. .newsList {
  441. width: 1200px;
  442. margin: 0 auto;
  443. //height: 675px;
  444. margin-bottom: 70px;
  445. .inner {
  446. width: 1200px;
  447. .innerLeft {
  448. width: 100%;
  449. }
  450. .innerLeft,
  451. .innerRight {
  452. border-top: 1px solid #139602;
  453. clear: both;
  454. float: none;
  455. }
  456. .innerLeft {
  457. //height: 675px;
  458. >.list {
  459. //height: 570px;
  460. margin-bottom: 70px;
  461. >li {
  462. width: 100%;
  463. height: 56px;
  464. white-space: nowrap;
  465. overflow: hidden;
  466. text-overflow: ellipsis;
  467. line-height: 56px;
  468. >a {
  469. width: 360px;
  470. height: 26px;
  471. font-family: Microsoft YaHei, Microsoft YaHei;
  472. font-weight: 400;
  473. font-size: 20px;
  474. color: #333333;
  475. line-height: 26px;
  476. text-align: left;
  477. font-style: normal;
  478. text-transform: none;
  479. }
  480. }
  481. >li:hover>a {
  482. color: #139602;
  483. }
  484. >li:nth-child(1)::after,
  485. >li:nth-child(2)::after {
  486. content: "热";
  487. margin-left: 13px;
  488. background: #FF8A37;
  489. color: #fff;
  490. font-size: 14px;
  491. padding: 0px 2px;
  492. }
  493. >li:nth-child(5n) {
  494. border-bottom: 1px solid #D9D9D9;
  495. }
  496. }
  497. >.pagination {
  498. width: 100%;
  499. height: 34px;
  500. margin-left: 141px;
  501. display: flex;
  502. justify-content: center;
  503. margin: 0;
  504. // 鼠标移入后字体颜色
  505. .el-pagination::v-deep :hover {
  506. color: #139609;
  507. }
  508. .el-pagination.is-background::v-deep .btn-next,
  509. .el-pagination.is-background::v-deep .btn-prev {
  510. width: 70px;
  511. height: 34px;
  512. margin: 0px 10px;
  513. border-radius: 4px;
  514. }
  515. .el-pagination.is-background::v-deep .el-pager li {
  516. margin: 0px 10px;
  517. width: 38px;
  518. height: 34px;
  519. border-radius: 4px;
  520. }
  521. .el-pagination.is-background::v-deep .btn-next.is-active,
  522. .el-pagination.is-background::v-deep .btn-prev.is-active,
  523. .el-pagination.is-background::v-deep .el-pager li.is-active {
  524. background-color: #028e21;
  525. color: #fff;
  526. }
  527. }
  528. }
  529. .innerRight {
  530. width: 381px;
  531. height: 605px;
  532. clear: both;
  533. overflow: hidden;
  534. }
  535. }
  536. }
  537. //资讯推荐
  538. .zixuntuijian {
  539. width: 100%;
  540. height: 290px;
  541. margin-bottom: 70px;
  542. .innerLeft {
  543. // 左侧
  544. .zixunLeft {
  545. margin-right: 30px;
  546. }
  547. .zixunRight,
  548. .zixunLeft {
  549. float: left;
  550. width: 380px;
  551. height: 290px;
  552. // 标题部分
  553. >.title {
  554. width: 380px;
  555. }
  556. >.title>h3 {
  557. height: 36px;
  558. font-family: Source Han Sans, Source Han Sans;
  559. font-weight: bold;
  560. font-size: 24px;
  561. color: #000000;
  562. line-height: 28px;
  563. text-align: left;
  564. font-style: normal;
  565. text-transform: none;
  566. border-bottom: 1px solid #139602;
  567. }
  568. >.title>h3>span {
  569. float: right;
  570. width: 56px;
  571. height: 20px;
  572. line-height: 24px;
  573. font-weight: 400;
  574. font-size: 14px;
  575. color: #999999;
  576. font-style: normal;
  577. text-transform: none;
  578. }
  579. .photo_text {
  580. >li:first-child {
  581. width: 380px;
  582. height: 120px;
  583. margin-top: 20px;
  584. margin-bottom: 15px;
  585. position: relative;
  586. >img {
  587. float: left;
  588. width: 160px;
  589. height: 120px;
  590. }
  591. >div {
  592. float: left;
  593. width: 220px;
  594. height: 120px;
  595. padding-left: 15px;
  596. padding-top: 6px;
  597. box-sizing: border-box;
  598. background-color: #f6f6f6;
  599. >h5 {
  600. width: 200px;
  601. height: 54px;
  602. display: -webkit-box;
  603. -webkit-box-orient: vertical;
  604. -webkit-line-clamp: 2;
  605. overflow: hidden;
  606. text-overflow: ellipsis;
  607. word-break: break-all;
  608. font-family: Source Han Sans, Source Han Sans;
  609. font-weight: 500;
  610. font-size: 18px;
  611. color: #333333;
  612. line-height: 26px;
  613. text-align: left;
  614. font-style: normal;
  615. text-transform: none;
  616. }
  617. >p {
  618. width: 200px;
  619. height: 22px;
  620. line-height: 20px;
  621. position: absolute;
  622. bottom: 5px;
  623. right: 0;
  624. >span {
  625. display: inline-block;
  626. // width: 100px;
  627. height: 18px;
  628. font-family: Source Han Sans, Source Han Sans;
  629. font-weight: 400;
  630. font-size: 12px;
  631. color: #999999;
  632. text-align: left;
  633. line-height: 14px;
  634. font-style: normal;
  635. text-transform: none;
  636. }
  637. >span:last-child {
  638. // width: 90px;
  639. text-align: right;
  640. margin-left: 20px;
  641. }
  642. }
  643. }
  644. }
  645. >li {
  646. width: 380px;
  647. height: 25px;
  648. white-space: nowrap;
  649. overflow: hidden;
  650. text-overflow: ellipsis;
  651. font-family: PingFang SC, PingFang SC;
  652. font-weight: 500;
  653. font-size: 18px;
  654. color: #333333;
  655. line-height: 21px;
  656. text-align: left;
  657. font-style: normal;
  658. text-transform: none;
  659. margin-bottom: 10px;
  660. em {
  661. display: inline-block;
  662. width: 8px;
  663. height: 8px;
  664. border-radius: 8px;
  665. margin-right: 10px;
  666. background-color: #d9d9d9;
  667. }
  668. }
  669. >li:hover {
  670. color: #139602;
  671. }
  672. >li:hover em {
  673. background-color: #139602;
  674. }
  675. }
  676. }
  677. }
  678. .innerRight {
  679. width: 381px;
  680. height: 290px;
  681. background-color: #fbfbfb;
  682. >.title {
  683. width: 380px;
  684. height: 40px;
  685. line-height: 40px;
  686. border-top: 1px solid #139602;
  687. border-bottom: 1px solid #e7e7e7;
  688. >h4 {
  689. font-family: Microsoft YaHei, Microsoft YaHei;
  690. font-weight: 400;
  691. margin-left: 20px;
  692. font-size: 20px;
  693. color: #000000;
  694. text-align: left;
  695. font-style: normal;
  696. text-transform: none;
  697. >span {
  698. float: right;
  699. font-family: Microsoft YaHei, Microsoft YaHei;
  700. font-weight: 400;
  701. font-size: 14px;
  702. margin-right: 10px;
  703. color: #999999;
  704. text-align: left;
  705. font-style: normal;
  706. text-transform: none;
  707. }
  708. }
  709. }
  710. .rightList {
  711. height: 540px;
  712. margin-top: 20px;
  713. >li {
  714. height: 100px;
  715. margin-bottom: 10px;
  716. >img {
  717. width: 150px;
  718. height: 100px;
  719. }
  720. >p {
  721. width: 219px;
  722. height: 100px;
  723. padding-left: 12px;
  724. font-family: PingFang SC, PingFang SC;
  725. font-weight: 400;
  726. font-size: 16px;
  727. color: #333333;
  728. line-height: 22px;
  729. text-align: left;
  730. font-style: normal;
  731. text-transform: none;
  732. }
  733. >p:hover {
  734. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  735. }
  736. }
  737. }
  738. }
  739. }
  740. .searchBox {
  741. text-align: center;
  742. padding-bottom: 40px;
  743. }
  744. .search {
  745. width: 100%;
  746. height: 100px;
  747. // background-color: #f5f5f5;
  748. .inner {
  749. width: 1200px;
  750. height: 100px;
  751. // line-height: 100px;
  752. padding-top: 10px;
  753. text-align: center;
  754. input {
  755. width: 582px;
  756. height: 46px;
  757. outline: none;
  758. border: 1px solid #E6E6E6;
  759. border-radius: 0;
  760. padding-left: 20px;
  761. vertical-align: 0px;
  762. font-size: 16px;
  763. color: #666666
  764. }
  765. button {
  766. width: 120px;
  767. height: 48px;
  768. background-color: #139602;
  769. color: #fff;
  770. border: none;
  771. border-radius: 0;
  772. cursor: pointer;
  773. }
  774. }
  775. }
  776. </style>