dishizhongxin.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. <template>
  2. <!-- 页面头部 -->
  3. <HomePageHead></HomePageHead>
  4. <!-- 导航栏 -->
  5. <HomePageNavigation></HomePageNavigation>
  6. <!-- 面包屑导航 -->
  7. <div class="breadcrumb-box">
  8. <div class="inner">
  9. <span class="location">当前位置:</span>
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item>
  12. <NuxtLink to="/">首页</NuxtLink>
  13. </el-breadcrumb-item>
  14. <el-breadcrumb-item class="phone_breadcrumb_text">地市中心</el-breadcrumb-item>
  15. </el-breadcrumb>
  16. </div>
  17. </div>
  18. <!--查询结果-->
  19. <div class="search-result-box">
  20. <div class="search-result-box-title">
  21. 本地区暂未开通调研中心,欢迎有意从事法制公益性工作的公民或法人单位申请代理。
  22. <br />
  23. 详情咨询电话:010-56212745、010-53382908、010-56212741。
  24. </div>
  25. <div class="search-result-box-qq">
  26. <div>QQ咨询:</div>
  27. <div>
  28. <img src="@/public/search/qq.gif" alt="">
  29. <img src="@/public/search/qq.gif" alt="">
  30. </div>
  31. </div>
  32. <div class="search-result-box-back">
  33. <NuxtLink to="/">返回首页>></NuxtLink>
  34. </div>
  35. </div>
  36. <!--查询-->
  37. <div class="search-box">
  38. <div class="search-left-box">
  39. <div>
  40. <span class="search-left-box-text">地区:</span>
  41. <el-select v-model="province" placeholder="--" size="large" style="width: 180px"
  42. popper-class="custom-select-dropdown">
  43. <el-option v-for="item in provinceList" :key="item.id" :label="item.name" @click="change(item.id)"
  44. :value="item.id" />
  45. </el-select>
  46. <el-select v-model="city" placeholder="--" no-data-text="请先选择省份" size="large" style="width: 180px"
  47. popper-class="custom-select-dropdown">
  48. <el-option v-for="(item, index) in cityList" :key="item.id" :label="item.name"
  49. @click="change1(item.id)" :value="item.id" />
  50. </el-select>
  51. <el-select v-model="region" placeholder="--" no-data-text="请先选择市" size="large" style="width: 180px"
  52. popper-class="custom-select-dropdown">
  53. <el-option v-for="item in regionList" :key="item.id" :label="item.name" :value="item.id" />
  54. </el-select>
  55. </div>
  56. <button>搜索</button>
  57. </div>
  58. <div class="search-right-box">
  59. <img src="@/public/search/dszx.png" alt="">
  60. <div>手机扫描查询</div>
  61. </div>
  62. </div>
  63. <div class="search-list-box">
  64. <div class="search-list-box-title">中心列表</div>
  65. <div class="search-list-box-main">
  66. <NuxtLink to="/">京</NuxtLink>
  67. <NuxtLink to="/">津</NuxtLink>
  68. <NuxtLink to="/">沪</NuxtLink>
  69. <NuxtLink to="/">渝</NuxtLink>
  70. <NuxtLink to="/">冀</NuxtLink>
  71. <NuxtLink to="/">豫</NuxtLink>
  72. <NuxtLink to="/">云</NuxtLink>
  73. <NuxtLink to="/">辽</NuxtLink>
  74. <NuxtLink to="/">黑</NuxtLink>
  75. <NuxtLink to="/">湘</NuxtLink>
  76. <NuxtLink to="/">皖</NuxtLink>
  77. <NuxtLink to="/">鲁</NuxtLink>
  78. <NuxtLink to="/">新</NuxtLink>
  79. <NuxtLink to="/">苏</NuxtLink>
  80. <NuxtLink to="/">浙</NuxtLink>
  81. <NuxtLink to="/">赣</NuxtLink>
  82. <NuxtLink to="/">鄂</NuxtLink>
  83. <NuxtLink to="/">桂</NuxtLink>
  84. <NuxtLink to="/">甘</NuxtLink>
  85. <NuxtLink to="/">晋</NuxtLink>
  86. <NuxtLink to="/">蒙</NuxtLink>
  87. <NuxtLink to="/">陕</NuxtLink>
  88. <NuxtLink to="/">吉</NuxtLink>
  89. <NuxtLink to="/">闽</NuxtLink>
  90. <NuxtLink to="/">贵</NuxtLink>
  91. <NuxtLink to="/">粤</NuxtLink>
  92. <NuxtLink to="/">青</NuxtLink>
  93. <NuxtLink to="/">藏</NuxtLink>
  94. <NuxtLink to="/">川</NuxtLink>
  95. <NuxtLink to="/">宁</NuxtLink>
  96. <NuxtLink to="/">琼</NuxtLink>
  97. <NuxtLink to="/">港</NuxtLink>
  98. <NuxtLink to="/">澳</NuxtLink>
  99. <NuxtLink to="/">台</NuxtLink>
  100. </div>
  101. <div class="search-list-box-content">
  102. <div class="cityname">
  103. <div class="sheng">
  104. <NuxtLink to="/">北京</NuxtLink>
  105. </div>
  106. <div class="shi">
  107. <NuxtLink to="/">东城区</NuxtLink>
  108. <NuxtLink to="/">延庆县</NuxtLink>
  109. <NuxtLink to="/">西城区</NuxtLink>
  110. <NuxtLink to="/">朝阳区</NuxtLink>
  111. <NuxtLink to="/">丰台区</NuxtLink>
  112. <NuxtLink to="/">石景山区</NuxtLink>
  113. <NuxtLink to="/">海淀区</NuxtLink>
  114. <NuxtLink to="/">门头沟区</NuxtLink>
  115. <NuxtLink to="/">房山区</NuxtLink>
  116. <NuxtLink to="/">通州区</NuxtLink>
  117. <NuxtLink to="/">顺义区</NuxtLink>
  118. <NuxtLink to="/">昌平区</NuxtLink>
  119. <NuxtLink to="/">大兴区</NuxtLink>
  120. <NuxtLink to="/">怀柔区</NuxtLink>
  121. <NuxtLink to="/">平谷区</NuxtLink>
  122. <NuxtLink to="/">密云县</NuxtLink>
  123. </div>
  124. </div>
  125. <div class="cityname">
  126. <div class="sheng">
  127. <NuxtLink to="/">四川</NuxtLink>
  128. </div>
  129. <div class="shi">
  130. <NuxtLink to="/">成都市</NuxtLink>
  131. <NuxtLink to="/">自贡市</NuxtLink>
  132. <NuxtLink to="/">攀枝花市</NuxtLink>
  133. <NuxtLink to="/">泸州市</NuxtLink>
  134. <NuxtLink to="/">德阳市</NuxtLink>
  135. <NuxtLink to="/">绵阳市</NuxtLink>
  136. <NuxtLink to="/">广元市</NuxtLink>
  137. <NuxtLink to="/">遂宁市</NuxtLink>
  138. <NuxtLink to="/">内江市</NuxtLink>
  139. <NuxtLink to="/">乐山市</NuxtLink>
  140. <NuxtLink to="/">南充市</NuxtLink>
  141. <NuxtLink to="/">眉山市</NuxtLink>
  142. <NuxtLink to="/">宜宾市</NuxtLink>
  143. <NuxtLink to="/">广安市</NuxtLink>
  144. <NuxtLink to="/">达州市</NuxtLink>
  145. <NuxtLink to="/">雅安市</NuxtLink>
  146. <NuxtLink to="/">巴中市</NuxtLink>
  147. <NuxtLink to="/">资阳市</NuxtLink>
  148. <NuxtLink to="/">阿坝藏族羌族自治州</NuxtLink>
  149. <NuxtLink to="/">甘孜藏族自治州</NuxtLink>
  150. <NuxtLink to="/">凉山彝族自治州</NuxtLink>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <!-- 页面底部 -->
  156. <HomeFoot></HomeFoot>
  157. </template>
  158. <script setup>
  159. //1.页面依赖 start ---------------------------------------->
  160. import { onMounted } from 'vue'
  161. import { ElBreadcrumb, ElBreadcrumbItem, ElMessage, ElInput, ElSelect, ElOption } from 'element-plus'
  162. import { ArrowRight } from '@element-plus/icons-vue'
  163. const nuxtApp = useNuxtApp();
  164. const axios = nuxtApp.$axios;
  165. //1.1 获得跳转过来的id
  166. const route = useRoute();
  167. //获得详情id
  168. const articleId = parseInt(route.params.id); //获得该页面的id
  169. //获得当前的完整路径
  170. const fullPath = route.path;
  171. //拆分,取出来中间这一段,然后提取数字部分
  172. const segments = fullPath.split('/');
  173. const targetSegment = segments[1];
  174. // const numberPart = targetSegment.match(/\d+$/)?.[0];
  175. // let routeId = 20 //排除路径错误可以打开这个
  176. // const routeId = numberPart;
  177. let routeId;
  178. //通过导航路径反向查询导航id
  179. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  180. method: 'GET',
  181. query: {
  182. 'pinyin': targetSegment,
  183. },
  184. });
  185. if (getRouteId.code == 200) {
  186. routeId = getRouteId.data.category_id
  187. } else {
  188. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  189. console.log("错误位置:通过url路径查询导航池id")
  190. console.log("后端错误反馈:", getRouteId.message)
  191. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  192. }
  193. //1.2 获得父级栏目的名称、id
  194. const parent_name = ref([]);
  195. const parent_id = ref([]);
  196. const parent_pinyin = ref("");
  197. const parent_children_count = ref(0)
  198. let getParentNav = async () => {
  199. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  200. method: 'GET',
  201. query: {
  202. 'catid': routeId
  203. },
  204. });
  205. console.log("获取父级栏目数据")
  206. console.log(listData)
  207. if (listData.code == 200) {
  208. console.log(listData.data);
  209. parent_name.value = listData.data.alias;
  210. parent_id.value = listData.data.parent_id;
  211. parent_pinyin.value = listData.data.aLIas_pinyin;
  212. parent_children_count.value = listData.data.children_count;
  213. } else {
  214. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  215. console.log("错误位置:获取面包屑导航")
  216. console.log("后端错误反馈:", listData.message)
  217. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  218. }
  219. }
  220. //获得父级栏目详情
  221. getParentNav();
  222. //1.页面依赖 end ---------------------------------------->
  223. //2.页面数据 start ---------------------------------------->
  224. //2.1 资讯详情
  225. const newsDetail = ref({})
  226. const routeNewsTtitle = ref("");
  227. //2.2 发布日期
  228. const time = ref("");
  229. //2.3 路径
  230. const routLevelTitle = ref("");
  231. const routLevelId = ref("");
  232. //是否展示投票
  233. const articleChoice = ref(false);
  234. //2.4获取详情
  235. async function getPageData() {
  236. const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  237. method: 'GET',
  238. query: {
  239. 'articleid': articleId
  240. },
  241. });
  242. if (mkdata.code == 200) {
  243. //判断是否显示投票
  244. if (mkdata.data.is_survey == 1) {
  245. console.log("本篇文章含有投票!")
  246. articleChoice.value = true;
  247. getVoteList();
  248. }
  249. //获取内容
  250. newsDetail.value = mkdata.data;
  251. //获取路径
  252. routLevelTitle.value = newsDetail.value.cat_name;
  253. routLevelId.value = newsDetail.value.category_id;
  254. //获取发布时间
  255. time.value = newsDetail.value.updated_at.split(' ')[0];
  256. //修正标题长度
  257. if (newsDetail.value.title.length >= 30) {
  258. routeNewsTtitle.value = newsDetail.value.title.substr(0, 30) + "...";
  259. } else {
  260. routeNewsTtitle.value = newsDetail.value.title
  261. }
  262. } else {
  263. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  264. console.log("错误位置:获取详情内容")
  265. console.log("后端错误反馈:", mkdata.message)
  266. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  267. }
  268. }
  269. getPageData();
  270. //2.5 获得广告
  271. //广告列表
  272. let adImg1 = ref([]);
  273. onMounted(async () => {
  274. const { $webUrl, $CwebUrl } = useNuxtApp();
  275. //广告1
  276. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
  277. const responseAd1 = await fetch(url, {
  278. headers: {
  279. 'Content-Type': 'application/json',
  280. 'Userurl': $CwebUrl,
  281. 'Origin': $CwebUrl
  282. }
  283. });
  284. const resultAd1 = await responseAd1.json();
  285. adImg1.value = resultAd1.data[0];
  286. })
  287. //2.页面数据 end ---------------------------------------->
  288. //3.设置seo信息 start---------------------------------------->
  289. //3.1 设置seo信息
  290. const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  291. method: 'GET',
  292. query: {
  293. 'articleid': articleId
  294. },
  295. });
  296. if (setData.code == 200) {
  297. let seoTitle = setData.data.title;
  298. let seoDescription = setData.data.introduce;
  299. let seoKeywords = setData.data.keyword;
  300. let seoSuffix = setData.data.suffix;
  301. let seoName = setData.data.website_name;
  302. useSeoMeta({
  303. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  304. meta: [
  305. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  306. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  307. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no', tagPriority: 10 }
  308. ]
  309. });
  310. } else {
  311. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  312. console.log("错误位置:设置详情页面SEO数据")
  313. console.log("后端错误反馈:", setData.message)
  314. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  315. }
  316. //3.设置seo信息 end---------------------------------------->
  317. //4.展示行政区划 start ---------------------------------------->
  318. //let areaList = ref("")
  319. //4.1 省
  320. let province = ref("")
  321. let provinceid = ref("")
  322. let provinceList = ref("")
  323. //4.2 市
  324. let city = ref("")
  325. let cityid = ref("")
  326. let cityList = ref("")
  327. //4.3 县
  328. let region = ref("")
  329. let regionid = ref("")
  330. let regionList = ref("")
  331. //选择市
  332. let change = async (id) => {
  333. provinceid.value = id;
  334. const shengData = await requestDataPromise('/web/selectWebsiteArea', {
  335. method: 'GET',
  336. query: {
  337. 'pid': id,
  338. },
  339. });
  340. cityList.value = shengData.data;
  341. regionList.value = [];// 清空县
  342. }
  343. //选择县
  344. let change1 = async (id) => {
  345. cityid.value = id;
  346. const xianData = await requestDataPromise('/web/selectWebsiteArea', {
  347. method: 'GET',
  348. query: {
  349. 'pid': id,
  350. },
  351. });
  352. regionList.value = xianData.data;
  353. }
  354. let change2 = async (id) => {
  355. regionid.value = id;
  356. }
  357. onMounted(async () => {
  358. //从客户端获取行政区划
  359. try {
  360. const { $webUrl, $CwebUrl } = useNuxtApp();
  361. const response2 = await fetch($webUrl + '/web/selectWebsiteArea', {
  362. headers: {
  363. 'Content-Type': 'application/json',
  364. 'Userurl': $CwebUrl,
  365. 'Origin': $CwebUrl
  366. }
  367. });
  368. const result2 = await response2.json();
  369. provinceList.value = result2.data;
  370. } catch (error) {
  371. console.error('获取行政区划数据失败:', error);
  372. }
  373. const targetElement = document.querySelector('.pc_none li .router-link-exact-active');
  374. const parentElement = document.querySelector('.nav_in');
  375. if (targetElement && parentElement) {
  376. const targetRect = targetElement.getBoundingClientRect();
  377. const parentRect = parentElement.getBoundingClientRect();
  378. const distanceToParentLeft = targetRect.left - parentRect.left;
  379. const navigationElement = document.querySelector('.partOne .navigationOne');
  380. if (navigationElement) {
  381. navigationElement.scrollLeft = distanceToParentLeft - 66;
  382. }
  383. }
  384. })
  385. //4.展示行政区划 end ---------------------------------------->
  386. //5.表单 start---------------------------------------->
  387. let input = ref("");
  388. let value = ref("1");
  389. const submitForm = () => {
  390. console.log(input.value)
  391. console.log(value.value)
  392. }
  393. //5.表单 end---------------------------------------->
  394. </script>
  395. <style lang="less" scoped>
  396. //@import url('@/assets/css/article/pc.less');
  397. //@import url('@/assets/css/article/yd.less');
  398. //面包屑
  399. .breadcrumb-box {
  400. width: 1400px;
  401. margin: 0 auto;
  402. .inner {
  403. width: 100%;
  404. height: 22px;
  405. margin-top: 20px;
  406. margin-bottom: 20px;
  407. font-family: Microsoft YaHei, Microsoft YaHei;
  408. font-weight: 400;
  409. font-size: 20px;
  410. color: #666666;
  411. line-height: 23px;
  412. text-align: left;
  413. font-style: normal;
  414. text-transform: none;
  415. display: flex;
  416. align-items: center;
  417. border-bottom: 1px dashed #ccc;
  418. margin-bottom: 10px;
  419. padding: 20px 20px 20px 0;
  420. box-sizing: border-box;
  421. a {
  422. font-size: 16px;
  423. line-height: 20px;
  424. font-weight: normal !important;
  425. &:hover {
  426. color: #333
  427. }
  428. }
  429. span {
  430. font-size: 16px;
  431. color: #000;
  432. line-height: 20px;
  433. &.location {
  434. line-height: 20px;
  435. }
  436. }
  437. }
  438. }
  439. //搜索
  440. .search-box {
  441. width: 1400px;
  442. margin: 0 auto;
  443. display: flex;
  444. align-items: flex-start;
  445. justify-content: space-between;
  446. .search-left-box {
  447. width: 70%;
  448. display: flex;
  449. align-items: flex-start;
  450. justify-content: space-between;
  451. >div {
  452. width: 80%;
  453. display: flex;
  454. align-items: center;
  455. justify-content: flex-start;
  456. .search-left-box-text {
  457. width: 15%;
  458. text-align: center;
  459. font-size: 16px;
  460. font-weight: bold;
  461. display: block;
  462. }
  463. :deep(.el-select__wrapper) {
  464. margin-left: 10px;
  465. }
  466. :deep(.el-select__placeholder) {
  467. color: #000;
  468. }
  469. }
  470. >button {
  471. width: 10%;
  472. display: block;
  473. color: #fff;
  474. background-color: #337ab7;
  475. border-color: #2e6da4;
  476. font-size: 14px;
  477. font-weight: 400;
  478. text-align: center;
  479. white-space: nowrap;
  480. user-select: none;
  481. background-image: none;
  482. border: 1px solid transparent;
  483. border-radius: 4px;
  484. height: 35px;
  485. line-height: 35px;
  486. }
  487. }
  488. .search-right-box {
  489. margin-right: 50px;
  490. width: 20%;
  491. img {
  492. width: 100%;
  493. height: auto;
  494. display: block;
  495. }
  496. >div {
  497. display: block;
  498. width: 100%;
  499. height: 30px;
  500. line-height: 30px;
  501. font-size: 16px;
  502. color: #333;
  503. text-align: center
  504. }
  505. }
  506. }
  507. .search-list-box {
  508. width: 1400px;
  509. margin: 0 auto;
  510. border: 1px solid #ccc;
  511. margin: 30px auto;
  512. position: relative;
  513. .search-list-box-title {
  514. width: 150px;
  515. height: 50px;
  516. line-height: 50px;
  517. font-size: 30px;
  518. color: #000;
  519. font-weight: bold;
  520. text-align: center;
  521. position: absolute;
  522. top: -25px;
  523. left: 20px;
  524. background: #fff;
  525. }
  526. .search-list-box-main {
  527. width: 100%;
  528. padding: 30px;
  529. border-bottom: 1px solid #ccc;
  530. box-sizing: border-box;
  531. a {
  532. font-size: 16px;
  533. padding: 0 10px;
  534. color: #000;
  535. }
  536. }
  537. .search-list-box-content {
  538. .cityname {
  539. display: flex;
  540. align-items: flex-start;
  541. justify-content: flex-start;
  542. border-bottom: 1px solid #ccc;
  543. &:last-child {
  544. border-bottom: 0;
  545. }
  546. }
  547. .sheng {
  548. width: 20%;
  549. text-align: center;
  550. font-size: 20px;
  551. line-height: 200%;
  552. a {
  553. color: #337ab7;
  554. }
  555. }
  556. .shi {
  557. width: 80%;
  558. height: 100%;
  559. font-size: 16px;
  560. color: #000;
  561. padding: 0 5px;
  562. display: block;
  563. border-left: 1px solid #ccc;
  564. line-height: 40px;
  565. a {
  566. font-size: 16px;
  567. color: #000;
  568. padding: 0 5px;
  569. display: block;
  570. width: auto;
  571. float: left;
  572. }
  573. }
  574. }
  575. }
  576. //返回查询结果
  577. .search-result-box {
  578. width: 500px;
  579. margin: 80px auto;
  580. height: auto;
  581. overflow: hidden;
  582. border: 1px solid #ccc;
  583. .search-result-box-title {
  584. line-height: 30px;
  585. width: 488px;
  586. height: auto;
  587. overflow: hidden;
  588. padding: 6px 6px 0 6px;
  589. font-size: 15px;
  590. font-family: serif;
  591. }
  592. .search-result-box-qq {
  593. display: flex;
  594. align-items: center;
  595. justify-content: flex-start;
  596. line-height: 30px;
  597. width: 488px;
  598. height: auto;
  599. overflow: hidden;
  600. padding: 0 6px 0 6px;
  601. font-size: 15px;
  602. font-family: serif;
  603. div:nth-child(2) {
  604. display: flex;
  605. margin-left: 80px;
  606. img {
  607. margin-right: 20px;
  608. }
  609. }
  610. }
  611. .search-result-box-back {
  612. text-align: right;
  613. width: 488px;
  614. height: 40px;
  615. overflow: hidden;
  616. line-height: 48px;
  617. margin: 0;
  618. a {
  619. color: red;
  620. font-weight: bold;
  621. font-size: 10px;
  622. }
  623. }
  624. }
  625. .breadcrumb-box {
  626. width: 1400PX;
  627. margin: 0px auto 0px;
  628. }
  629. .el-breadcrumb {
  630. height: 22PX;
  631. line-height: 22PX;
  632. }
  633. .breadcrumb-box .inner span.location {
  634. font-size: 16PX;
  635. ;
  636. height: 22PX;
  637. ;
  638. line-height: 22PX;
  639. font-weight: normal;
  640. }
  641. .breadcrumb-box .inner a {
  642. font-size: 16PX;
  643. ;
  644. height: 22PX;
  645. line-height: 22PX;
  646. display: inline-block;
  647. font-weight: normal;
  648. }
  649. .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner {
  650. font-size: 16PX;
  651. height: 22PX;
  652. line-height: 22PX;
  653. font-weight: normal;
  654. }
  655. .breadcrumb-box:deep(.el-icon) {
  656. width: 16PX;
  657. height: 16PX;
  658. }
  659. .breadcrumb-box .inner span {
  660. font-size: 16PX;
  661. ;
  662. height: 22PX;
  663. line-height: 22PX;
  664. }
  665. .search-box {
  666. width: 1400PX;
  667. .search-left-box {
  668. >div {
  669. .search-left-box-text {
  670. font-size: 16PX;
  671. word-break: keep-all;
  672. white-space: nowrap;
  673. }
  674. :deep(.el-select__wrapper) {
  675. margin-left: 10PX;
  676. }
  677. }
  678. >button {
  679. font-size: 14PX;
  680. border: 1PX solid transparent;
  681. border-radius: 4PX;
  682. height: 35PX;
  683. line-height: 35PX;
  684. }
  685. }
  686. .search-right-box {
  687. margin-right: 50PX;
  688. >div {
  689. height: 30PX;
  690. line-height: 30PX;
  691. font-size: 16PX;
  692. }
  693. }
  694. }
  695. .search-list-box {
  696. width: 1400PX;
  697. border: 1PX solid #ccc;
  698. margin: 30PX auto;
  699. .search-list-box-title {
  700. width: 150PX;
  701. height: 50PX;
  702. line-height: 50PX;
  703. font-size: 30PX;
  704. top: -25PX;
  705. left: 20PX;
  706. }
  707. .search-list-box-main {
  708. padding: 30PX;
  709. border-bottom: 1PX solid #ccc;
  710. a {
  711. font-size: 16PX;
  712. padding: 0 10PX;
  713. }
  714. }
  715. .search-list-box-content {
  716. .cityname {
  717. border-bottom: 1PX solid #ccc;
  718. }
  719. .sheng {
  720. font-size: 20PX;
  721. }
  722. .shi {
  723. font-size: 16PX;
  724. padding: 0 5PX;
  725. border-left: 1PX solid #ccc;
  726. line-height: 40PX;
  727. a {
  728. font-size: 16PX;
  729. padding: 0 5PX;
  730. }
  731. }
  732. }
  733. }
  734. //返回查询结果
  735. .search-result-box {
  736. width: 500PX;
  737. margin: 80PX auto;
  738. border: 1PX solid #ccc;
  739. .search-result-box-title {
  740. line-height: 30PX;
  741. width: 488PX;
  742. padding: 6PX 6PX 0 6PX;
  743. font-size: 15PX;
  744. }
  745. .search-result-box-qq {
  746. line-height: 30PX;
  747. width: 488PX;
  748. padding: 0 6PX 0 6PX;
  749. font-size: 15PX;
  750. div:nth-child(2) {
  751. margin-left: 80PX;
  752. img {
  753. margin-right: 20PX;
  754. }
  755. }
  756. }
  757. .search-result-box-back {
  758. width: 488PX;
  759. height: 40PX;
  760. line-height: 48PX;
  761. a {
  762. font-size: 10PX;
  763. }
  764. }
  765. }
  766. @media screen and (min-width: 1401px) {
  767. //你的样式
  768. }
  769. @media screen and (max-width: 1400px) {
  770. .breadcrumb-box {
  771. width: 100%;
  772. margin: 0px auto 0px;
  773. box-sizing: border-box;
  774. padding: 0px 10px;
  775. }
  776. .newsList {
  777. width: 100%;
  778. box-sizing: border-box;
  779. padding: 0px 10px;
  780. margin: 0px auto 0px;
  781. }
  782. .search-box {
  783. width: 100%;
  784. box-sizing: border-box;
  785. padding: 0px 10px;
  786. margin: 0px auto 0px;
  787. }
  788. .search-box .search-left-box>button {
  789. width: 111px;
  790. margin-left: 11PX;
  791. }
  792. .search-list-box {
  793. width: 96%;
  794. margin: 0px auto 0px;
  795. box-sizing: border-box;
  796. padding: 0px 10px;
  797. }
  798. }
  799. @media screen and (min-width: 801px) and (max-width: 1400px) {
  800. //你的样式
  801. .search-box {
  802. width: 100%;
  803. box-sizing: border-box;
  804. padding: 0px 10px;
  805. margin: 0px auto 0px;
  806. }
  807. }
  808. @media screen and (max-width: 800px) {
  809. //你的样式
  810. .search-box {
  811. display: block;
  812. }
  813. .search-box .search-right-box {
  814. margin: 4px auto 0px;
  815. width: 222PX;
  816. }
  817. :deep(.el-select--large) .el-select__wrapper {
  818. padding: 4PX 6PX;
  819. }
  820. :deep(.el-select__selection) {
  821. min-width: 50PX;
  822. }
  823. .search-box .search-left-box>div {
  824. width: 100%;
  825. display: block;
  826. overflow: hidden;
  827. }
  828. .search-box .search-left-box>div>* {
  829. float: left;
  830. width: auto !important;
  831. }
  832. .search-box .search-left-box>div :deep(.el-select__wrapper) {
  833. width: 90PX;
  834. }
  835. .search-box .search-left-box {
  836. width: 100%;
  837. display: block;
  838. overflow: hidden;
  839. }
  840. .search-box .search-left-box>button {
  841. margin: 11PX auto 0px;
  842. }
  843. .search-result-box {
  844. width: 90%;
  845. margin: 30px auto;
  846. }
  847. .search-result-box .search-result-box-title {
  848. width: 100%;
  849. }
  850. .search-list-box {
  851. width: 96%;
  852. box-sizing: border-box;
  853. padding: 0px 10px;
  854. margin: 55PX auto 0px;
  855. }
  856. .search-result-box .search-result-box-back {
  857. width: 97%;
  858. }
  859. .search-result-box .search-result-box-qq div:nth-child(2) {
  860. margin-left: 0px;
  861. }
  862. }
  863. </style>