liveBroadcast.vue 20 KB

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