Commit 3e960554 by 张立顺

小窗直播样式调整

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