indedxSearch.vue 25 KB

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