index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. <template>
  2. <div class="page">
  3. <div class="top">
  4. <img src="@/assets/images/report/img1.png" alt="">
  5. <div>
  6. <div class="top_title">Reports</div>
  7. <div class="top_location">
  8. <span class="iconfont icon-weizhi"></span>
  9. Current Location : Home <span class="iconfont icon-dkw_guanbi-"></span> <span>Reports</span>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="box">
  14. <div class="box_l">
  15. <div class="box_l_title">
  16. <div>Industry Segment</div>
  17. <div>
  18. <span class="iconfont icon-shouqi1"></span>
  19. </div>
  20. </div>
  21. <div class="box_l_list">
  22. <template v-for="item in categories" :key="item">
  23. <div class="box_l_list_item" :class="{active:item.marketType === record.marketType}" @click=" handleCategory(
  24. item,
  25. item.marketType,
  26. item.marketTypeName
  27. )">
  28. <div class="box_l_list_item_l">{{ item.marketTypeName }}</div>
  29. <div class="box_l_list_item_r ">
  30. <div></div>
  31. <span class="iconfont icon-duigou"></span>
  32. </div>
  33. </div>
  34. </template>
  35. </div>
  36. <div class="box_l_title">
  37. <div>Published</div>
  38. <div>
  39. <span class="iconfont icon-shouqi1"></span>
  40. </div>
  41. </div>
  42. <div class="box_l_list">
  43. <template v-for="item in publishDates" :key="item">
  44. <div class="box_l_list_item" :class="{active:item.publishDateValue === record.queryPublishDate}" @click=" handlePublishDate(
  45. item,
  46. item.publishDateValue,
  47. item.marketTypeName
  48. )">
  49. <div class="box_l_list_item_l">{{ item.marketTypeName }}</div>
  50. <div class="box_l_list_item_r ">
  51. <div></div>
  52. <span class="iconfont icon-duigou"></span>
  53. </div>
  54. </div>
  55. </template>
  56. <div class="selBox">
  57. <n-date-picker v-model:value="publishDateStr" clearable placeholder="Select Date" type="date" />
  58. <span> - </span>
  59. <n-date-picker v-model:value="publishDateEnd" clearable placeholder="Select Date" type="date" />
  60. <div class="selBox_btn" @click="queryPublishDate">OK</div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="box_r">
  65. <view class="box_r_list">
  66. <template v-for="(item,i) in pageList?.list" :key="i">
  67. <a class="box_r_list_item " :href="'/reports/' +item.webTitle +'-' +item.id">
  68. <img :src="BaseUrl + '/report/' + item.fileName" alt="">
  69. <div class="box_r_list_item_content">
  70. <h2 class="box_r_list_title">{{ item.title }}</h2>
  71. <div class="box_r_list_time">
  72. <span class="iconfont icon-suoshuhangye-01"></span>
  73. Industry:{{dealTypeShow(item.marketType)}}{{item.marketType}}
  74. </div>
  75. <div class="box_r_list_time">
  76. <span class="iconfont icon-top_"></span>
  77. Report Format:
  78. <span class="desc-icon">
  79. <img src="@/assets/images/doc.png" />
  80. <img src="@/assets/images/pdf.png" />
  81. <img src="@/assets/images/xlsx.png" />
  82. </span>
  83. </div>
  84. <div class="box_r_list_time">
  85. <span class="iconfont icon-normal"></span>
  86. {{ item.publishDate }}
  87. </div>
  88. </div>
  89. <div class="box_r_list_item_btn">
  90. <div class="box_r_list_item_btn_l">Request</div>
  91. <div class="box_r_list_item_btn_r">Buy Now</div>
  92. </div>
  93. </a>
  94. </template>
  95. </view>
  96. <div class="pageBox" v-if="pageList?.list.length>0">
  97. <n-pagination show-quick-jumper :page-count="pageList?.count" :on-update:page="changePage" :page-slot="6">
  98. <template #prev>
  99. <div class="pageBox_btn">Previous</div>
  100. </template>
  101. <template #next>
  102. <div class="pageBox_btn">Next</div>
  103. </template>
  104. <template #goto>
  105. <div class="pageBox_inp">Go To</div>
  106. </template>
  107. </n-pagination>
  108. </div>
  109. <div class="box-empty" v-if="pageList?.count === 0">
  110. <n-empty description="未找到指定的报告">
  111. <template #extra>
  112. <!-- <n-button @click="handleDemand({ id: '', price: 0 }, '0')" round type="primary">{{ t("report.detail.custom") }}</n-button> -->
  113. </template>
  114. </n-empty>
  115. </div>
  116. <div class="load">
  117. <n-spin size="large">
  118. <template #description>Loading...</template>
  119. </n-spin>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </template>
  125. <script lang="ts" setup>
  126. import { ref, onMounted, watch, onServerPrefetch, nextTick } from "vue";
  127. import { MdSearch, MdHome, IosFiling, MdTime } from "@vicons/ionicons4";
  128. import {
  129. useRouter,
  130. useRoute,
  131. onBeforeRouteLeave,
  132. onBeforeRouteUpdate,
  133. } from "vue-router";
  134. import { useI18n } from "#imports";
  135. import { useUserStore } from "@/store/user";
  136. const record = ref({ pageSize: pageSize, pageNo: 1, queryKeyword: "" } as any); // 参数
  137. const router = useRouter(); // 传递参数
  138. const route = useRoute(); // 接收参数
  139. const demandShow = ref(false); // 需求页面
  140. const categoryTag = ref<string>(); // 类型tag
  141. const priceTag = ref<string>(); // 价格tag
  142. const publishDateTag = ref<string>(); // 发布日期tag
  143. const regionTag = ref<string>(); // 地区
  144. const pageList = ref(); // 列表数据
  145. const publishDateStr = ref<number>(); // 发布日期
  146. const publishDateEnd = ref<number>();
  147. const rowId = ref<string>(); // id
  148. const rowPrice = ref<string>(); // 单价
  149. const rowType = ref<string>(); // 类型
  150. const rowRegion = ref<string>(); //版本
  151. const { t } = useI18n();
  152. const pcShow = ref<boolean>(true);
  153. const userStore = useUserStore();
  154. const lang = userStore.getLang;
  155. const config = useRuntimeConfig();
  156. const BaseUrl = ref(config.public.baseUrl);
  157. const pageSize = 9;
  158. const websiteToken = computed(() => userStore.getToken);
  159. const userInfo = computed(() => userStore.getUserInfo);
  160. function viewDetail(item: any) {
  161. const language = lang === "zh-CN" ? "" : "en";
  162. router.push({
  163. name: "reportDetail",
  164. params: {
  165. webTitle: item.webTitle + "-" + item.id,
  166. lang: language,
  167. keyword: record.value.queryKeyword,
  168. },
  169. });
  170. }
  171. const spinShow = ref("none");
  172. const categories = ref();
  173. //const prices = ref<ResearchReport[]>();
  174. const publishDates = ref();
  175. // onBeforeRouteUpdate((to) => {
  176. // const keyword = to.params.keyword;
  177. // console.log(keyword);
  178. // if(keyword && keyword != 'undefined'){
  179. // record.value.queryKeyword = keyword;
  180. // setTimeout(async() => {
  181. // await getData()
  182. // }, 1000);
  183. // }
  184. // })
  185. const dealTypeShow = (type) => {
  186. let arr = categories.value;
  187. for (let i = 0; i < arr.length; i++) {
  188. if (arr[i].marketType == type) {
  189. return arr[i].marketTypeName;
  190. }
  191. }
  192. };
  193. onMounted(async () => {
  194. if (typeof window !== "undefined") {
  195. window.scrollTo(0, 1);
  196. }
  197. // 接收参数,导航栏进入
  198. const marketType = route.params.category;
  199. record.value.marketType = marketType;
  200. const keyword = route.params.keyword;
  201. if (keyword) {
  202. record.value.queryKeyword = keyword;
  203. }
  204. // 列表
  205. await getData();
  206. // 此段代码解决无法监听home页面跳转显示tag问题
  207. const item = containsType(categories.value, marketType);
  208. categoryTag.value = item?.marketTypeName;
  209. pcShow.value = !isMobile();
  210. });
  211. watch(
  212. () => [route.params.category, route.params.keyword],
  213. async ([newCate, newKeyword], [oldCate, oldKeyword]) => {
  214. record.value.marketType = newCate;
  215. record.value.queryKeyword = newKeyword;
  216. await getData();
  217. const item = containsType(categories.value, newCate);
  218. categoryTag.value = item?.marketTypeName;
  219. }
  220. );
  221. async function getData() {
  222. spinShow.value = "block";
  223. record.value.lang = lang;
  224. const ret = await researchReportListData(record.value);
  225. pageList.value = ret;
  226. spinShow.value = "none";
  227. const ret2 = await researchReportCategoryList(record.value);
  228. categories.value = ret2;
  229. const ret3 = await researchReportPublishDateList(record.value);
  230. // prices.value = ret2.data.prices;
  231. publishDates.value = ret3;
  232. }
  233. // 选择/取消类别
  234. function handleCategory(
  235. item: boolean,
  236. value: string | undefined,
  237. label: string | undefined
  238. ) {
  239. //const lang = useLocaleStore().getLocale;
  240. const language = lang === "zh-CN" ? "" : "en";
  241. // item.checked = !Boolean(item.checked);
  242. record.value.marketType =
  243. record.value.marketType != item.marketType ? item.marketType : "";
  244. if (record.value.marketType) {
  245. router.push({
  246. name: "reports",
  247. params: { category: value, lang: language },
  248. });
  249. } else {
  250. router.push({ name: "reports", params: { lang: language } });
  251. }
  252. }
  253. // 关闭tag
  254. function handleCloseTag(_e: MouseEvent, type: string) {
  255. if ("marketType" === type) {
  256. record.value.marketType = "";
  257. categoryTag.value = "";
  258. //const lang = useLocaleStore().getLocale;
  259. const language = lang === "zh-CN" ? "" : "en";
  260. router.push({ name: "reports", params: { lang: language } });
  261. } else {
  262. if ("price" === type) {
  263. record.value.queryPrice = "";
  264. priceTag.value = "";
  265. }
  266. if ("publishDate" === type) {
  267. record.value.queryPublishDate = "";
  268. publishDateTag.value = "";
  269. }
  270. if ("region" === type) {
  271. record.value.reportRegion = "";
  272. regionTag.value = "";
  273. }
  274. getData();
  275. }
  276. }
  277. // 价格
  278. function handlePrice(checked: boolean, price: number | undefined) {
  279. if (checked) {
  280. if (price === 5001) {
  281. priceTag.value = ">¥5000";
  282. } else {
  283. priceTag.value = "<¥" + price;
  284. }
  285. record.value.queryPrice = price;
  286. record.value.priceEnd = "";
  287. record.value.priceStr = "";
  288. } else {
  289. record.value.queryPrice = "";
  290. priceTag.value = "";
  291. }
  292. getData();
  293. }
  294. // 发布日期
  295. function handlePublishDate(
  296. item: boolean,
  297. day: number | undefined,
  298. dayStr: string | undefined
  299. ) {
  300. if (record.value.queryPublishDate != day) {
  301. record.value.queryPublishDate = day;
  302. publishDateTag.value = dayStr;
  303. } else {
  304. record.value.queryPublishDate = "";
  305. publishDateTag.value = "";
  306. }
  307. record.value.publishDateStr = "";
  308. record.value.publishDateEnd = "";
  309. getData();
  310. }
  311. // 地区
  312. function handleRegion(checked: boolean, region: string) {
  313. if (checked) {
  314. record.value.reportRegion = region;
  315. if ("1" === region) {
  316. regionTag.value = lang == "zh-CN" ? "全球与中国" : "Global";
  317. } else {
  318. regionTag.value = lang == "zh-CN" ? "中国" : "China";
  319. }
  320. } else {
  321. record.value.reportRegion = "";
  322. regionTag.value = "";
  323. }
  324. getData();
  325. }
  326. // 价格区间查询
  327. function queryPrice() {
  328. const price01 = record.value.priceStr,
  329. price02 = record.value.priceEnd;
  330. if (price01) {
  331. // 价格end不存在或者小于价格str,则只计算大于价格str
  332. let priceDesc = "";
  333. if (price02) {
  334. if (price02 > price01) {
  335. priceDesc = "¥" + price01 + "~" + price02;
  336. } else {
  337. priceDesc = ">¥" + price01;
  338. }
  339. } else {
  340. priceDesc = ">¥" + price01;
  341. }
  342. priceTag.value = priceDesc;
  343. } else {
  344. if (price02 && price02 > 0) {
  345. priceTag.value = "<¥" + price02;
  346. } else {
  347. priceTag.value = "";
  348. }
  349. }
  350. record.value.queryPrice = ""; //去掉价格
  351. getData();
  352. }
  353. // 发布日期区间查询
  354. function queryPublishDate() {
  355. const dateStr = publishDateStr.value,
  356. dateEnd = publishDateEnd.value;
  357. if (dateStr) {
  358. const date01 = formatDate(dateStr, "yyyy-MM-dd");
  359. let dateTag = "",
  360. date02;
  361. if (dateEnd) {
  362. date02 = formatDate(dateEnd, "yyyy-MM-dd");
  363. if (dateEnd > dateStr) {
  364. dateTag = date01 + "~" + date02;
  365. } else {
  366. dateTag = ">" + date01;
  367. }
  368. } else {
  369. dateTag = ">" + date01;
  370. }
  371. publishDateTag.value = dateTag;
  372. record.value.publishDateStr = date01;
  373. record.value.publishDateEnd = date02;
  374. } else {
  375. if (dateEnd) {
  376. const date02 = formatDate(dateEnd, "yyyy-MM-dd");
  377. publishDateTag.value = "<" + date02;
  378. record.value.publishDateEnd = date02;
  379. }
  380. }
  381. record.value.queryPublishDate = "";
  382. getData();
  383. }
  384. // 关键字查询
  385. // function handleSearch(){
  386. // getData();
  387. // }
  388. // 提交需求
  389. function handleDemand(item: any, type: string) {
  390. rowId.value = item.id;
  391. rowPrice.value = item.price?.toString();
  392. rowType.value = type;
  393. rowRegion.value = item.reportRegion;
  394. demandShow.value = true;
  395. }
  396. const tocontentBuy = (item: any) => {
  397. if (userInfo.value?.id && websiteToken.value) {
  398. let param = {
  399. researchReportId: item.id,
  400. payMethod: "paypal",
  401. payPrice: item.price,
  402. payResearchKey: item.priceKey,
  403. payResearchType:
  404. item.priceName.split("-")[2] == "企业数据"
  405. ? t("report.detail.EnterpriseMarketShare")
  406. : t("report.detail.integrity"),
  407. payResearchVersion: "",
  408. };
  409. param.payResearchVersion =
  410. item.priceName.split("-")[3] == "单用户版单价"
  411. ? t("report.detail.singlePrice")
  412. : item.priceName.split("-")[3] == "多用户版单价"
  413. ? t("report.detail.multiPrice")
  414. : t("report.detail.enterprisePrice02");
  415. item.btnLoading = true;
  416. createOrder_Api(param)
  417. .then((res) => {
  418. window.open(res.data.orderPayUrl);
  419. })
  420. .finally(() => {
  421. item.btnLoading = false;
  422. });
  423. } else {
  424. userStore.setShowLoginDialog(true);
  425. // errorMsg("请先登录");
  426. }
  427. };
  428. // 关闭diag
  429. function handleCloseDiag() {
  430. demandShow.value = false;
  431. }
  432. // 改变页数
  433. function changePage(page: number) {
  434. document.documentElement.scrollTop = 0;
  435. record.value.pageNo = page;
  436. getData();
  437. }
  438. onServerPrefetch(async () => {
  439. try {
  440. const marketType = route.params.category;
  441. record.value.marketType = marketType;
  442. const keyword = route.params.keyword;
  443. if (keyword) {
  444. record.value.queryKeyword = keyword;
  445. }
  446. // 列表
  447. await getData();
  448. // 此段代码解决无法监听home页面跳转显示tag问题
  449. const item = containsType(categories.value, marketType);
  450. categoryTag.value = item?.marketTypeName;
  451. } catch (error) {
  452. console.log(error);
  453. }
  454. });
  455. useHead({
  456. title: t("common.navigate.report") + "-" + t("defaultSettings.title"),
  457. viewport: "width=device-width,initial-scale=1,maximum-scale=1 ",
  458. charset: "utf-8",
  459. meta: [
  460. {
  461. hid: "keywords",
  462. name: "keywords",
  463. content: t("defaultSettings.keyword"),
  464. },
  465. {
  466. hid: "description",
  467. name: "description",
  468. content: t("defaultSettings.desc"),
  469. },
  470. ],
  471. });
  472. </script>
  473. <style lang="scss" scoped>
  474. @import "~/assets/css/tool.scss";
  475. .page {
  476. .top {
  477. width: 100%;
  478. position: relative;
  479. margin-top: var(--size-130);
  480. img {
  481. width: 100%;
  482. }
  483. > div {
  484. width: 100%;
  485. padding: var(--size-60) var(--size-176) 0;
  486. position: absolute;
  487. top: 0;
  488. left: 0;
  489. .top_title {
  490. font-size: var(--size-48);
  491. font-family: Arial, Arial-Bold;
  492. font-weight: 700;
  493. text-align: left;
  494. color: #ffffff;
  495. }
  496. .top_location {
  497. font-size: var(--size-14);
  498. font-family: Arial, Arial-Regular;
  499. font-weight: 400;
  500. color: #ffffff;
  501. .icon-dkw_guanbi- {
  502. color: #ffffff;
  503. font-size: var(--size-12);
  504. }
  505. span {
  506. color: #72ff56;
  507. }
  508. }
  509. }
  510. }
  511. .box {
  512. background: #f6f7fa;
  513. padding: var(--size-30) var(--size-147) var(--size-70);
  514. display: flex;
  515. .box_l {
  516. background: #ffffff;
  517. width: var(--size-493);
  518. flex-shrink: 0;
  519. .box_l_title {
  520. width: 100%;
  521. padding: var(--size-20) var(--size-30);
  522. background: #6aaa87;
  523. font-size: var(--size-22);
  524. font-family: Arial, Arial-Bold;
  525. font-weight: 700;
  526. text-align: left;
  527. color: #ffffff;
  528. line-height: var(--size-22);
  529. display: flex;
  530. justify-content: space-between;
  531. span {
  532. font-size: var(--size-13);
  533. }
  534. }
  535. .box_l_list {
  536. padding: var(--size-12) 0;
  537. border: 1px solid #ffffff;
  538. border-bottom: var(--size-20) solid #ffffff;
  539. background: #f4f7f9;
  540. min-height: var(--size-282);
  541. .box_l_list_item {
  542. padding: var(--size-6) var(--size-30);
  543. display: flex;
  544. justify-content: space-between;
  545. background: #f4f7f9;
  546. cursor: pointer;
  547. .box_l_list_item_l {
  548. font-size: var(--size-18);
  549. font-family: Arial, Arial-Regular;
  550. color: #639e57;
  551. line-height: var(--size-22);
  552. }
  553. .box_l_list_item_r {
  554. width: var(--size-27);
  555. height: var(--size-27);
  556. border: 1px solid #639e57;
  557. border-radius: 50%;
  558. display: flex;
  559. align-items: center;
  560. justify-content: center;
  561. > div {
  562. width: var(--size-17);
  563. height: var(--size-17);
  564. background: #639e57;
  565. border-radius: 50%;
  566. display: block;
  567. }
  568. span {
  569. display: none;
  570. }
  571. }
  572. }
  573. .active {
  574. .box_l_list_item_l {
  575. font-weight: 700;
  576. }
  577. .box_l_list_item_r {
  578. background: #639e57;
  579. span {
  580. color: #ffffff;
  581. font-size: var(--size-25);
  582. }
  583. > div {
  584. display: none;
  585. }
  586. span {
  587. display: block;
  588. }
  589. }
  590. }
  591. .selBox {
  592. display: flex;
  593. align-items: center;
  594. padding: var(--size-8) var(--size-30);
  595. > span {
  596. display: inline-block;
  597. }
  598. .selBox_btn {
  599. width: var(--size-68);
  600. height: var(--size-44);
  601. background: linear-gradient(90deg, #719d58 4%, #43a086 99%);
  602. border-radius: var(--size-4);
  603. font-size: var(--size-16);
  604. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  605. color: #ffffff;
  606. cursor: pointer;
  607. text-align: center;
  608. line-height: var(--size-44);
  609. flex-shrink: 0;
  610. }
  611. }
  612. }
  613. }
  614. .box_r {
  615. margin-left: var(--size-46);
  616. flex-grow: 1;
  617. .box_r_list {
  618. display: flex;
  619. flex-wrap: wrap;
  620. // justify-content: space-between;
  621. .box_r_list_item {
  622. background: #ffffff;
  623. width: var(--size-338);
  624. border-radius: var(--size-10);
  625. margin-right: var(--size-26);
  626. margin-bottom: var(--size-27);
  627. overflow: hidden;
  628. &:nth-child(3n) {
  629. margin-right: 0;
  630. }
  631. > img {
  632. width: var(--size-338);
  633. height: var(--size-394);
  634. display: block;
  635. }
  636. .box_r_list_item_content {
  637. padding: var(--size-15) var(--size-18);
  638. .box_r_list_title {
  639. font-size: var(--size-18);
  640. font-family: Arial, Arial-Regular;
  641. color: #1a1a1a;
  642. line-height: var(--size-28);
  643. overflow: hidden;
  644. text-overflow: ellipsis;
  645. display: -webkit-box;
  646. -webkit-line-clamp: 2;
  647. -webkit-box-orient: vertical;
  648. }
  649. .box_r_list_time {
  650. font-size: var(--size-14);
  651. font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  652. color: #999999;
  653. line-height: var(--size-26);
  654. display: flex;
  655. align-items: center;
  656. .desc-icon {
  657. display: flex !important;
  658. align-items: center;
  659. img {
  660. width: var(--size-18);
  661. height: var(--size-18);
  662. margin-left: var(--size-4);
  663. }
  664. }
  665. &:nth-child(2) {
  666. span {
  667. font-size: var(--size-22);
  668. position: relative;
  669. left: var(--size--2);
  670. }
  671. }
  672. &:nth-child(3),
  673. &:nth-child(4) {
  674. span {
  675. font-size: var(--size-18);
  676. display: inline-block;
  677. margin-right: var(--size-3);
  678. }
  679. }
  680. }
  681. }
  682. .box_r_list_item_btn {
  683. display: flex;
  684. justify-content: space-between;
  685. padding: var(--size-20) var(--size-18);
  686. border-top: 1px solid rgba(230, 230, 230, 0.5);
  687. > div {
  688. width: var(--size-145);
  689. height: var(--size-48);
  690. border-radius: var(--size-8);
  691. font-size: var(--size-14);
  692. font-family: Arial, Arial-Regular;
  693. text-align: center;
  694. color: #ffffff;
  695. line-height: var(--size-48);
  696. cursor: pointer;
  697. }
  698. .box_r_list_item_btn_l {
  699. background: #60ac92;
  700. }
  701. .box_r_list_item_btn_r {
  702. background: #84a86c;
  703. }
  704. }
  705. }
  706. .box_r_list_item:hover {
  707. box-shadow: 0px var(--size-9) var(--size-16) 0px #d1d1d1;
  708. }
  709. }
  710. .pageBox {
  711. display: flex;
  712. justify-content: center;
  713. ::v-deep .n-pagination-item {
  714. min-width: var(--size-42);
  715. height: var(--size-42);
  716. background: #f2f2f2;
  717. border: 1px solid #cccccc;
  718. border-radius: var(--size-4);
  719. font-size: var(--size-14);
  720. color: #808080;
  721. text-align: center;
  722. line-height: var(--size-40);
  723. }
  724. ::v-deep .n-pagination-item--active {
  725. background: rgba(57, 154, 192, 1);
  726. color: #ffffff;
  727. &:hover {
  728. background: rgba(57, 154, 192, 1);
  729. color: #ffffff;
  730. }
  731. }
  732. .pageBox_btn {
  733. width: var(--size-70);
  734. color: #333333;
  735. }
  736. ::v-deep(.n-input__input) {
  737. height: var(--size-40);
  738. line-height: var(--size-40);
  739. }
  740. ::v-deep(.n-pagination .n-pagination-quick-jumper .n-input) {
  741. border: 1px solid #cccccc;
  742. }
  743. .pageBox_inp {
  744. font-size: var(--size-16);
  745. }
  746. }
  747. }
  748. }
  749. }
  750. ::v-deep .n-date-picker > div {
  751. --n-height: var(--size-45) !important;
  752. margin-top: var(--size-1);
  753. }
  754. .load {
  755. display: v-bind("spinShow");
  756. }
  757. @include responseTo("phone") {
  758. .page {
  759. .top {
  760. img {
  761. height: 100px;
  762. object-fit: cover;
  763. }
  764. > div {
  765. padding: 15px;
  766. .top_title {
  767. font-size: 28px;
  768. }
  769. }
  770. }
  771. .box {
  772. padding: 15px;
  773. width: 100%;
  774. display: block;
  775. .box_l {
  776. width: 100%;
  777. .box_l_list {
  778. .box_l_list_item {
  779. padding: var(--size-6) var(--size-20);
  780. .box_l_list_item_l {
  781. font-size: 16px;
  782. }
  783. .box_l_list_item_r {
  784. width: var(--size-20);
  785. height: var(--size-20);
  786. > div {
  787. width: var(--size-12);
  788. height: var(--size-12);
  789. }
  790. }
  791. }
  792. .active .box_l_list_item_r span {
  793. font-size: var(--size-18);
  794. }
  795. .selBox {
  796. padding: var(--size-6) var(--size-20);
  797. .selBox_btn {
  798. width: var(--size-52);
  799. height: var(--size-34);
  800. border-radius: var(--size-4);
  801. font-size: var(--size-16);
  802. line-height: var(--size-34);
  803. }
  804. }
  805. }
  806. }
  807. .box_r {
  808. margin: 0;
  809. .box_r_list {
  810. .box_r_list_item {
  811. width: 100%;
  812. margin-right: 0;
  813. > img {
  814. width: 100%;
  815. }
  816. }
  817. }
  818. .pageBox {
  819. ::v-deep .n-pagination-item {
  820. min-width: var(--size-21);
  821. height: var(--size-21);
  822. border-radius: var(--size-2);
  823. font-size: var(--size-8);
  824. line-height: var(--size-20);
  825. }
  826. .pageBox_btn {
  827. width: var(--size-35);
  828. }
  829. ::v-deep(.n-input__input) {
  830. height: var(--size-20);
  831. line-height: var(--size-20);
  832. font-size: var(--size-9);
  833. }
  834. .pageBox_inp {
  835. font-size: var(--size-8);
  836. }
  837. ::v-deep(.n-pagination .n-pagination-quick-jumper .n-input) {
  838. width: var(--size-35);
  839. }
  840. ::v-deep(.n-input .n-input__input-el) {
  841. height: var(--size-20);
  842. line-height: var(--size-20);
  843. }
  844. }
  845. }
  846. }
  847. }
  848. ::v-deep(.n-input__input) {
  849. height: var(--size-34);
  850. line-height: var(--size-34);
  851. font-size: 14px;
  852. }
  853. }
  854. h2 {
  855. margin: 0;
  856. }
  857. </style>