IndustryReport.vue 22 KB

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