Commit 69401d72 by zhouzy

1

1 parent a50c382d
<template>
<div class="container">
<div class="box">
<div class="box" v-if="showBox">
<div class="top">
<div class="top-title">{{ detail.name }}直播活动</div>
<div class="iconBox" @click="copyMessage(this.massMessage)">
......@@ -13,7 +13,7 @@
<img :src="detail.postImgUrl" alt="" />
</div>
</div>
<div class="fixedButtom">
<div class="fixedButtom" v-if="showBox">
<div class="item-container">
<div class="icon-container">
<div class="icon-box" @click="share('wechat')">
......@@ -43,23 +43,31 @@
</template>
<script type='text/ecmascript-6'>
import { liveBroadcast, wxConfig } from '@/api'
import { Notify } from 'vant'
export default {
name: 'mass',
data() {
return {
detail: {},
date: ''
date: '',
showBox: true
}
},
activated() {},
deactivated() {},
mounted() {
let {taskId} = this.getQuery()
let { taskId } = this.getQuery()
//获取界面详情数据
liveBroadcast.getDetail({ taskId }).then(res => {
this.detail = res.data
console.log(this.detail.startTime, 'this.detail.startTime')
this.formatDate(this.detail.startTime, this.detail.endTime)
console.log(res,'789')
if (res.code !== '0') {
this.showBox = false
Notify(res.message)
} else if (res.code == '0') {
this.detail = res.data
console.log(this.detail.startTime, 'this.detail.startTime')
this.formatDate(this.detail.startTime, this.detail.endTime)
}
})
//初始化微信方法
window.$wx = wxConfig
......@@ -118,16 +126,17 @@ export default {
display: flex;
flex-direction: row;
position: -webkit-sticky;
position: sticky;
position: fixed;
bottom: 0;
opacity: 1;
z-index: 99;
box-sizing: border-box;
text-align: center;
padding: 20px 33px 20px 32px;
height: 76px;
background: #ffffff;
box-shadow: 0px -2px 8px 0px rgba(224, 224, 224, 0.5);
border-radius: 16px 16px 0px 0px;
width: 100%;
}
.buttomLine {
width: 134px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!