liveBroadcast.vue 27 KB

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