Commit 3e960554 by 张立顺

小窗直播样式调整

1 parent 0b25c8a1
<template>
<div :class="['action isFullSucreen flex', { bgBlack: bgBlack }]" v-if="show">
<div class="btn-box flex" v-show="!bgBlack">
<div class="item" @click="getPoster">
<div :class="['action isFullSucreen flex', { bgBlack: bgBlack }]"
v-if="show">
<div class="btn-box flex"
v-show="!bgBlack">
<div class="item"
@click="getPoster">
<div class="sprite-icon icon-poster"></div>
海报
</div>
......@@ -11,7 +14,10 @@
{{ detail.price }}
<span>.{{ detail.decimal }}</span>
</div>
<div :class="['btn text-center', { disabled: iSMiniprogram || detail.activityStatus == 3 || detail.buyFlag == 2 }, { short: detail.buyFlag == 3 }]" @click="submit" @touchstart="touchstart" @touchend="touchend">
<div :class="['btn text-center', { disabled: iSMiniprogram || detail.activityStatus == 3 || detail.buyFlag == 2 }, { short: detail.buyFlag == 3 }]"
@click="submit"
@touchstart="touchstart"
@touchend="touchend">
<template v-if="detail.activityStatus == 1 && detail.buyFlag != 2">预热下单</template>
<template v-else-if="detail.activityStatus == 3">活动已结束</template>
<template v-else>
......@@ -20,12 +26,22 @@
<template v-else>立即参团</template>
</template>
</div>
<pay-modal v-model="showModal" :list="formList" @cancel="showModal = false" @pay="checkOut" :payStatus="payStatus" :carInfo="carInfo" />
<van-overlay :show="showPoster" @click.self="showPoster = false">
<div class="wrapper" @click.stop>
<van-image :src="posterImg" width="100%" height="100%">
<pay-modal v-model="showModal"
:list="formList"
@cancel="showModal = false"
@pay="checkOut"
:payStatus="payStatus"
:carInfo="carInfo" />
<van-overlay :show="showPoster"
@click.self="showPoster = false">
<div class="wrapper"
@click.stop>
<van-image :src="posterImg"
width="100%"
height="100%">
<template v-slot:loading>
<van-loading type="spinner" size="20" />
<van-loading type="spinner"
size="20" />
</template>
</van-image>
</div>
......@@ -41,7 +57,7 @@ export default {
watch: {
watchUpdataCarInfo: {
immediate: true,
handler (n) {
handler(n) {
let {
activityInfo: { carInfo },
activityInfo }
......@@ -52,7 +68,7 @@ export default {
},
watchInfo: {
immediate: true,
handler (n) {
handler(n) {
if (n.id) {
let [price, decimal] = this.centsToyuan(n.retailPrice).toString().split('.')
if (!decimal) decimal = '00'
......@@ -105,14 +121,14 @@ export default {
}
},
computed: {
watchInfo () {
watchInfo() {
return this.$store.state.app.activityInfo
},
watchUpdataCarInfo () {
watchUpdataCarInfo() {
return this.$store.state.app.updataCarInfo
}
},
data () {
data() {
return {
show: false,
showModal: false,
......@@ -130,11 +146,11 @@ export default {
default: false
}
},
mounted () {
mounted() {
this.iSMiniprogram = window.__wxjs_environment === 'miniprogram'
},
methods: {
submit () {
submit() {
let { detail, iSMiniprogram } = this
if (iSMiniprogram) {
this.showToast('参团请拨打短信中咨询热线')
......@@ -171,7 +187,7 @@ export default {
that.pay(data)
})
}, 1e3),
pay (orderInfo) {
pay(orderInfo) {
this.showLoading('结算中')
this.payStatus = Date.now()
shopmallApi.payOrder({
......@@ -212,7 +228,7 @@ export default {
} else this.showToast(message)
})
},
getPoster () {
getPoster() {
let { id } = this.detail
let userInfo = this.getUserInfo()
let { phone, nickName, logo } = userInfo
......@@ -305,6 +321,7 @@ export default {
font-weight: 500;
color: #ffffff;
box-sizing: border-box;
line-height: 40px;
}
.disabled {
background: #b1b1b1;
......
......@@ -349,16 +349,16 @@ export default {
}
.status {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
left: -2px;
bottom: -2px;
width: 104%;
height: 18px;
background: linear-gradient(291deg, #f6542b 0%, #ff6c47 100%), linear-gradient(270deg, rgba(255, 57, 0, 0) 0%, #ff3900 33%, #fd466f 100%);
font-size: 12px;
font-weight: 500;
color: #ffffff;
box-sizing: border-box;
padding: 0 9px;
padding: 0 10px;
.live-replayIcon {
display: inline-block;
width: 10px;
......@@ -421,12 +421,13 @@ export default {
/deep/.vjs-control-bar {
opacity: 1 !important;
bottom: 15vh;
bottom: 10vh;
background: none !important;
// background-color: rgba(0, 0, 0, 0.3);
}
.BgAction {
background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); /* 标准的语法(必须放在最后) */
// 80%,80%, rgba(0, 0, 0, 0.4),
background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(225, 225, 225, 0)); /* 标准的语法(必须放在最后) */
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!