IndustryReport.vue 22 KB

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