indedxSearch.vue 25 KB

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