search.vue 26 KB

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