IndustryReport.vue 21 KB

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