liveBroadcast.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. <template>
  2. <!-- 小程序直播 -->
  3. <!-- #ifdef MP -->
  4. <view v-show="!isSortType">
  5. <view :style="liveWrapperStyle">
  6. <view class="mb-config" :style="liveStyle">
  7. <template v-if="dataConfig.styleConfig.tabVal == 0">
  8. <view class="live-wrapper-a">
  9. <navigator class="live-item-a" v-for="(item,index) in liveList" :key="item.id" :style="liveWrapStyle"
  10. :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id + '&custom_params=' + customParams" hover-class="none">
  11. <view class="img-box" :style="liveItemStyle">
  12. <view class="label-a acea-row row-middle" v-if="item.live_status == 101">
  13. <text class="iconfont icon-ic_video1"></text>
  14. <text>直播中</text>
  15. </view>
  16. <view class="label-b acea-row row-middle" v-else-if="item.live_status == 102">
  17. <view class="txt acea-row row-middle">预告</view>
  18. <view class="msg">{{ item.show_time }}</view>
  19. </view>
  20. <view class="label-c acea-row row-middle" v-else-if="item.live_status == 103">
  21. <text>回放</text>
  22. </view>
  23. <easy-loadimage mode="widthFix" :image-src="item.cover_img" width="100%" height="400rpx"></easy-loadimage>
  24. </view>
  25. <view class="info">
  26. <view class="title line2" v-if="titleShow">{{ item.name }}</view>
  27. <view class="people acea-row row-middle" v-if="anchorShow">
  28. <easy-loadimage class="image" mode="widthFix" :image-src="item.anchor_img" width="40rpx" height="40rpx" borderRadius=""></easy-loadimage>
  29. <text>主播:{{ item.anchor_name }}</text>
  30. </view>
  31. </view>
  32. </navigator>
  33. </view>
  34. </template>
  35. <template v-else-if="dataConfig.styleConfig.tabVal == 1">
  36. <view class="live-wrapper-b">
  37. <navigator class="live-item acea-row" v-for="(item,index) in liveList" :key="item.id" :style="liveWrapStyle"
  38. :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id + '&custom_params=' + customParams" hover-class="none">
  39. <view class="img-box" :style="liveItemStyle">
  40. <view class="label-a" v-if="item.live_status == 101">
  41. <text class="iconfont icon-ic_video1"></text>
  42. <text>直播中</text>
  43. </view>
  44. <view class="label-b" v-else-if="item.live_status == 102">
  45. <view class="txt acea-row row-middle">预告</view>
  46. <view class="msg">{{ item.show_time }}</view>
  47. </view>
  48. <view class="label-c" v-else-if="item.live_status == 103">
  49. <text>回放</text>
  50. </view>
  51. <easy-loadimage mode="widthFix" :image-src="item.cover_img" width="332rpx" height="236rpx" borderRadius="16rpx 0rpx 0rpx 16rpx"></easy-loadimage>
  52. </view>
  53. <view class="info acea-row row-column">
  54. <view class="title line2" v-if="titleShow">{{ item.name }}</view>
  55. <view class="goods-wrapper acea-row">
  56. <view class="goods-item" v-for="goodsItem in item.goods">
  57. <easy-loadimage mode="widthFix" :image-src="goodsItem.cover_img" width="96rpx" height="96rpx" borderRadius="8rpx"></easy-loadimage>
  58. <view class="money">¥{ goodsItem.price }</view>
  59. <view class="num acea-row row-center-wrapper">+5</view>
  60. </view>
  61. </view>
  62. </view>
  63. </navigator>
  64. </view>
  65. </template>
  66. <template v-else-if="dataConfig.styleConfig.tabVal == 2">
  67. <view class="live-wrapper-c">
  68. <scroll-view class="scroll-view" scroll-x="true">
  69. <navigator class="live-item" v-for="(item,index) in liveList" :key="item.id" :style="liveWrapStyle"
  70. :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id + '&custom_params=' + customParams" hover-class="none">
  71. <view class="img-box" :style="liveItemStyle">
  72. <view class="label-a" v-if="item.live_status == 101">
  73. <text class="iconfont icon-ic_video1"></text>
  74. <text>直播中</text>
  75. </view>
  76. <view class="label-b acea-row" v-else-if="item.live_status == 102">
  77. <view class="txt">预告</view>
  78. <view class="msg">{{ item.show_time }}</view>
  79. </view>
  80. <view class="label-c" v-else-if="item.live_status == 103">
  81. <text>回放</text>
  82. </view>
  83. <easy-loadimage mode="widthFix" :image-src="item.cover_img" width="280rpx" height="200rpx" borderRadius="16rpx"></easy-loadimage>
  84. </view>
  85. <view class="info">
  86. <view class="title line1" v-if="titleShow">{{ item.name }}</view>
  87. <view class="people acea-row row-middle" v-if="anchorShow">
  88. <easy-loadimage class="image" mode="widthFix" :image-src="item.anchor_img" width="40rpx" height="40rpx" borderRadius="20rpx"></easy-loadimage>
  89. <text>主播:{{ item.anchor_name }}</text>
  90. </view>
  91. </view>
  92. </navigator>
  93. </scroll-view>
  94. </view>
  95. </template>
  96. <template v-else-if="dataConfig.styleConfig.tabVal == 3">
  97. <view class="live-wrapper-d">
  98. <template v-for="(item,index) in liveList">
  99. <navigator v-if="index" class="live-item-b" :key="item.id" :style="liveWrapStyle"
  100. :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id + '&custom_params=' + customParams" hover-class="none">
  101. <view class="info">
  102. <view class="acea-row row-middle">
  103. <view class="label-a acea-row row-middle" v-if="item.live_status == 101">
  104. <text class="iconfont icon-ic_video1"></text>
  105. <text>直播中</text>
  106. </view>
  107. <view class="label-b acea-row row-middle" v-else-if="item.live_status == 102">
  108. <text>预告</text>
  109. </view>
  110. <view class="label-c acea-row row-middle" v-else-if="item.live_status == 103">
  111. <text>回放</text>
  112. </view>
  113. <view class="title line1" v-if="titleShow">{{ item.name }}</view>
  114. </view>
  115. <view class="people acea-row row-middle" v-if="anchorShow">
  116. <easy-loadimage class="image" mode="widthFix" :image-src="item.anchor_img" width="40rpx" height="40rpx" borderRadius="20rpx"></easy-loadimage>
  117. <text>主播:{{ item.anchor_name }}</text>
  118. <text class="time">{{ item.show_time }}</text>
  119. </view>
  120. </view>
  121. </navigator>
  122. <navigator v-else class="live-item-a" :style="liveItemStyle"
  123. :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id + '&custom_params=' + customParams" hover-class="none">
  124. <view class="img-box">
  125. <view class="label-a" v-if="item.live_status == 101">
  126. <text class="iconfont icon-ic_video1"></text>
  127. <text>直播中</text>
  128. </view>
  129. <view class="label-b acea-row" v-else-if="item.live_status == 102">
  130. <view class="txt">预告</view>
  131. <view class="msg">{{ item.show_time }}</view>
  132. </view>
  133. <view class="label-c acea-row row-middle" v-else-if="item.live_status == 103">
  134. <text>回放</text>
  135. </view>
  136. <easy-loadimage mode="widthFix" :image-src="item.cover_img" width="100%" height="670rpx"></easy-loadimage>
  137. </view>
  138. <view class="info" v-if="titleShow || anchorShow">
  139. <view class="title line1" v-if="titleShow">{{ item.name }}</view>
  140. <view class="people acea-row row-middle" v-if="anchorShow">
  141. <easy-loadimage class="image" mode="widthFix" :image-src="item.anchor_img" width="40rpx" height="40rpx" borderRadius="20rpx"></easy-loadimage>
  142. <text>主播:{{ item.anchor_name }}</text>
  143. </view>
  144. </view>
  145. </navigator>
  146. </template>
  147. </view>
  148. </template>
  149. </view>
  150. </view>
  151. </view>
  152. <!-- #endif -->
  153. </template>
  154. <script>
  155. import {
  156. mapGetters
  157. } from "vuex";
  158. import {
  159. getLiveList
  160. } from '@/api/api.js';
  161. export default {
  162. computed: mapGetters(['uid']),
  163. name: 'liveBroadcast',
  164. props: {
  165. dataConfig: {
  166. type: Object,
  167. default: () => {}
  168. },
  169. isSortType: {
  170. type: String | Number,
  171. default: 0
  172. }
  173. },
  174. data() {
  175. return {
  176. // endBg: this.dataConfig.endBg.color[0].item,
  177. // notBg: this.dataConfig.notBg.color[0].item,
  178. // playBg: this.dataConfig.playBg.color[0].item,
  179. listStyle: 0,
  180. mbConfig: 0,
  181. liveList: [],
  182. customParams: 0,
  183. bg: '',
  184. titleColor: '',
  185. prConfig: '',
  186. boxShadow: '',
  187. // limit: 0,
  188. itemStyle: 0
  189. };
  190. },
  191. computed: {
  192. liveWrapperStyle() {
  193. return {
  194. 'padding': `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
  195. 'margin-top': `${this.dataConfig.mbConfig.val * 2}rpx`,
  196. 'background': this.dataConfig.bottomBgColor.color[0].item,
  197. };
  198. },
  199. liveStyle() {
  200. let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
  201. if (this.dataConfig.fillet.type) {
  202. borderRadius =
  203. `${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx`;
  204. }
  205. return {
  206. 'border-radius': borderRadius,
  207. 'background': `linear-gradient(90deg, ${this.dataConfig.moduleColor.color[0].item} 0%, ${this.dataConfig.moduleColor.color[1].item} 100%)`,
  208. };
  209. },
  210. liveWrapStyle() {
  211. let marginTop = 0;
  212. let marginLeft = 0;
  213. let marginRight = 0;
  214. if (this.dataConfig.styleConfig.tabVal == 2) {
  215. marginLeft = `${this.dataConfig.liveConfig.val * 2}rpx`;
  216. marginRight = `${this.dataConfig.liveConfig.val * 2}rpx`;
  217. } else {
  218. marginTop = `${this.dataConfig.liveConfig.val * 2}rpx`;
  219. }
  220. return {
  221. 'margin-top': marginTop,
  222. 'margin-left': marginLeft,
  223. 'margin-right': marginRight,
  224. };
  225. },
  226. liveItemStyle() {
  227. let borderRadius = `${this.dataConfig.filletImg.val * 2}rpx`;
  228. if (this.dataConfig.filletImg.type) {
  229. borderRadius =
  230. `${this.dataConfig.filletImg.valList[0].val * 2}rpx ${this.dataConfig.filletImg.valList[1].val * 2}rpx ${this.dataConfig.filletImg.valList[2].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx`;
  231. }
  232. return {
  233. 'border-radius': borderRadius,
  234. };
  235. },
  236. anchorShow() {
  237. return this.dataConfig.checkboxInfo.type.includes(1);
  238. },
  239. titleShow() {
  240. return this.dataConfig.checkboxInfo.type.includes(0);
  241. },
  242. },
  243. watch: {
  244. uid: {
  245. handler(newV, oldValue) {
  246. this.getCustomParams();
  247. },
  248. immediate: true,
  249. deep: true
  250. }
  251. },
  252. created() {},
  253. mounted() {
  254. this.getLiveList();
  255. },
  256. methods: {
  257. getCustomParams() {
  258. this.customParams = encodeURIComponent(JSON.stringify({
  259. pid: this.uid
  260. }));
  261. },
  262. getLiveList: function() {
  263. let limit = this.$config.LIMIT;
  264. getLiveList(1, this.dataConfig.numberConfig.val == undefined ? 10 : this.dataConfig.numberConfig.val)
  265. .then(res => {
  266. this.liveList = res.data;
  267. })
  268. .catch(res => {});
  269. }
  270. }
  271. };
  272. </script>
  273. <style lang="scss">
  274. .pageOn {
  275. border-radius: 16rpx;
  276. }
  277. .label-img {
  278. width: 20rpx !important;
  279. height: 20rpx !important;
  280. }
  281. .bgred-img {
  282. width: 21rpx !important;
  283. height: 22rpx !important;
  284. }
  285. .live-wrapper {
  286. position: relative;
  287. width: 100%;
  288. overflow: hidden;
  289. border-radius: 16rpx;
  290. image {
  291. width: 100%;
  292. height: 400rpx;
  293. }
  294. .live-top {
  295. z-index: 20;
  296. position: absolute;
  297. left: 0;
  298. top: 0;
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. color: #fff;
  303. width: 180rpx;
  304. height: 54rpx;
  305. border-radius: 0rpx 0px 18rpx 0px;
  306. image {
  307. width: 30rpx;
  308. height: 30rpx;
  309. margin-right: 10rpx;
  310. /* #ifdef H5 */
  311. display: block;
  312. /* #endif */
  313. }
  314. }
  315. .live-title {
  316. position: absolute;
  317. left: 0;
  318. bottom: 6rpx;
  319. width: 100%;
  320. height: 70rpx;
  321. line-height: 70rpx;
  322. text-align: center;
  323. font-size: 30rpx;
  324. color: #fff;
  325. background: rgba(0, 0, 0, 0.35);
  326. }
  327. &.mores {
  328. width: 100%;
  329. .item {
  330. position: relative;
  331. width: 320rpx;
  332. display: inline-block;
  333. border-radius: 16rpx;
  334. overflow: hidden;
  335. margin-right: 20rpx;
  336. image {
  337. width: 320rpx;
  338. height: 180rpx;
  339. border-radius: 16rpx;
  340. }
  341. .live-title {
  342. height: 40rpx;
  343. line-height: 40rpx;
  344. text-align: center;
  345. font-size: 22rpx;
  346. }
  347. .live-top {
  348. width: 120rpx;
  349. height: 36rpx;
  350. font-size: 22rpx;
  351. image {
  352. width: 20rpx;
  353. height: 20rpx;
  354. }
  355. }
  356. }
  357. }
  358. }
  359. .live-wrapper-a {
  360. padding: 20rpx;
  361. .live-item-a {
  362. &:first-child {
  363. margin-top: 0 !important;
  364. }
  365. .img-box {
  366. position: relative;
  367. height: 400rpx;
  368. overflow: hidden;
  369. }
  370. .info {
  371. padding: 24rpx 0 0;
  372. .title {
  373. font-size: 28rpx;
  374. line-height: 40rpx;
  375. color: #333333;
  376. }
  377. .people {
  378. margin-top: 12rpx;
  379. font-size: 24rpx;
  380. color: #999999;
  381. .image {
  382. margin-right: 12rpx;
  383. }
  384. }
  385. }
  386. .label-a {
  387. position: absolute;
  388. top: 24rpx;
  389. left: 0;
  390. z-index: 2;
  391. height: 40rpx;
  392. padding: 0 16rpx;
  393. border-radius: 0 20rpx 20rpx 0;
  394. background: linear-gradient(90deg, #FF2851 0%, #FF2851 100%);
  395. font-size: 22rpx;
  396. line-height: 40rpx;
  397. color: #FFFFFF;
  398. }
  399. .label-b {
  400. position: absolute;
  401. top: 24rpx;
  402. left: 0;
  403. z-index: 2;
  404. height: 40rpx;
  405. padding: 0 16rpx 0 0;
  406. border-radius: 0 20rpx 20rpx 0;
  407. background: rgba(0, 0, 0, 0.2);
  408. font-size: 22rpx;
  409. color: #FFFFFF;
  410. .txt {
  411. height: 40rpx;
  412. padding: 0 16rpx;
  413. border-radius: 0 20rpx 20rpx 0;
  414. margin-right: 12rpx;
  415. background: linear-gradient(90deg, #208FF2 0%, #3FA6FF 98%);
  416. }
  417. }
  418. .label-c {
  419. position: absolute;
  420. top: 24rpx;
  421. left: 0;
  422. z-index: 2;
  423. height: 40rpx;
  424. padding: 0 16rpx;
  425. border-radius: 0 20rpx 20rpx 0;
  426. background: linear-gradient(90deg, #6D80AC 0%, #889EBD 100%);
  427. font-size: 22rpx;
  428. color: #FFFFFF;
  429. }
  430. }
  431. }
  432. .live-wrapper-b {
  433. padding: 20rpx;
  434. .live-item {
  435. &:first-child {
  436. margin-top: 0 !important;
  437. }
  438. .img-box {
  439. position: relative;
  440. width: 332rpx;
  441. height: 236rpx;
  442. background: #F3F9FF;
  443. overflow: hidden;
  444. }
  445. .info {
  446. flex: 1;
  447. padding: 20rpx 0 24rpx 24rpx;
  448. .title {
  449. flex: 1;
  450. font-size: 28rpx;
  451. line-height: 40rpx;
  452. color: #333333;
  453. }
  454. }
  455. }
  456. .label-a {
  457. position: absolute;
  458. top: 12rpx;
  459. left: 12rpx;
  460. z-index: 2;
  461. height: 36rpx;
  462. padding: 0 12rpx;
  463. border-radius: 18rpx;
  464. background: linear-gradient(90deg, #FF2851 0%, #FF2851 100%);
  465. font-size: 22rpx;
  466. line-height: 36rpx;
  467. color: #FFFFFF;
  468. }
  469. .label-b {
  470. position: absolute;
  471. top: 12rpx;
  472. left: 12rpx;
  473. z-index: 2;
  474. height: 36rpx;
  475. padding: 0 12rpx 0 0;
  476. border-radius: 18rpx;
  477. background: rgba(0, 0, 0, 0.2);
  478. font-size: 22rpx;
  479. line-height: 36rpx;
  480. color: #FFFFFF;
  481. .txt {
  482. height: 36rpx;
  483. padding: 0 12rpx;
  484. border-radius: 18rpx;
  485. margin-right: 12rpx;
  486. background: linear-gradient(90deg, #208FF2 0%, #3FA6FF 98%);
  487. }
  488. }
  489. .label-c {
  490. position: absolute;
  491. top: 12rpx;
  492. left: 12rpx;
  493. z-index: 2;
  494. height: 36rpx;
  495. padding: 0 12rpx;
  496. border-radius: 18rpx;
  497. background: linear-gradient(90deg, #6D80AC 0%, #889EBD 100%);
  498. font-size: 22rpx;
  499. line-height: 36rpx;
  500. color: #FFFFFF;
  501. }
  502. .goods-wrapper {
  503. margin-top: 16rpx;
  504. .goods-item {
  505. position: relative;
  506. width: 96rpx;
  507. height: 96rpx;
  508. }
  509. .money {
  510. position: absolute;
  511. right: 0;
  512. bottom: 0;
  513. left: 0;
  514. height: 26rpx;
  515. background: rgba(0, 0, 0, 0.3);
  516. text-align: center;
  517. font-size: 22rpx;
  518. line-height: 26rpx;
  519. color: #FFFFFF;
  520. }
  521. .num {
  522. position: absolute;
  523. top: 0;
  524. left: 0;
  525. width: 100%;
  526. height: 100%;
  527. background: rgba(0, 0, 0, 0.35);
  528. font-size: 28rpx;
  529. color: #FEFEFE;
  530. }
  531. }
  532. }
  533. .live-wrapper-c {
  534. padding: 20rpx 0;
  535. .scroll-view {
  536. white-space: nowrap;
  537. }
  538. .live-item {
  539. display: inline-block;
  540. width: 280rpx;
  541. +.live-item {
  542. margin-left: 0 !important;
  543. }
  544. .img-box {
  545. position: relative;
  546. width: 280rpx;
  547. height: 200rpx;
  548. background: #F3F9FF;
  549. overflow: hidden;
  550. }
  551. .info {
  552. padding-top: 16rpx;
  553. .title {
  554. font-size: 28rpx;
  555. line-height: 40rpx;
  556. color: #333333;
  557. }
  558. .people {
  559. margin-top: 12rpx;
  560. font-size: 24rpx;
  561. color: #999999;
  562. .image {
  563. margin-right: 12rpx;
  564. }
  565. }
  566. }
  567. }
  568. .label-a {
  569. position: absolute;
  570. top: 0;
  571. left: 0;
  572. z-index: 2;
  573. height: 36rpx;
  574. padding: 0 12rpx;
  575. border-radius: 16rpx 0rpx 20rpx 0rpx;
  576. background: linear-gradient(90deg, #FF2851 0%, #FF2851 100%);
  577. font-size: 22rpx;
  578. line-height: 36rpx;
  579. color: #FFFFFF;
  580. .iconfont {
  581. margin-right: 8rpx;
  582. font-size: 24rpx
  583. }
  584. }
  585. .label-b {
  586. position: absolute;
  587. top: 0;
  588. left: 0;
  589. z-index: 2;
  590. height: 36rpx;
  591. padding: 0 12rpx 0 0;
  592. border-radius: 16rpx 0rpx 20rpx 0rpx;
  593. background: rgba(0, 0, 0, 0.2);
  594. font-size: 22rpx;
  595. line-height: 36rpx;
  596. color: #FFFFFF;
  597. .txt {
  598. height: 36rpx;
  599. padding: 0 12rpx;
  600. border-radius: 16rpx 0rpx 20rpx 0rpx;
  601. margin-right: 12rpx;
  602. background: linear-gradient(90deg, #208FF2 0%, #3FA6FF 98%);
  603. }
  604. }
  605. .label-c {
  606. position: absolute;
  607. top: 0;
  608. left: 0;
  609. z-index: 2;
  610. height: 36rpx;
  611. padding: 0 12rpx;
  612. border-radius: 16rpx 0rpx 20rpx 0rpx;
  613. background: linear-gradient(90deg, #6D80AC 0%, #889EBD 100%);
  614. font-size: 22rpx;
  615. line-height: 36rpx;
  616. color: #FFFFFF;
  617. }
  618. }
  619. .live-wrapper-d {
  620. padding: 20rpx;
  621. .live-item-a {
  622. position: relative;
  623. overflow: hidden;
  624. .img-box {
  625. width: 100%;
  626. height: 670rpx;
  627. background: #F3F9FF;
  628. overflow: hidden;
  629. }
  630. .info {
  631. position: absolute;
  632. right: 0;
  633. bottom: 0;
  634. left: 0;
  635. padding: 24rpx;
  636. background: rgba(0, 0, 0, 0.2);
  637. .title {
  638. font-size: 28rpx;
  639. line-height: 40rpx;
  640. color: #FFFFFF;
  641. }
  642. .people {
  643. margin-top: 12rpx;
  644. font-size: 24rpx;
  645. color: #FFFFFF;
  646. .image {
  647. margin-right: 12rpx;
  648. }
  649. }
  650. }
  651. .label-a {
  652. position: absolute;
  653. top: 24rpx;
  654. left: 0;
  655. z-index: 2;
  656. height: 40rpx;
  657. padding: 0 16rpx;
  658. border-radius: 0 20rpx 20rpx 0;
  659. background: linear-gradient(90deg, #FF2851 0%, #FF2851 100%);
  660. font-size: 22rpx;
  661. color: #FFFFFF;
  662. }
  663. .label-b {
  664. position: absolute;
  665. top: 24rpx;
  666. left: 0;
  667. z-index: 2;
  668. height: 40rpx;
  669. padding: 0 16rpx 0 0;
  670. border-radius: 0 20rpx 20rpx 0;
  671. background: rgba(0, 0, 0, 0.2);
  672. font-size: 22rpx;
  673. color: #FFFFFF;
  674. .txt {
  675. height: 40rpx;
  676. padding: 0 16rpx;
  677. border-radius: 0 20rpx 20rpx 0;
  678. margin-right: 12rpx;
  679. background: linear-gradient(90deg, #208FF2 0%, #3FA6FF 98%);
  680. }
  681. }
  682. .label-c {
  683. position: absolute;
  684. top: 24rpx;
  685. left: 0;
  686. z-index: 2;
  687. height: 40rpx;
  688. padding: 0 16rpx;
  689. border-radius: 0 20rpx 20rpx 0;
  690. background: linear-gradient(90deg, #6D80AC 0%, #889EBD 100%);
  691. font-size: 22rpx;
  692. color: #FFFFFF;
  693. }
  694. }
  695. .live-item-b {
  696. padding: 24rpx 24rpx 20rpx;
  697. border: 1rpx solid #EEEEEE;
  698. border-radius: 16rpx;
  699. margin-top: 20rpx;
  700. .title {
  701. flex: 1;
  702. font-size: 28rpx;
  703. line-height: 40rpx;
  704. color: #333333;
  705. }
  706. .people {
  707. margin-top: 16rpx;
  708. font-size: 24rpx;
  709. color: #999999;
  710. .time {
  711. padding-left: 12rpx;
  712. margin-left: 12rpx;
  713. border-left: 1rpx solid #EEEEEE;
  714. line-height: 22rpx;
  715. }
  716. }
  717. .label-a {
  718. height: 32rpx;
  719. padding: 0 12rpx;
  720. border-radius: 8rpx;
  721. margin-right: 16rpx;
  722. background: linear-gradient(90deg, #FF2851 0%, #FF2851 100%);
  723. font-size: 20rpx;
  724. color: #FFFFFF;
  725. }
  726. .label-b {
  727. height: 32rpx;
  728. padding: 0 12rpx;
  729. border-radius: 8rpx;
  730. margin-right: 16rpx;
  731. background: linear-gradient(90deg, #208FF2 0%, #3FA6FF 98%);
  732. font-size: 20rpx;
  733. color: #FFFFFF;
  734. }
  735. .label-c {
  736. height: 32rpx;
  737. padding: 0 12rpx;
  738. border-radius: 8rpx;
  739. margin-right: 16rpx;
  740. background: linear-gradient(90deg, #6D80AC 0%, #889EBD 100%);
  741. font-size: 20rpx;
  742. color: #FFFFFF;
  743. }
  744. }
  745. }
  746. .bgblue {
  747. width: 220rpx;
  748. height: 38rpx;
  749. background: rgba(0, 0, 0, 0.36);
  750. overflow: hidden;
  751. .txt {
  752. position: relative;
  753. left: -5rpx;
  754. display: flex;
  755. align-items: center;
  756. justify-content: center;
  757. width: 38px;
  758. height: 100%;
  759. text-align: center;
  760. background: linear-gradient(270deg, #2FA1F5 0%, #0076FF 100%);
  761. }
  762. }
  763. .title-box {
  764. display: flex;
  765. justify-content: space-between;
  766. align-items: center;
  767. padding: 20rpx;
  768. font-size: 32rpx;
  769. .more {
  770. display: flex;
  771. align-items: center;
  772. justify-content: center;
  773. font-size: 26rpx;
  774. color: #999;
  775. .iconfont {
  776. font-size: 26rpx;
  777. margin-top: 8rpx;
  778. }
  779. }
  780. }
  781. </style>