IndustryReport.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. <template>
  2. <view class="container industry-content" id="industry-content">
  3. <view v-if="haveData">
  4. <is-track-follow
  5. class="is-track-follow"
  6. style="z-index: 100"
  7. :isShowFollowButton.sync="dataFollow.IsShowFollowButton"
  8. source="resources"
  9. :sourceId="industrialManagementId"
  10. :isFollowData.sync="dataFollow.IsFollowButton"
  11. />
  12. <view class="content-top">
  13. <view class="top-bg" :style="{ top: dataFollow.IsShowFollowButton ? '60rpx' : 0 }">
  14. <!-- 详情封面图 -->
  15. <image :src="industryVideo.DetailImgUrl" class="industry-video-poster" v-show="industryVideo.Id && industryVideo.DetailImgUrl && !havePlayed" @click="handelVideoPlay"></image>
  16. <!-- 视频 -->
  17. <video :src="industryVideo.ResourceUrl" class="industry-video" id="industry-video" v-show="industryVideo.ResourceUrl && (havePlayed || !industryVideo.DetailImgUrl)" controls></video>
  18. <view class="top-bg-title" :style="{ height: industryVideo.Id ? '70rpx' : '99rpx', 'background-color': industryVideo.Id ? 'white' : '#d1ebff' }">产业赛道布局于{{ layoutTime }}</view>
  19. </view>
  20. <!-- industryVideo.ResourceUrl -- 视频url -->
  21. <view class="top-box" :style="{ top: industryVideo.Id ? '418rpx' : dataFollow.IsShowFollowButton ? '159rpx' : '99rpx' }">
  22. <view class="top-tab-cont">
  23. <view class="tab-cont">
  24. <scroll-view scroll-x="true" scroll-with-animation class="scroll-tab" :scroll-into-view="'_' + tabIndex">
  25. <block v-for="(item, index) in tabBars" :key="item.CategoryId">
  26. <view :id="'_' + index" class="scroll-tab-item" :class="{ active: tabAct_id == item.CategoryId }" @click.stop="toggleTab(item, index)">
  27. {{ item.MatchTypeName }}
  28. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/border_act.png" mode="" class="border_act" v-if="tabAct_id == item.CategoryId"></image>
  29. <text class="reg-hint" v-if="item.IsRed"></text>
  30. </view>
  31. </block>
  32. </scroll-view>
  33. </view>
  34. <view class="lucency" v-if="tabBars.length > 6"></view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="collect-ul" :style="{ 'padding-top': industryVideo.ResourceUrl || industryVideo.Id ? '540rpx' : dataFollow.IsShowFollowButton ? '270rpx' : '210rpx' }">
  39. <!-- 其他tab -->
  40. <block v-if="tabAct_id !== 99999">
  41. <view class="collect-ltem" v-for="(item, index) in collectList" :key="index" @click="goDetail(item, index)">
  42. <view class="item-left">
  43. <text class="title text_twoLine"
  44. >{{ item.Title }}
  45. <text class="reg-text" v-if="item.IsRed"></text>
  46. </text>
  47. <text class="text_twoLine desc">{{ item.PublishDate }}</text>
  48. </view>
  49. <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
  50. </view>
  51. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1 && tabAct_id !== 99999" />
  52. </block>
  53. <!-- 时间线 -->
  54. <block v-if="tabAct_id === 99999">
  55. <view class="time-line">
  56. <view class="line-item" v-for="(item, index) in timeLine" :key="index" @click="goDetailFromTimeLine(item, index)">
  57. <view class="time">{{ item.date }}</view>
  58. <view class="content" v-if="item.Content.length">
  59. <text class="content-reg" v-if="item.IsRed"></text>
  60. <rich-text class="rich-text" :style="{ height: item.isExpand ? 'auto' : richTextHeight + 'px' }" :data-index="index" :class="{ expand: item.isExpand }" :nodes="item.Content">
  61. </rich-text>
  62. <view class="expan-btn" :class="{ pos: !item.isExpand }" @click="handleExpand(item, index)" v-if="item.isShowBtn">{{ item.isExpand ? "收起" : "展开" }}</view>
  63. </view>
  64. <view class="title" v-else>
  65. <text class="content-reg" v-if="item.IsRed"></text>
  66. {{ item.Title }}</view
  67. >
  68. </view>
  69. <view v-show="loadTimeLine" class="loadTimeLine"></view>
  70. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1 && tabAct_id === 99999" />
  71. </view>
  72. </block>
  73. </view>
  74. </view>
  75. <view class="nodata" v-else>
  76. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  77. <text>暂时没有报告的内容</text>
  78. </view>
  79. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  80. <!-- 权限弹窗 -->
  81. <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
  82. </view>
  83. </template>
  84. <script>
  85. import { Mine, Home } from "@/config/api.js";
  86. import { Reports } from "@/config/api.js";
  87. import { Throttle } from "@/config/util.js";
  88. import freeCharge from "@/components/freeCharge";
  89. import modalDialog from "@/components/modalDialog.vue";
  90. import IsTrackFollow from "@/components/isTrackFollow.vue";
  91. let app = getApp({ allowDefault: true });
  92. export default {
  93. data() {
  94. return {
  95. tabAct_id: "",
  96. tabBars: [],
  97. industrialManagementId: "",
  98. layoutTime: "",
  99. refresh: false, //正在下拉
  100. page_no: 1,
  101. pageSize: 10,
  102. categoryId: "",
  103. collectList: [],
  104. isShow: false,
  105. haveData: true,
  106. status: "loadmore",
  107. loadText: {
  108. loadmore: "上拉加载更多",
  109. loading: "加载中",
  110. nomore: "已经到底了",
  111. },
  112. totalPage: "",
  113. toggleTabIndex: 0,
  114. titleReport: "",
  115. pcTabActive: "",
  116. industryVideo: {},
  117. authInfo: {},
  118. havePlayed: false,
  119. isShowhasPermission: false, // 联系销售的提交申请
  120. applyForIsShow: false, // 提交申请
  121. jurisdictionList: {},
  122. hasPermission: "", //权限
  123. timeLine: [], //时间线数据
  124. mockTimeLine: [
  125. {
  126. date: "不重要",
  127. Content: "<p>hello,world</p><p>hello,world</p><p>hello,world</p>",
  128. }, //第一项是为了获取当前手机下,三行是多少相对高度
  129. ],
  130. loadTimeLine: false, //时间线的遮罩
  131. richTextHeight: 1000, //晨会富文本最大高度
  132. dataFollow: {},
  133. isSendWx: "",
  134. };
  135. },
  136. onLoad(option) {
  137. this.industrialManagementId = option.id;
  138. this.isSendWx = option.IsSendWx || "";
  139. this.tabAct_id = +option.tab || "";
  140. this.toArticleCategoryList();
  141. },
  142. onShow() {
  143. this.$store.dispatch("statistics", { PageType: "IndustryList", IndustrialManagementId: this.industrialManagementId });
  144. },
  145. components: {
  146. freeCharge,
  147. modalDialog,
  148. IsTrackFollow,
  149. },
  150. watch: {
  151. //监听tabs的变化
  152. tabAct_id: {
  153. handler(newVal) {
  154. if (newVal) {
  155. this.page_no = 1;
  156. this.collectList = [];
  157. this.getCollectList();
  158. }
  159. },
  160. immediate: true,
  161. },
  162. },
  163. methods: {
  164. //tabs切换事件
  165. toggleTab(item, index) {
  166. this.toggleTabIndex = index;
  167. if (this.tabAct_id !== item.CategoryId) {
  168. this.tabAct_id = item.CategoryId;
  169. this.pageNum = 1;
  170. this.timeLine = [];
  171. this.totalPage = "";
  172. uni.pageScrollTo({
  173. scrollTop: 0,
  174. duration: 0,
  175. });
  176. }
  177. },
  178. toArticleCategoryList() {
  179. Reports.toArticleCategoryList({
  180. IndustrialManagementId: this.industrialManagementId,
  181. ShowTimeLine: 1,
  182. PageRouter: this.$store.state.pageRouterReport,
  183. IsSendWx: this.isSendWx,
  184. }).then((res) => {
  185. if (res.Ret == 200) {
  186. uni.setNavigationBarTitle({
  187. title: res.Data.IndustryName,
  188. });
  189. this.dataFollow = res.Data;
  190. this.titleReport = res.Data.IndustryName;
  191. this.layoutTime = res.Data.LayoutTime;
  192. this.industryVideo = res.Data.IndustryVideo;
  193. this.authInfo = res.Data.AuthInfo;
  194. if (res.Data.List) {
  195. this.tabAct_id = res.Data.List[0].CategoryId;
  196. this.tabBars = res.Data.List;
  197. }
  198. }
  199. });
  200. },
  201. /* 获取列表 */
  202. getCollectList() {
  203. //just for test
  204. if (this.tabAct_id === 99999) {
  205. Reports.getArticleList({
  206. PageSize: this.pageSize,
  207. CurrentIndex: this.page_no,
  208. CategoryId: 99999,
  209. IndustrialManagementId: this.industrialManagementId,
  210. }).then((res) => {
  211. if (res.Ret === 200) {
  212. this.loadTimeLine = true;
  213. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  214. this.totalPage = res.Data.Paging.Pages;
  215. let list = res.Data.List || [];
  216. list = list.map((item) => {
  217. let temp = item;
  218. temp.date = item.PublishTime.split(" ")[0];
  219. if (item.Content.length) {
  220. temp.isExpand = true;
  221. temp.isShowBtn = true;
  222. }
  223. return temp;
  224. });
  225. if (this.page_no === 1) {
  226. this.timeLine = list;
  227. this.haveData = this.timeLine.length ? true : false;
  228. if (this.refresh) {
  229. uni.stopPullDownRefresh();
  230. this.refresh = false;
  231. }
  232. } else {
  233. this.timeLine = this.timeLine.concat(list);
  234. }
  235. }
  236. this.timeLine.unshift(this.mockTimeLine[0]);
  237. //在获取高度前把所有的晨会展开,收起的话无法获取正确高度
  238. this.timeLine.forEach((item) => {
  239. if (item.Content.length) {
  240. item.isExpand = true;
  241. item.isShowBtn = true;
  242. }
  243. });
  244. setTimeout(() => {
  245. this.getConentsHeight();
  246. }, 0);
  247. });
  248. return;
  249. }
  250. Reports.getArticleList({
  251. PageSize: this.pageSize,
  252. CurrentIndex: this.page_no,
  253. CategoryId: this.tabAct_id,
  254. IndustrialManagementId: this.industrialManagementId,
  255. }).then((res) => {
  256. if (res.Ret === 200) {
  257. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  258. this.totalPage = res.Data.Paging.Pages; //总页数
  259. if (this.page_no === 1) {
  260. this.pcTabActive = res.Data.ChartPermissionId;
  261. this.collectList = res.Data.List || [];
  262. this.haveData = this.collectList.length ? true : false;
  263. if (this.refresh) {
  264. uni.stopPullDownRefresh();
  265. this.refresh = false;
  266. }
  267. } else {
  268. this.collectList = this.collectList.concat(res.Data.List);
  269. }
  270. }
  271. });
  272. },
  273. async goDetail(item, index) {
  274. /* 无需授权且已绑定 检验是或否有权限 */
  275. await this.$store.dispatch("checkHandle");
  276. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  277. // 已授权已绑定
  278. if (item.SubCategoryName === "路演精华") {
  279. //跳转路演精华
  280. uni.navigateTo({
  281. url: "/reportPages/roadEssence/roadEssence?id=" + item.ArticleId,
  282. });
  283. } else {
  284. this.setRouter();
  285. uni.navigateTo({
  286. url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId,
  287. });
  288. }
  289. }
  290. },
  291. // 视频播放权限判断
  292. handelVideoPlay() {
  293. this.$store.commit("setRouterReport", "资源包详情页");
  294. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  295. if (this.authInfo.HasPermission == 1) {
  296. this.playVideo();
  297. } else {
  298. this.hasPermission = this.authInfo.HasPermission;
  299. this.jurisdictionList.ActivityId = this.industryVideo.Id;
  300. this.jurisdictionList.isAudioVideo = 3;
  301. if (this.hasPermission == 2) {
  302. this.jurisdictionList.SellerMobile = this.authInfo.SellerMobile;
  303. this.jurisdictionList.SellerName = this.authInfo.SellerName;
  304. this.jurisdictionList.PopupMsg = this.authInfo.PopupMsg;
  305. this.isShowhasPermission = true;
  306. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  307. this.jurisdictionList.PopupMsg = this.authInfo.PopupMsg;
  308. this.applyForIsShow = true;
  309. }
  310. }
  311. } else {
  312. this.$store.dispatch("checkHandle");
  313. }
  314. },
  315. // 播放视频
  316. playVideo() {
  317. const query = uni.createSelectorQuery().in(this);
  318. query
  319. .select("#industry-video")
  320. .context((data) => {
  321. data.context.play();
  322. this.handelVideoBindplay();
  323. setTimeout(() => {
  324. this.havePlayed = true;
  325. }, 10);
  326. })
  327. .exec();
  328. },
  329. //
  330. async handelVideoBindplay() {
  331. const res = await Home.microAideoHistoryAdd({ VideoId: this.industryVideo.Id, SourceType: 1, PageRouter: this.$store.state.pageRouterReport });
  332. },
  333. //展开收起晨会内容
  334. handleExpand(item, index) {
  335. this.getRecordTracking("展开收起", { Id: item.Id });
  336. item.isExpand = !item.isExpand;
  337. this.timeLine.splice(index, 1, item);
  338. },
  339. //获取所有晨会内容的高度并决定是否显示展开收起按钮
  340. getConentsHeight() {
  341. const query = wx.createSelectorQuery();
  342. query.selectAll(".rich-text").boundingClientRect();
  343. query.exec((res) => {
  344. //根据timeLine的第一项确定当前手机三行文字的高度
  345. const standardHeight = res[0][0].height;
  346. this.richTextHeight = standardHeight;
  347. res[0].forEach((item) => {
  348. let temp = this.timeLine[item.dataset.index];
  349. //超过这个高度的,需要显示展开/收起按钮
  350. if (item.height > standardHeight) {
  351. temp.isExpand = false;
  352. temp.isShowBtn = true;
  353. } else {
  354. temp.isExpand = true;
  355. temp.isShowBtn = false;
  356. }
  357. });
  358. //然后把timeLine的第一项扔掉
  359. this.timeLine.shift();
  360. this.loadTimeLine = false;
  361. });
  362. },
  363. async goDetailFromTimeLine(item, index) {
  364. if (item.Content.length !== 0) return;
  365. await this.$store.dispatch("checkHandle");
  366. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  367. // 已授权已绑定
  368. if (item.SubCategoryName === "路演精华") {
  369. //跳转路演精华
  370. uni.navigateTo({
  371. url: "/reportPages/roadEssence/roadEssence?id=" + item.Id,
  372. });
  373. } else {
  374. this.setRouter();
  375. uni.navigateTo({
  376. url: "/pageMy/reportDetail/reportDetail?id=" + item.Id,
  377. });
  378. }
  379. }
  380. },
  381. getNode(content, isExpand) {
  382. return `<div style='-webkit-line-clamp: ${isExpand ? 9999 : 3};-webkit-box-orient: vertical;display: -webkit-box;overflow: hidden;text-overflow: ellipsis;'>${content}</div>`;
  383. },
  384. // 去往文章详情的
  385. setRouter() {
  386. this.tabBars.forEach((item) => {
  387. if (this.tabAct_id == item.CategoryId) {
  388. this.$store.commit("setRouterReport", item.MatchTypeName);
  389. }
  390. });
  391. },
  392. },
  393. /* 触底 */
  394. onReachBottom: Throttle(function () {
  395. if (this.status === "nomore") return;
  396. this.status = "loading";
  397. this.page_no++;
  398. if (this.tabAct_id) {
  399. this.getCollectList();
  400. }
  401. }),
  402. /* 下拉刷新 */
  403. onPullDownRefresh: Throttle(function () {
  404. if (this.tabAct_id) {
  405. this.page_no = 1;
  406. this.refresh = true;
  407. this.getCollectList();
  408. }
  409. }),
  410. /**
  411. * 用户点击分享
  412. */
  413. onShareAppMessage: function (res) {
  414. return {
  415. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.titleReport,
  416. path: "/reportPages/IndustryReport/IndustryReport?id=" + this.industrialManagementId + "&tab=" + this.tabAct_id + "&tabs=" + this.pcTabActive,
  417. success: (res) => {},
  418. fail: (err) => {},
  419. };
  420. },
  421. };
  422. </script>
  423. <style lang="scss">
  424. .industry-content {
  425. background-color: #f7f7f7;
  426. // height: 100vh;
  427. .top-bg {
  428. position: fixed;
  429. top: 0;
  430. left: 0;
  431. width: 100%;
  432. z-index: 90;
  433. background-color: white;
  434. text-align: center;
  435. .industry-video-poster {
  436. border-radius: 8rpx 8rpx 0 0;
  437. height: 340rpx;
  438. width: 728rpx;
  439. }
  440. .industry-video {
  441. height: 340rpx;
  442. width: 728rpx;
  443. }
  444. .top-bg-title {
  445. height: 99rpx;
  446. color: #2c83ff;
  447. background-color: #d1ebff;
  448. font-size: 28rpx;
  449. display: flex;
  450. align-items: center;
  451. justify-content: center;
  452. }
  453. .test {
  454. position: relative;
  455. span {
  456. position: absolute;
  457. left: 30rpx;
  458. bottom: 30rpx;
  459. color: white;
  460. }
  461. }
  462. }
  463. .follow-top {
  464. top: 60rpx;
  465. }
  466. .top-box {
  467. position: fixed;
  468. width: 100%;
  469. top: 99rpx;
  470. left: 0;
  471. z-index: 90;
  472. }
  473. .top-tab-cont {
  474. .lucency {
  475. position: absolute;
  476. top: 0;
  477. right: 0;
  478. width: 32px;
  479. height: 30px;
  480. opacity: 0.9;
  481. background-color: #fff;
  482. }
  483. .tab-cont {
  484. padding: retu;
  485. padding: 30rpx 26rpx 0;
  486. background-color: #fff;
  487. font-size: 32rpx;
  488. box-shadow: 0 3rpx 6rpx rgba(187, 216, 255, 0.2);
  489. .scroll-tab {
  490. width: 100%;
  491. white-space: nowrap;
  492. }
  493. .scroll-tab-item {
  494. // flex-grow: 1;
  495. text-align: center;
  496. display: inline-block;
  497. padding: 0rpx 8rpx 30rpx 8rpx;
  498. margin-right: 60rpx;
  499. border-bottom: 8rpx solid transparent;
  500. position: relative;
  501. &:last-child {
  502. margin-right: 0;
  503. }
  504. &.active {
  505. border-bottom: none;
  506. color: #2c83ff;
  507. font-weight: 700;
  508. }
  509. .border_act {
  510. width: 100%;
  511. height: 8rpx;
  512. position: absolute;
  513. bottom: 0;
  514. left: 0;
  515. }
  516. .reg-hint {
  517. position: absolute;
  518. top: 0rpx;
  519. right: -10rpx;
  520. width: 14rpx;
  521. height: 14rpx;
  522. background-color: #ff0000;
  523. border-radius: 50%;
  524. }
  525. }
  526. }
  527. }
  528. .collect-ul {
  529. // margin-top: 30rpx;s
  530. padding-top: 210rpx;
  531. // padding-top: 4rpx;
  532. .collect-ltem {
  533. display: flex;
  534. padding: 30rpx 34rpx;
  535. background: #fff;
  536. margin-bottom: 4rpx;
  537. align-items: center;
  538. justify-content: space-between;
  539. .title {
  540. position: relative;
  541. max-width: 625rpx;
  542. color: #4a4a4a;
  543. font-size: 34rpx;
  544. padding-left: 28rpx;
  545. .reg-text {
  546. position: absolute;
  547. top: 15rpx;
  548. left: 0rpx;
  549. width: 14rpx;
  550. height: 14rpx;
  551. background-color: #ff0000;
  552. border-radius: 50%;
  553. z-index: 9;
  554. }
  555. }
  556. .desc {
  557. margin-top: 17rpx;
  558. padding-left: 28rpx;
  559. width: 625rpx;
  560. color: #999;
  561. }
  562. }
  563. .time-line {
  564. padding: 30rpx 40rpx 50rpx 40rpx;
  565. min-height: calc(100vh - 190rpx);
  566. background-color: #ffffff;
  567. position: relative;
  568. .loadTimeLine {
  569. top: 0;
  570. bottom: 0;
  571. left: 0;
  572. right: 0;
  573. position: absolute;
  574. background-color: #fff;
  575. z-index: 6;
  576. }
  577. .line-item {
  578. position: relative;
  579. padding: 0 0 50rpx 40rpx;
  580. /* border-left:1rpx solid #DAE9FD; */
  581. &:last-child {
  582. padding-bottom: 0;
  583. &::after {
  584. height: calc(100% - 25rpx);
  585. }
  586. }
  587. &:first-child {
  588. .time {
  589. &::after {
  590. background-color: #3385ff;
  591. }
  592. }
  593. }
  594. &::before,
  595. &::after {
  596. position: absolute;
  597. content: "";
  598. }
  599. &::before {
  600. width: 24rpx;
  601. height: 24rpx;
  602. background-color: #dae9fd;
  603. z-index: 1;
  604. left: 0;
  605. top: 27rpx;
  606. transform: translate(-50%, -50%);
  607. border-radius: 50%;
  608. }
  609. &::after {
  610. top: 17rpx;
  611. left: 0;
  612. width: 1rpx;
  613. height: calc(100%);
  614. background-color: #dae9fd;
  615. z-index: 2;
  616. }
  617. .time {
  618. width: 245rpx;
  619. height: 55rpx;
  620. text-align: center;
  621. line-height: 45rpx;
  622. padding: 5rpx 20rpx;
  623. background-color: #f5f9ff;
  624. border-radius: 64rpx;
  625. color: #5181c9;
  626. font-size: 32rpx;
  627. margin-bottom: 20rpx;
  628. position: relative;
  629. &::before,
  630. &::after {
  631. position: absolute;
  632. content: "";
  633. left: -36rpx;
  634. top: 27rpx;
  635. width: 24rpx;
  636. height: 1rpx;
  637. background-color: #dae9fd;
  638. z-index: 1;
  639. }
  640. &::after {
  641. left: -40rpx;
  642. top: 27rpx;
  643. width: 12rpx;
  644. height: 12rpx;
  645. border-radius: 50%;
  646. transform: translate(-50%, -50%);
  647. background-color: #9dc5ff;
  648. z-index: 3;
  649. }
  650. }
  651. .content {
  652. color: #666666;
  653. position: relative;
  654. .rich-text {
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. text-align: justify;
  658. display: -webkit-box;
  659. -webkit-line-clamp: 3;
  660. -webkit-box-orient: vertical;
  661. position: relative;
  662. &.expand {
  663. -webkit-line-clamp: 999;
  664. height: auto;
  665. }
  666. }
  667. .expan-btn {
  668. color: #2c83ff;
  669. text-align: right;
  670. &.pos {
  671. padding: 0 0 0 40rpx;
  672. background-color: rgba(255, 255, 255, 0.882);
  673. position: absolute;
  674. right: 0;
  675. bottom: 0;
  676. }
  677. }
  678. .content-reg {
  679. position: absolute;
  680. top: 10rpx;
  681. left: -20rpx;
  682. width: 14rpx;
  683. height: 14rpx;
  684. background-color: #ff0000;
  685. border-radius: 50%;
  686. }
  687. }
  688. .title {
  689. position: relative;
  690. color: #3385ff;
  691. .content-reg {
  692. position: absolute;
  693. top: 10rpx;
  694. left: -20rpx;
  695. width: 14rpx;
  696. height: 14rpx;
  697. background-color: #ff0000;
  698. border-radius: 50%;
  699. }
  700. }
  701. }
  702. }
  703. }
  704. .is-track-follow {
  705. position: fixed;
  706. width: 100%;
  707. top: 0;
  708. left: 0;
  709. }
  710. }
  711. #industry-content {
  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>