| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061 |
- <template>
- <!-- 小程序直播 -->
- <!-- #ifdef MP -->
- <view v-show="!isSortType">
- <common-wrapper :config="configData">
- <view class="mb-config" :style="[liveStyle]">
- <template v-if="dataConfig.styleConfig.tabVal == 0">
- <view class="live-wrapper-a">
- <navigator
- class="live-item-a"
- v-for="item in liveList"
- :key="item.id"
- :style="[liveWrapStyle]"
- :url="
- 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' +
- item.room_id +
- '&custom_params=' +
- customParams
- "
- hover-class="none"
- >
- <view class="img-box">
- <view
- class="label-a acea-row row-middle"
- v-if="item.live_status == 101"
- >
- <text class="iconfont icon-ic_video1"></text>
- <text>{{ $t(`直播中`) }}</text>
- </view>
- <view
- class="label-b acea-row row-middle"
- v-else-if="item.live_status == 102"
- >
- <view class="txt acea-row row-middle">{{ $t(`预告`) }}</view>
- <view class="msg">{{ item.show_time }}</view>
- </view>
- <view
- class="label-c acea-row row-middle"
- v-else-if="item.live_status == 103"
- >
- <text>{{ $t(`回放`) }}</text>
- </view>
- <easy-loadimage
- mode="widthFix"
- :image-src="item.cover_img"
- :borderRadius="imgStyle"
- width="100%"
- height="400rpx"
- ></easy-loadimage>
- </view>
- <view class="info">
- <view class="title line2" v-if="titleShow">{{
- item.name
- }}</view>
- <view class="people acea-row row-middle" v-if="anchorShow">
- <image
- :src="item.anchor_img || require('@/static/images/f.png')"
- class="w-40 h-40 borderRadius20 mr-12"
- ></image>
- <text>{{ $t(`主播`) }}:{{ item.anchor_name }}</text>
- </view>
- </view>
- </navigator>
- </view>
- </template>
- <template v-else-if="dataConfig.styleConfig.tabVal == 1">
- <view class="live-wrapper-b">
- <navigator
- class="live-item acea-row"
- v-for="item in liveList"
- :key="item.id"
- :style="[liveWrapStyle]"
- :url="
- 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' +
- item.room_id +
- '&custom_params=' +
- customParams
- "
- hover-class="none"
- >
- <view class="img-box">
- <view class="label-a" v-if="item.live_status == 101">
- <text class="iconfont icon-ic_video1"></text>
- <text>{{ $t(`直播中`) }}</text>
- </view>
- <view class="label-b" v-else-if="item.live_status == 102">
- <view class="txt acea-row row-middle">{{ $t(`预告`) }}</view>
- <view class="msg">{{ item.show_time }}</view>
- </view>
- <view class="label-c" v-else-if="item.live_status == 103">
- <text>{{ $t(`回放`) }}</text>
- </view>
- <easy-loadimage
- mode="widthFix"
- :image-src="item.cover_img"
- :borderRadius="imgStyle"
- width="332rpx"
- height="236rpx"
- ></easy-loadimage>
- </view>
- <view class="info acea-row row-column">
- <view class="title line2" v-if="titleShow">{{
- item.name
- }}</view>
- <view class="goods-wrapper acea-row">
- <view
- class="goods-item mr-16"
- v-for="(goodsItem, goodsIndex) in item.goods"
- :key="goodsIndex"
- v-if="goodsIndex < 3"
- >
- <easy-loadimage
- mode="widthFix"
- :image-src="goodsItem.cover_img"
- width="96rpx"
- height="96rpx"
- borderRadius="8rpx"
- ></easy-loadimage>
- <view class="money" v-if="goodsIndex < 2"
- >{{ $t(`¥`) }}{{ goodsItem.price }}</view
- >
- <view class="num acea-row row-center-wrapper" v-else
- >+5</view
- >
- </view>
- </view>
- </view>
- </navigator>
- </view>
- </template>
- <template v-else-if="dataConfig.styleConfig.tabVal == 2">
- <view class="live-wrapper-c">
- <scroll-view class="scroll-view" scroll-x="true">
- <navigator
- class="live-item"
- v-for="item in liveList"
- :key="item.id"
- :style="[liveWrapStyle]"
- :url="
- 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' +
- item.room_id +
- '&custom_params=' +
- customParams
- "
- hover-class="none"
- >
- <view class="img-box">
- <view class="label-a" v-if="item.live_status == 101">
- <text class="iconfont icon-ic_video1"></text>
- <text>{{ $t(`直播中`) }}</text>
- </view>
- <view
- class="label-b acea-row"
- v-else-if="item.live_status == 102"
- >
- <view class="txt">{{ $t(`预告`) }}</view>
- <view class="msg">{{ item.show_time }}</view>
- </view>
- <view class="label-c" v-else-if="item.live_status == 103">
- <text>{{ $t(`回放`) }}</text>
- </view>
- <easy-loadimage
- mode="widthFix"
- :image-src="item.cover_img"
- :borderRadius="imgStyle"
- width="280rpx"
- height="200rpx"
- ></easy-loadimage>
- </view>
- <view class="info">
- <view class="title line1" v-if="titleShow">{{
- item.name
- }}</view>
- <view class="people acea-row row-middle" v-if="anchorShow">
- <image
- :src="item.anchor_img || require('@/static/images/f.png')"
- class="w-40 h-40 borderRadius20 mr-12"
- ></image>
- <text>{{ $t(`主播`) }}:{{ item.anchor_name }}</text>
- </view>
- </view>
- </navigator>
- </scroll-view>
- </view>
- </template>
- <template v-else-if="dataConfig.styleConfig.tabVal == 3">
- <view class="live-wrapper-d">
- <template v-for="(item, index) in liveList">
- <navigator
- v-if="index"
- class="live-item-b"
- :key="item.id"
- :style="[liveWrapStyle]"
- :url="
- 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' +
- item.room_id +
- '&custom_params=' +
- customParams
- "
- hover-class="none"
- >
- <view class="info">
- <view class="acea-row row-middle">
- <view
- class="label-a acea-row row-middle"
- v-if="item.live_status == 101"
- >
- <text class="iconfont icon-ic_video1"></text>
- <text>{{ $t(`直播中`) }}</text>
- </view>
- <view
- class="label-b acea-row row-middle"
- v-else-if="item.live_status == 102"
- >
- <text>{{ $t(`预告`) }}</text>
- </view>
- <view
- class="label-c acea-row row-middle"
- v-else-if="item.live_status == 103"
- >
- <text>{{ $t(`回放`) }}</text>
- <view class="title line1" v-if="titleShow">{{
- item.name
- }}</view>
- </view>
- </view>
- <view class="people acea-row row-middle" v-if="anchorShow">
- <image
- :src="item.anchor_img || require('@/static/images/f.png')"
- class="w-40 h-40 borderRadius20 mr-12"
- ></image>
- <text>{{ $t(`主播`) }}:{{ item.anchor_name }}</text>
- <text class="time">{{ item.show_time }}</text>
- </view>
- </view>
- </navigator>
- <navigator
- v-else
- class="live-item-a"
- :url="
- 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' +
- item.room_id +
- '&custom_params=' +
- customParams
- "
- hover-class="none"
- >
- <view class="img-box">
- <view class="label-a" v-if="item.live_status == 101">
- <text class="iconfont icon-ic_video1"></text>
- <text>{{ $t(`直播中`) }}</text>
- </view>
- <view
- class="label-b acea-row"
- v-else-if="item.live_status == 102"
- >
- <view class="txt">{{ $t(`预告`) }}</view>
- <view class="msg">{{ item.show_time }}</view>
- </view>
- <view
- class="label-c acea-row row-middle"
- v-else-if="item.live_status == 103"
- >
- <text>{{ $t(`回放`) }}</text>
- <easy-loadimage
- mode="widthFix"
- :image-src="item.cover_img"
- :borderRadius="imgStyle"
- width="100%"
- height="670rpx"
- ></easy-loadimage>
- </view>
- </view>
- <view
- class="info"
- :style="[imgStyle2]"
- v-if="titleShow || anchorShow"
- >
- <view class="title line1" v-if="titleShow">{{
- item.name
- }}</view>
- <view class="people acea-row row-middle" v-if="anchorShow">
- <image
- :src="item.anchor_img || require('@/static/images/f.png')"
- class="w-40 h-40 borderRadius20 mr-12"
- ></image>
- <text>{{ $t(`主播`) }}:{{ item.anchor_name }}</text>
- </view>
- </view>
- </navigator>
- </template>
- </view>
- </template>
- </view>
- </common-wrapper>
- </view>
- <!-- #endif -->
- </template>
- <script>
- import commonWrapper from "./commonWrapper.vue";
- import { mapGetters } from "vuex";
- import { getLiveList } from "@/api/api.js";
- export default {
- components: { commonWrapper },
- computed: mapGetters(["uid"]),
- name: "liveBroadcast",
- props: {
- dataConfig: {
- type: Object,
- default: () => {},
- },
- isSortType: {
- type: String | Number,
- default: 0,
- },
- },
- data() {
- return {
- listStyle: 0,
- mbConfig: 0,
- liveList: [],
- customParams: 0,
- bg: "",
- titleColor: "",
- prConfig: "",
- boxShadow: "",
- itemStyle: 0,
- };
- },
- computed: {
- imgStyle() {
- let borderRadius = `${this.dataConfig.filletImg.val * 2}rpx`;
- if (this.dataConfig.filletImg.type) {
- 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 ${
- this.dataConfig.filletImg.valList[2].val * 2
- }rpx`;
- }
- return borderRadius;
- },
- imgStyle2() {
- let borderRadius = `${this.dataConfig.filletImg.val * 2}rpx`;
- if (this.dataConfig.filletImg.type) {
- borderRadius = `0 0 ${
- this.dataConfig.filletImg.valList[3].val * 2
- }rpx ${this.dataConfig.filletImg.valList[2].val * 2}rpx`;
- }
- return {
- "border-radius": borderRadius,
- };
- },
- configData() {
- return {
- ...this.dataConfig,
- paddingConfig: {
- isAll: false,
- valList: [
- {
- val: this.dataConfig.topConfig
- ? this.dataConfig.topConfig.val
- : 0,
- },
- {
- val: this.dataConfig.prConfig ? this.dataConfig.prConfig.val : 0,
- },
- {
- val: this.dataConfig.bottomConfig
- ? this.dataConfig.bottomConfig.val
- : 0,
- },
- {
- val: this.dataConfig.prConfig ? this.dataConfig.prConfig.val : 0,
- },
- ],
- },
- marginConfig: {
- isAll: false,
- valList: [
- {
- val: this.dataConfig.mbConfig ? this.dataConfig.mbConfig.val : 0,
- },
- { val: 0 },
- { val: 0 },
- { val: 0 },
- ],
- },
- componentBgConfig: {
- color: [
- {
- item:
- this.dataConfig.bottomBgColor &&
- this.dataConfig.bottomBgColor.color &&
- this.dataConfig.bottomBgColor.color[0]
- ? this.dataConfig.bottomBgColor.color[0].item
- : "",
- },
- ],
- },
- };
- },
- liveStyle() {
- let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
- if (this.dataConfig.fillet.type) {
- 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 ${
- this.dataConfig.fillet.valList[2].val * 2
- }rpx`;
- }
- return {
- "border-radius": borderRadius,
- background: `linear-gradient(90deg, ${this.dataConfig.moduleColor.color[0].item} 0%, ${this.dataConfig.moduleColor.color[1].item} 100%)`,
- };
- },
- liveWrapStyle() {
- let marginTop = 0;
- let marginLeft = 0;
- let marginRight = 0;
- if (this.dataConfig.styleConfig.tabVal == 2) {
- marginLeft = `${this.dataConfig.liveConfig.val * 2}rpx`;
- marginRight = `${this.dataConfig.liveConfig.val * 2}rpx`;
- } else {
- marginTop = `${this.dataConfig.liveConfig.val * 2}rpx`;
- }
- return {
- "margin-top": marginTop,
- "margin-left": marginLeft,
- "margin-right": marginRight,
- };
- },
- anchorShow() {
- return this.dataConfig.checkboxInfo.type.includes(1);
- },
- titleShow() {
- return this.dataConfig.checkboxInfo.type.includes(0);
- },
- },
- watch: {
- uid: {
- handler(newV, oldValue) {
- this.getCustomParams();
- },
- immediate: true,
- deep: true,
- },
- },
- created() {},
- mounted() {
- this.getLiveList();
- },
- methods: {
- getCustomParams() {
- this.customParams = encodeURIComponent(
- JSON.stringify({
- pid: this.uid,
- }),
- );
- },
- getLiveList: function () {
- let limit = this.$config.LIMIT;
- getLiveList(
- 1,
- this.dataConfig.numberConfig.val == undefined
- ? 10
- : this.dataConfig.numberConfig.val,
- )
- .then((res) => {
- this.liveList = res.data;
- })
- .catch((res) => {});
- },
- },
- };
- </script>
- <style lang="scss">
- .pageOn {
- border-radius: 16rpx;
- }
- .label-img {
- width: 20rpx !important;
- height: 20rpx !important;
- }
- .bgred-img {
- width: 21rpx !important;
- height: 22rpx !important;
- }
- .live-wrapper {
- position: relative;
- width: 100%;
- overflow: hidden;
- border-radius: 16rpx;
- image {
- width: 100%;
- height: 400rpx;
- }
- .live-top {
- z-index: 20;
- position: absolute;
- left: 0;
- top: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- width: 180rpx;
- height: 54rpx;
- border-radius: 0rpx 0px 18rpx 0px;
- image {
- width: 30rpx;
- height: 30rpx;
- margin-right: 10rpx;
- /* #ifdef H5 */
- display: block;
- /* #endif */
- }
- }
- .live-title {
- position: absolute;
- left: 0;
- bottom: 6rpx;
- width: 100%;
- height: 70rpx;
- line-height: 70rpx;
- text-align: center;
- font-size: 30rpx;
- color: #fff;
- background: rgba(0, 0, 0, 0.35);
- }
- &.mores {
- width: 100%;
- .item {
- position: relative;
- width: 320rpx;
- display: inline-block;
- border-radius: 16rpx;
- overflow: hidden;
- margin-right: 20rpx;
- image {
- width: 320rpx;
- height: 180rpx;
- border-radius: 16rpx;
- }
- .live-title {
- height: 40rpx;
- line-height: 40rpx;
- text-align: center;
- font-size: 22rpx;
- }
- .live-top {
- width: 120rpx;
- height: 36rpx;
- font-size: 22rpx;
- image {
- width: 20rpx;
- height: 20rpx;
- }
- }
- }
- }
- }
- .live-wrapper-a {
- padding: 20rpx;
- .live-item-a {
- &:first-child {
- margin-top: 0 !important;
- }
- .img-box {
- position: relative;
- height: 400rpx;
- overflow: hidden;
- }
- .info {
- padding: 24rpx 0 0;
- .title {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .people {
- margin-top: 12rpx;
- font-size: 24rpx;
- color: #999999;
- .image {
- margin-right: 12rpx;
- }
- }
- }
- .label-a {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- background: linear-gradient(90deg, #ff2851 0%, #ff2851 100%);
- font-size: 22rpx;
- line-height: 40rpx;
- color: #ffffff;
- }
- .label-b {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx 0 0;
- border-radius: 0 20rpx 20rpx 0;
- background: rgba(0, 0, 0, 0.2);
- font-size: 22rpx;
- color: #ffffff;
- .txt {
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- margin-right: 12rpx;
- background: linear-gradient(90deg, #208ff2 0%, #3fa6ff 98%);
- }
- }
- .label-c {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- background: linear-gradient(90deg, #6d80ac 0%, #889ebd 100%);
- font-size: 22rpx;
- color: #ffffff;
- }
- }
- }
- .live-wrapper-b {
- padding: 20rpx;
- .live-item {
- &:first-child {
- margin-top: 0 !important;
- }
- .img-box {
- position: relative;
- width: 332rpx;
- height: 236rpx;
- overflow: hidden;
- }
- .info {
- flex: 1;
- padding: 20rpx 0 24rpx 20rpx;
- .title {
- flex: 1;
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- }
- }
- .label-a {
- position: absolute;
- top: 12rpx;
- left: 12rpx;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 18rpx;
- background: linear-gradient(90deg, #ff2851 0%, #ff2851 100%);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- }
- .label-b {
- position: absolute;
- top: 12rpx;
- left: 12rpx;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx 0 0;
- border-radius: 18rpx;
- background: rgba(0, 0, 0, 0.2);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- .txt {
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 18rpx;
- margin-right: 12rpx;
- background: linear-gradient(90deg, #208ff2 0%, #3fa6ff 98%);
- }
- }
- .label-c {
- position: absolute;
- top: 12rpx;
- left: 12rpx;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 18rpx;
- background: linear-gradient(90deg, #6d80ac 0%, #889ebd 100%);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- }
- .goods-wrapper {
- margin-top: 16rpx;
- .goods-item {
- position: relative;
- width: 96rpx;
- height: 96rpx;
- &:nth-child(3n) {
- margin-right: 0;
- }
- }
- .money {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 26rpx;
- background: rgba(0, 0, 0, 0.3);
- text-align: center;
- font-size: 22rpx;
- line-height: 26rpx;
- color: #ffffff;
- }
- .num {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.35);
- font-size: 28rpx;
- color: #fefefe;
- border-radius: 8rpx;
- }
- }
- }
- .live-wrapper-c {
- padding: 20rpx;
- .scroll-view {
- white-space: nowrap;
- }
- .live-item {
- display: inline-block;
- width: 280rpx;
- + .live-item {
- margin-left: 0 !important;
- }
- .img-box {
- position: relative;
- width: 280rpx;
- height: 200rpx;
- overflow: hidden;
- }
- .info {
- padding-top: 16rpx;
- .title {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .people {
- margin-top: 12rpx;
- font-size: 24rpx;
- color: #999999;
- .image {
- margin-right: 12rpx;
- }
- }
- }
- }
- .label-a {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 16rpx 0rpx 20rpx 0rpx;
- background: linear-gradient(90deg, #ff2851 0%, #ff2851 100%);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- .iconfont {
- margin-right: 8rpx;
- font-size: 24rpx;
- }
- }
- .label-b {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx 0 0;
- border-radius: 16rpx 0rpx 20rpx 0rpx;
- background: rgba(0, 0, 0, 0.2);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- .txt {
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 16rpx 0rpx 20rpx 0rpx;
- margin-right: 12rpx;
- background: linear-gradient(90deg, #208ff2 0%, #3fa6ff 98%);
- }
- }
- .label-c {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- height: 36rpx;
- padding: 0 12rpx;
- border-radius: 16rpx 0rpx 20rpx 0rpx;
- background: linear-gradient(90deg, #6d80ac 0%, #889ebd 100%);
- font-size: 22rpx;
- line-height: 36rpx;
- color: #ffffff;
- }
- }
- .live-wrapper-d {
- padding: 20rpx;
- .live-item-a {
- position: relative;
- overflow: hidden;
- .img-box {
- width: 100%;
- height: 670rpx;
- overflow: hidden;
- }
- .info {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 24rpx;
- background: rgba(0, 0, 0, 0.2);
- .title {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #ffffff;
- }
- .people {
- margin-top: 12rpx;
- font-size: 24rpx;
- color: #ffffff;
- .image {
- margin-right: 12rpx;
- }
- }
- }
- .label-a {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- background: linear-gradient(90deg, #ff2851 0%, #ff2851 100%);
- font-size: 22rpx;
- color: #ffffff;
- }
- .label-b {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx 0 0;
- border-radius: 0 20rpx 20rpx 0;
- background: rgba(0, 0, 0, 0.2);
- font-size: 22rpx;
- color: #ffffff;
- .txt {
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- margin-right: 12rpx;
- background: linear-gradient(90deg, #208ff2 0%, #3fa6ff 98%);
- }
- }
- .label-c {
- position: absolute;
- top: 24rpx;
- left: 0;
- z-index: 2;
- height: 40rpx;
- padding: 0 16rpx;
- border-radius: 0 20rpx 20rpx 0;
- background: linear-gradient(90deg, #6d80ac 0%, #889ebd 100%);
- font-size: 22rpx;
- color: #ffffff;
- }
- }
- .live-item-b {
- padding: 24rpx 24rpx 20rpx;
- border: 1rpx solid #eeeeee;
- border-radius: 16rpx;
- margin-top: 20rpx;
- .title {
- flex: 1;
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .people {
- margin-top: 16rpx;
- font-size: 24rpx;
- color: #999999;
- .time {
- padding-left: 12rpx;
- margin-left: 12rpx;
- border-left: 1rpx solid #eeeeee;
- line-height: 22rpx;
- }
- }
- .label-a {
- height: 32rpx;
- padding: 0 12rpx;
- border-radius: 8rpx;
- margin-right: 16rpx;
- background: linear-gradient(90deg, #ff2851 0%, #ff2851 100%);
- font-size: 20rpx;
- color: #ffffff;
- }
- .label-b {
- height: 32rpx;
- padding: 0 12rpx;
- border-radius: 8rpx;
- margin-right: 16rpx;
- background: linear-gradient(90deg, #208ff2 0%, #3fa6ff 98%);
- font-size: 20rpx;
- color: #ffffff;
- }
- .label-c {
- height: 32rpx;
- padding: 0 12rpx;
- border-radius: 8rpx;
- margin-right: 16rpx;
- background: linear-gradient(90deg, #6d80ac 0%, #889ebd 100%);
- font-size: 20rpx;
- color: #ffffff;
- }
- }
- }
- .bgblue {
- width: 220rpx;
- height: 38rpx;
- background: rgba(0, 0, 0, 0.36);
- overflow: hidden;
- .txt {
- position: relative;
- left: -5rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 38px;
- height: 100%;
- text-align: center;
- background: linear-gradient(270deg, #2fa1f5 0%, #0076ff 100%);
- }
- }
- .title-box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20rpx;
- font-size: 32rpx;
- .more {
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 26rpx;
- color: #999;
- .iconfont {
- font-size: 26rpx;
- margin-top: 8rpx;
- }
- }
- }
- </style>
|