indedxSearch.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. <template>
  2. <view class="container search-container">
  3. <view class="sticky-content">
  4. <view class="searchTarget-header">
  5. <input
  6. type="text"
  7. :placeholder="searchPlaceholderList.TabSearch"
  8. placeholder-class="sea_ipt_placeholder"
  9. class="sea_ipt"
  10. v-model="searchTxt"
  11. focus="true"
  12. confirm-type="search"
  13. @confirm="searchHandle"
  14. />
  15. <icon type="search" size="15" class="sea_ico" />
  16. <view class="ipt-right">
  17. <icon type="clear" size="16" color="#E0E0E0" v-show="searchTxt" @click="clearIpt" />
  18. <text class="line">|</text>
  19. <text @click="searchHandle" style="color: #3385ff">搜索</text>
  20. </view>
  21. </view>
  22. <view class="search-tabs" v-if="isResult">
  23. <view :class="['tabs-item', tabsActive == item.id && 'active']" v-for="item in tabsList" :key="item.id" @click="tabsHandel(item)">
  24. {{ item.title }}
  25. <view class="item-act" v-if="tabsActive == item.id"></view>
  26. </view>
  27. </view>
  28. <block v-if="isResult">
  29. <view class="more-summary more-box" v-if="tabsActive == 1 && haveResultSummary">
  30. <view>
  31. <text class="more-text"> 纪要/图表 </text>
  32. </view>
  33. <view style="display: flex; align-items: center">
  34. <!-- <view class="summary-select">
  35. <text @click="summarySelectHandler(item, '纪要')" :class="['select-item', summarySelectActive == item.value && 'active-item']" v-for="item in summarySelect" :key="item.value">{{
  36. item.name
  37. }}</text>
  38. </view> -->
  39. <view v-if="tabsActive == 1" class="more-rivet" @click="tabsActiveMore(2)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
  40. </view>
  41. </view>
  42. <view class="activity-select" style="display: flex; align-items: center; justify-content: flex-end" v-if="tabsActive == 4 || tabsActive == 5">
  43. <block v-for="item in activitySelect" :key="item.type">
  44. <view :class="['summary-select', item.type == 5 && 'select-roadshow']" v-if="tabsActive == item.type">
  45. <text @click="summarySelectHandler(key, item.name)" :class="['select-item', activitySelectActive == key.value && 'active-item']" v-for="key in item.list" :key="key.value">
  46. {{ key.name }}
  47. </text>
  48. </view>
  49. </block>
  50. </view>
  51. </block>
  52. </view>
  53. <view class="search-cont" v-if="!isResult">
  54. <block v-for="key in keywordList" :key="key.title">
  55. <view class="history" v-if="key.title !== '搜索历史' || (key.title == '搜索历史' && historySearchList.length)">
  56. <view class="history-title title">
  57. <text>{{ key.title }}</text>
  58. <image v-if="key.imgShown" @click="clearHistory" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/empty_ico.png" class="empty_ico"></image>
  59. </view>
  60. <view class="history-item">
  61. <block v-for="(item, index) in relyOn(key.title)" :key="item">
  62. <block v-if="key.title == '搜索历史'">
  63. <view v-if="index < 8" class="item" @click="chooseTarget(item)">{{ item }}</view>
  64. </block>
  65. <view v-else class="item" @click="chooseTarget(item)">{{ item }}</view>
  66. </block>
  67. </view>
  68. </view>
  69. </block>
  70. </view>
  71. <view v-else class="content">
  72. <block v-if="haveResult">
  73. <view>
  74. <summary-chart :resultList="tabsActive == 1 ? resultList.slice(0, 10) : resultList" :tabsActiveChild="tabsActive" v-if="resultList.length && (tabsActive == 2 || tabsActive == 1)" />
  75. <view class="more-report more-box" v-if="tabsActive === 1 && haveResultReport">
  76. <text class="more-text"> 资源包/报告 </text>
  77. <view>
  78. <view class="more-rivet" @click="tabsActiveMore(3)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
  79. </view>
  80. </view>
  81. <reportPage :reportPageData="reportPageData" id="container-report-page" v-if="Object.keys(reportPageData).length && (tabsActive == 3 || tabsActive == 1)" />
  82. <view class="more-activity more-box" v-if="tabsActive === 1 && haveResultActivity">
  83. <text class="more-text"> 活动 </text>
  84. <view>
  85. <view class="more-rivet" @click="tabsActiveMore(4)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
  86. </view>
  87. </view>
  88. <activityBack :collectLists="collectList" :tabsActiveSearch="tabsActive" v-if="collectList.length && (tabsActive == 4 || tabsActive == 1)" />
  89. <view class="more-activity more-box" v-if="tabsActive === 1 && haveResultRoadshow">
  90. <text class="more-text"> 微路演 </text>
  91. <view>
  92. <view class="more-rivet" @click="tabsActiveMore(5)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
  93. </view>
  94. </view>
  95. <roadshowPage :roadshowPageList="roadshowPageList" :tabsRoadshowSearch="tabsActive" v-if="roadshowPageList.length && (tabsActive == 5 || tabsActive == 1)" />
  96. </view>
  97. </block>
  98. <view class="nodata" v-else>
  99. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  100. <text>未找到您想搜索的内容</text>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. import { KeywordList, TabsList, SummarySelect, ActivitySelect } from "./searchList";
  107. import { Search, activity, Report, Home, User } from "@/config/api";
  108. import { Debounce, Throttle } from "@/config/util.js";
  109. import summaryChart from "../components/summaryChart.vue";
  110. import activityBack from "../components/activityBack.vue";
  111. import reportPage from "../components/report.vue";
  112. import roadshowPage from "../components/roadshow.vue";
  113. export default {
  114. components: { summaryChart, activityBack, reportPage, roadshowPage },
  115. data() {
  116. return {
  117. searchTxt: "",
  118. isResult: false,
  119. historySearchList: [], //历史搜索
  120. hotKeyWord: [], //热搜关键词
  121. wordList: [], //推荐关键词
  122. tabsActive: 1, //搜索的筛选条件
  123. resultList: [], //纪要与图表
  124. resultDataList: [], ////纪要与图表
  125. collectList: [], //活动的数据
  126. reportPageData: {}, //报告的数据
  127. roadshowPageList: [], //微路演的数据
  128. // haveResult: true, //是否有搜索数据
  129. haveResultSummary: true, //是否有搜索数据 纪要
  130. haveResultActivity: true, //是否有搜索数据 活动
  131. haveResultReport: true, //是否有搜索数据 报告
  132. haveResultRoadshow: true, //是否有搜索数据 微路演
  133. summarySelectActive: "Matching",
  134. activitySelectActive: "0",
  135. refresh: false, //正在下拉
  136. pageNum: 1,
  137. pageSize: null,
  138. totalPage: 0,
  139. status: "loadmore",
  140. loadText: {
  141. loadmore: "上拉加载更多",
  142. loading: "加载中",
  143. nomore: "已经到底了",
  144. },
  145. isSearchKeyWord: [],
  146. };
  147. },
  148. computed: {
  149. keywordList() {
  150. return KeywordList;
  151. },
  152. tabsList() {
  153. return TabsList;
  154. },
  155. summarySelect() {
  156. return SummarySelect;
  157. },
  158. activitySelect() {
  159. return ActivitySelect;
  160. },
  161. haveResult() {
  162. let all = this.haveResultSummary || this.haveResultActivity || this.haveResultReport || this.haveResultRoadshow;
  163. return this.tabsActive == 1
  164. ? all
  165. : this.tabsActive == 2
  166. ? this.haveResultSummary
  167. : this.tabsActive == 3
  168. ? this.haveResultReport
  169. : this.tabsActive == 4
  170. ? this.haveResultActivity
  171. : this.haveResultRoadshow;
  172. },
  173. },
  174. watch: {
  175. tabsActive: {
  176. handler(val) {
  177. val == 1 ? (this.pageSize = 5) : (this.pageSize = 10);
  178. },
  179. deep: true,
  180. immediate: true,
  181. },
  182. },
  183. methods: {
  184. //搜索事件
  185. searchHandle() {
  186. if (this.searchTxt) {
  187. if (!this.historySearchList.includes(this.searchTxt)) {
  188. this.historySearchList.unshift(this.searchTxt);
  189. this.$db.set("historySearchList", JSON.stringify(this.historySearchList));
  190. }
  191. this.getListInit();
  192. this.getDataList();
  193. } else {
  194. this.$util.toast("请输入关键字");
  195. }
  196. },
  197. //清除搜索关键字
  198. clearIpt() {
  199. this.searchTxt = "";
  200. this.tabsActive = 1;
  201. this.isResult = false;
  202. this.getListInit();
  203. },
  204. //关键词 遍历的依赖
  205. relyOn(val) {
  206. return val == "搜索历史" ? this.historySearchList : val == "热搜关键词" ? this.hotKeyWord : this.wordList;
  207. },
  208. //点击了筛选项目
  209. tabsHandel(item) {
  210. this.tabsActive = item.id;
  211. this.getListInit();
  212. this.getDataList();
  213. },
  214. //获取热搜关键词的请求
  215. async researchHotKeyWord() {
  216. const res = await Search.getKeys();
  217. if (res.Ret === 200) {
  218. this.hotKeyWord = res.Data.ListHot ? res.Data.ListHot.map((key) => key.KeyWord) : [];
  219. this.wordList = res.Data.Item ? res.Data.Item.ConfigValue.split(",") : [];
  220. }
  221. },
  222. // 选择历史搜索
  223. chooseTarget(item) {
  224. this.searchTxt = item;
  225. if (!this.historySearchList.includes(item)) {
  226. this.historySearchList.unshift(item);
  227. this.$db.set("historySearchList", JSON.stringify(this.historySearchList));
  228. }
  229. this.getListInit();
  230. this.getDataList();
  231. },
  232. //搜索
  233. async getDataList() {
  234. this.isResult = true;
  235. if (!this.isSearchKeyWord.includes(this.searchTxt)) {
  236. this.isSearchKeyWord.push(this.searchTxt);
  237. await User.userSearchKeyWordLog({ KeyWord: this.searchTxt });
  238. }
  239. if (this.tabsActive == 1) {
  240. this.synthesiz();
  241. this.getReportList();
  242. this.getActivityBackList();
  243. this.getRoadshowList();
  244. } else if (this.tabsActive == 2) {
  245. this.synthesiz();
  246. } else if (this.tabsActive == 3) {
  247. this.getReportList();
  248. } else if (this.tabsActive == 4) {
  249. this.getActivityBackList();
  250. } else if (this.tabsActive == 5) {
  251. this.getRoadshowList();
  252. }
  253. },
  254. //纪要 图表的搜索
  255. async synthesiz() {
  256. const res = await Search.getArtAndChartList({
  257. KeyWord: this.searchTxt.replace(/^\s+|\s+$/g, ""),
  258. OrderColumn: this.summarySelectActive,
  259. PageSize: 10,
  260. CurrentIndex: this.pageNum,
  261. ListType: 1,
  262. });
  263. if (res.Ret === 200) {
  264. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  265. this.totalPage = res.Data.Paging.Totals;
  266. if (this.pageNum == 1) {
  267. this.haveResultSummary = res.Data.List.length || res.Data.ChartList.length ? true : false;
  268. }
  269. if (res.Data.List.length && res.Data.ChartList.length) {
  270. if (this.pageNum == 1) {
  271. this.resultDataList.push(res.Data.List.shift());
  272. if (this.refresh) {
  273. uni.stopPullDownRefresh();
  274. this.refresh = false;
  275. }
  276. }
  277. let newArr = [];
  278. let newArrTwo = [];
  279. for (let i = 0; i < res.Data.List.length; i += 2) {
  280. newArr.push(res.Data.List.slice(i, i + 2));
  281. }
  282. for (let i = 0; i < res.Data.ChartList.length; i += 2) {
  283. newArrTwo.push(res.Data.ChartList.slice(i, i + 2));
  284. }
  285. let arr = [];
  286. newArr.forEach((item, index) => {
  287. if (newArrTwo[index]) {
  288. arr.push(newArrTwo[index], item);
  289. } else {
  290. arr.push(item);
  291. }
  292. });
  293. this.resultDataList = this.resultDataList.concat(arr.flat(Infinity));
  294. } else if (!res.Data.List.length) {
  295. res.Data.ChartList.length && this.resultDataList.push(...res.Data.ChartList);
  296. } else if (!res.Data.ChartList.length) {
  297. res.Data.List.length && this.resultDataList.push(...res.Data.List);
  298. }
  299. this.resultList = this.resultDataList;
  300. }
  301. },
  302. //活动回放的接口获取列表
  303. async getActivityBackList() {
  304. const res =
  305. this.tabsActive === 1 || this.activitySelectActive == 0
  306. ? await activity.getActivityListSearch({
  307. PageSize: this.pageSize,
  308. CurrentIndex: this.pageNum,
  309. KeyWord: this.searchTxt,
  310. ActiveState: "1,2,3", //活动进行状态
  311. PlayBack: Number(this.activitySelectActive),
  312. })
  313. : await activity.getActivityListNew({
  314. PageSize: this.pageSize,
  315. CurrentIndex: this.pageNum,
  316. KeyWord: this.searchTxt,
  317. ActiveState: "1,2,3", //活动进行状态
  318. PlayBack: Number(this.activitySelectActive),
  319. });
  320. if (res.Ret !== 200) return;
  321. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  322. this.totalPage = res.Data.Paging.Pages; //总页数
  323. if (this.pageNum === 1) {
  324. this.collectList = res.Data.List || [];
  325. this.haveResultActivity = this.collectList.length ? true : false;
  326. if (this.refresh) {
  327. uni.stopPullDownRefresh();
  328. this.refresh = false;
  329. }
  330. } else {
  331. this.collectList.push(...res.Data.List);
  332. }
  333. },
  334. //获取报告的
  335. async getReportList() {
  336. const res = await Report.getSearchReportAndResource({
  337. KeyWord: this.searchTxt.replace(/^\s+|\s+$/g, ""),
  338. PageSize: this.tabsActive == 1 ? 5 : "",
  339. });
  340. if (res.Ret === 200) {
  341. if (this.refresh) {
  342. uni.stopPullDownRefresh();
  343. this.refresh = false;
  344. }
  345. this.reportPageData = res.Data || {};
  346. if (res.Data.ListHzReport.length || res.Data.ListHzResource.length || res.Data.ListYxReport.length || res.Data.ListYxResource.length) {
  347. this.haveResultReport = true;
  348. } else {
  349. this.haveResultReport = false;
  350. }
  351. }
  352. },
  353. //获取微路演
  354. async getRoadshowList() {
  355. const res = await Home.microRoadshowList({
  356. PageSize: this.pageSize == 5 ? 6 : this.pageSize,
  357. CurrentIndex: this.pageNum,
  358. KeyWord: this.searchTxt.replace(/^\s+|\s+$/g, ""),
  359. Filter: Number(this.activitySelectActive),
  360. });
  361. if (res.Ret === 200) {
  362. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  363. this.totalPage = res.Data.Paging.Pages; //总页数
  364. if (this.pageNum == 1) {
  365. this.roadshowPageList = res.Data.List || [];
  366. this.haveResultRoadshow = this.roadshowPageList.length > 0 ? true : false;
  367. if (this.refresh) {
  368. uni.stopPullDownRefresh();
  369. this.refresh = false;
  370. }
  371. } else {
  372. this.roadshowPageList = this.roadshowPageList.concat(res.Data.List);
  373. }
  374. }
  375. },
  376. //点击了更多
  377. tabsActiveMore(val) {
  378. this.tabsActive = val;
  379. this.getListInit();
  380. this.getDataList();
  381. },
  382. //纪要、图标的筛选
  383. summarySelectHandler(item, type) {
  384. this.pageNum = 1;
  385. if (type == "纪要") {
  386. this.summarySelectActive = item.value;
  387. this.resultList = [];
  388. this.resultDataList = [];
  389. this.synthesiz();
  390. } else if (type == "活动") {
  391. this.activitySelectActive = item.value;
  392. this.collectList = [];
  393. this.getActivityBackList();
  394. } else if (type == "微路演") {
  395. this.activitySelectActive = item.value;
  396. this.roadshowPageList = [];
  397. this.getRoadshowList();
  398. }
  399. },
  400. /* 历史搜索清空 */
  401. clearHistory() {
  402. this.historySearchList = [];
  403. this.$db.del("historySearchList");
  404. },
  405. getListInit() {
  406. uni.pageScrollTo({
  407. scrollTop: 0,
  408. duration: 300,
  409. });
  410. this.pageNum = 1;
  411. this.pageSize = this.tabsActive == 1 ? 5 : 10;
  412. this.totalPage = 0;
  413. this.summarySelectActive = "Matching";
  414. this.activitySelectActive = "0";
  415. this.status = "loadmore";
  416. this.resultList = [];
  417. this.resultDataList = [];
  418. this.collectList = [];
  419. this.reportPageData = {};
  420. this.roadshowPageList = [];
  421. },
  422. laodInit(options) {
  423. if (Object.keys(options).length && options.searchTxt) {
  424. this.searchTxt = options.searchTxt;
  425. this.tabsActive = options.tabsActive;
  426. this.summarySelectActive = options.summaryActive;
  427. this.activitySelectActive = options.activityActive;
  428. this.searchTxt && this.getDataList();
  429. }
  430. },
  431. },
  432. onLoad(options) {
  433. this.researchHotKeyWord();
  434. this.laodInit(options);
  435. if (this.$db.get("historySearchList")) {
  436. this.historySearchList = JSON.parse(this.$db.get("historySearchList"));
  437. }
  438. },
  439. onShow() {
  440. this.$store.dispatch("checkHandle");
  441. },
  442. /* 下拉刷新 */
  443. onPullDownRefresh: Throttle(function () {
  444. this.page_no = 1;
  445. this.refresh = true;
  446. this.getDataList();
  447. }),
  448. // 上拉加载this.resultList
  449. onReachBottom: Throttle(function () {
  450. if (this.tabsActive == 1) return;
  451. if (this.status === "nomore") return;
  452. this.status = "loading";
  453. this.pageNum++;
  454. this.getDataList();
  455. }),
  456. // 分享
  457. onShareAppMessage({ from, target }) {
  458. if (from === "button") {
  459. let item = target.dataset.item;
  460. let audio_id = item.Type == 1 || item.AudioType == 1 ? item.Id : "";
  461. // type=2 -- 活动视频 type=3 -- 产业视频
  462. let video_id = item.Type == 2 || item.Type == 3 ? item.Id : "";
  463. let activity_id = item.Type == 2 && item.ActivityId > 0 ? item.ActivityId : "";
  464. let title_share = item.AudioTitle || item.Title;
  465. return {
  466. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : title_share,
  467. path: "/pages/material/material?topTabsActive=4" + "&audioShareId=" + audio_id + "&videoShareId=" + video_id + "&activityId=" + activity_id,
  468. imageUrl: item.AudioShareImg || item.ShareImg,
  469. };
  470. } else {
  471. return {
  472. title: this.searchTxt || "搜索",
  473. path:
  474. "/pages-search/indedxSearch/indedxSearch?searchTxt=" +
  475. this.searchTxt +
  476. "&tabsActive=" +
  477. this.tabsActive +
  478. "&summaryActive=" +
  479. this.summarySelectActive +
  480. "&activityActive=" +
  481. this.activitySelectActive,
  482. };
  483. }
  484. },
  485. };
  486. </script>
  487. <style lang="scss" scoped>
  488. .search-container {
  489. background-color: #f5f6fa;
  490. padding: 200rpx 0 0rpx;
  491. min-height: 100vh;
  492. box-sizing: border-box;
  493. .sticky-content {
  494. position: fixed;
  495. top: 0;
  496. left: 0;
  497. width: 100%;
  498. z-index: 99;
  499. background-color: #fff;
  500. }
  501. .searchTarget-header {
  502. padding: 0 34rpx;
  503. width: 100%;
  504. position: relative;
  505. padding: 30rpx 0;
  506. display: flex;
  507. justify-content: center;
  508. align-items: center;
  509. .sea_ipt_placeholder {
  510. color: #8d8d8d;
  511. }
  512. .sea_ipt {
  513. width: 682rpx;
  514. height: 70rpx;
  515. line-height: 70rpx;
  516. box-sizing: border-box;
  517. background: #f9f9f9;
  518. font-size: 26rpx;
  519. color: #4a4a4a;
  520. padding: 0 180rpx 0 78rpx;
  521. border-radius: 70rpx;
  522. }
  523. .sea_ico {
  524. width: 31rpx;
  525. height: 31rpx;
  526. position: absolute;
  527. left: 68rpx;
  528. top: 50%;
  529. transform: translateY(-50%);
  530. }
  531. .ipt-right {
  532. display: flex;
  533. align-items: center;
  534. position: absolute;
  535. right: 59rpx;
  536. top: 50%;
  537. transform: translateY(-50%);
  538. color: #3385ff;
  539. .line {
  540. margin: 0 21rpx;
  541. color: #e0e0e0;
  542. }
  543. }
  544. }
  545. .search-cont {
  546. padding: 32rpx;
  547. font-size: 24rpx;
  548. margin-top: -80rpx;
  549. color: #666666;
  550. background-color: #fff;
  551. height: calc(100vh - 135rpx);
  552. overflow: hidden;
  553. .title {
  554. font-size: 32rpx;
  555. font-weight: 500;
  556. color: #333333;
  557. }
  558. .history {
  559. height: 270rpx;
  560. .history-title {
  561. display: flex;
  562. align-items: center;
  563. justify-content: space-between;
  564. .empty_ico {
  565. width: 36rpx;
  566. height: 36rpx;
  567. }
  568. }
  569. .history-item {
  570. width: 100%;
  571. overflow: hidden;
  572. display: flex;
  573. flex-wrap: wrap;
  574. .item {
  575. background-color: #f9f9f9;
  576. padding: 10rpx 20rpx;
  577. margin: 20rpx 20rpx 0 0;
  578. border-radius: 4rpx;
  579. }
  580. }
  581. }
  582. }
  583. .search-tabs {
  584. display: flex;
  585. align-items: center;
  586. width: 100%;
  587. font-size: 32rpx;
  588. color: #333333;
  589. padding-left: 35rpx;
  590. overflow: hidden;
  591. overflow-x: auto;
  592. background-color: #fff;
  593. margin-bottom: 10rpx;
  594. .tabs-item {
  595. margin-right: 50rpx;
  596. flex-shrink: 0;
  597. padding-bottom: 10rpx;
  598. position: relative;
  599. .item-act {
  600. width: 80%;
  601. position: absolute;
  602. bottom: 0;
  603. left: 50%;
  604. transform: translateX(-50%);
  605. height: 4rpx;
  606. border-radius: 21px;
  607. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  608. }
  609. }
  610. .active {
  611. color: #4791ff;
  612. font-weight: 500;
  613. }
  614. }
  615. .content {
  616. width: 100%;
  617. background-color: #f5f6fa;
  618. }
  619. .nodata {
  620. font-size: 40rpx;
  621. .bind-mobile {
  622. width: 244rpx;
  623. height: 58rpx;
  624. background: #3385ff;
  625. border-radius: 8rpx;
  626. font-size: 28rpx;
  627. line-height: 58rpx;
  628. text-align: center;
  629. color: #fff;
  630. margin: 50rpx auto;
  631. }
  632. }
  633. .more-box {
  634. display: flex;
  635. height: 88rpx;
  636. padding: 0 30rpx;
  637. align-items: center;
  638. justify-content: space-between;
  639. font-size: 28rpx;
  640. background-color: #f5f6fa;
  641. position: sticky;
  642. left: 0;
  643. z-index: 99;
  644. .more-text {
  645. font-weight: 500;
  646. color: #333333;
  647. &::before {
  648. content: "";
  649. display: inline-block;
  650. height: 20rpx;
  651. width: 4rpx;
  652. background-color: #3189ff;
  653. margin-right: 20rpx;
  654. }
  655. }
  656. .more-rivet {
  657. color: #3385ff;
  658. margin-left: 20rpx;
  659. }
  660. }
  661. .summary-select {
  662. display: flex;
  663. align-items: center;
  664. width: 252rpx;
  665. background-color: #fff;
  666. color: #999999;
  667. font-size: 24rpx;
  668. height: 51rpx;
  669. border-radius: 47rpx;
  670. box-shadow: 0rpx 0rpx 4rpx 0rpx rgba(0, 0, 0, 0.09);
  671. overflow: hidden;
  672. .select-item {
  673. display: flex;
  674. align-items: center;
  675. justify-content: center;
  676. width: 50%;
  677. height: 100%;
  678. border-radius: 47rpx;
  679. }
  680. .active-item {
  681. background-color: #3385ff;
  682. color: #fff;
  683. }
  684. }
  685. .activity-select {
  686. padding-right: 34rpx;
  687. height: 88rpx;
  688. position: sticky;
  689. top: 184rpx;
  690. left: 0;
  691. z-index: 99;
  692. background-color: #f5f6fa;
  693. }
  694. .select-roadshow {
  695. width: 345rpx !important;
  696. }
  697. .more-summary {
  698. top: 184rpx;
  699. }
  700. .more-report {
  701. top: 184rpx;
  702. z-index: 100;
  703. }
  704. .more-activity {
  705. top: 184rpx;
  706. z-index: 101;
  707. }
  708. }
  709. </style>
  710. <style lang="scss">
  711. #container-report-page {
  712. .industry-video-module {
  713. .global-video-box {
  714. .video-content {
  715. top: 400rpx !important;
  716. }
  717. .close-icon {
  718. top: 330rpx !important;
  719. }
  720. }
  721. }
  722. }
  723. </style>