Commit 0f70c03f by chenwq

商品未配置

1 parent c978a0ee
...@@ -7,7 +7,8 @@ export default { ...@@ -7,7 +7,8 @@ export default {
data: { data: {
method: 'scrm.api.shopmall.weapp.activity.detail', method: 'scrm.api.shopmall.weapp.activity.detail',
id id
} },
returnAll: true
}) })
}, },
/**参团人数 */ /**参团人数 */
...@@ -17,7 +18,8 @@ export default { ...@@ -17,7 +18,8 @@ export default {
data: { data: {
method: 'scrm.api.shopmall.weapp.activity.group', method: 'scrm.api.shopmall.weapp.activity.group',
id, id,
} },
returnAll: true
}) })
}, },
/** 创建订单(立即购买) */ /** 创建订单(立即购买) */
......
...@@ -35,6 +35,28 @@ ...@@ -35,6 +35,28 @@
.layout { .layout {
padding-bottom: 100px; padding-bottom: 100px;
.empty-page {
position: absolute;
top: 0;
left: 0;
bottom: 0;
box-sizing: border-box;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 14px;
color: #ACACAC;
}
.empty-img {
width: 223px;
height: 120px;
margin-bottom: 30px;
}
.to-top { .to-top {
position: fixed; position: fixed;
right: 10px; right: 10px;
...@@ -510,4 +532,4 @@ ...@@ -510,4 +532,4 @@
height: 21px; height: 21px;
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -4,15 +4,16 @@ ...@@ -4,15 +4,16 @@
<div class="mask" @click="openFullscreen"> <div class="mask" @click="openFullscreen">
<div class="sprite-icon icon-live-close" @click="handleClose"></div> <div class="sprite-icon icon-live-close" @click="handleClose"></div>
<div class="status flex"> <div class="status flex">
<div class="live-line"> <div v-if="liveStatus[liveDetail.status] == 'live'" class="live-line">
<div class="side"></div> <div class="side"></div>
<div class="center side"></div> <div class="center side"></div>
<div class="side"></div> <div class="side"></div>
</div> </div>
<div class="text">正在直播</div> <div class="text">{{liveStatus[liveDetail.status] == 'live' ? '正在直播' : '直播回放' }}</div>
</div> </div>
<template v-if="isShowGif"> <template v-if="isShowGif">
<img src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif" alt="" /> <img v-if="liveStatus[liveDetail.status] == 'live'" src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif" alt="" />
<img v-else src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif" alt="" />
</template> </template>
</div> </div>
<div class="fullscreen-btn" @click="openFullscreen(false)"> <div class="fullscreen-btn" @click="openFullscreen(false)">
...@@ -37,10 +38,12 @@ export default { ...@@ -37,10 +38,12 @@ export default {
videoFullscreen: false, videoFullscreen: false,
showKf: false, showKf: false,
isShowGif: false, isShowGif: false,
// detail: { videoStyle: '',
// customerServiceQrImg: 'https://img02.glsx.com.cn/weapp/resource/h5/images/123.png' liveStatus: {
// }, 0: 'ready',
videoStyle: '' 1: 'live',
2: 'end'
}
} }
}, },
props: { props: {
...@@ -75,31 +78,20 @@ export default { ...@@ -75,31 +78,20 @@ export default {
// bind them together // bind them together
_this.hls.attachMedia(_this.video) _this.hls.attachMedia(_this.video)
} }
_this.player = TCPlayer('player-container-id', { let playParams = {
// fileID: '387702305074716718', // 点播ID
// appID: '1311227058', // 点播APPID
// src: 'webrtc://play.glsx.com.cn/crowdFunding/7f65f8f80989b46',
autoplay: true, // 自动播放 autoplay: true, // 自动播放
loop: true, // 循环播放 loop: true, // 循环播放
volume: 1, // muted: false, // 是否静音
muted: false, // 是否静音
controlBar: { // 控制条配置 controlBar: { // 控制条配置
// fullscreenToggle: false // 隐藏全屏按钮 fullscreenToggle: false // 隐藏全屏按钮
playToggle: false,
progressControl: false,
// volumePanel: false,
currentTimeDisplay: false,
durationDisplay: false,
timeDivider: false,
playbackRateMenuButton: false,
fullscreenToggle: false,
QualitySwitcherMenuButton: false
}, },
webrtcConfig: { // webrtcConfig 参数列表 webrtcConfig: { // webrtcConfig 参数列表
showLog: true // 打印webrtc日志 showLog: true // 打印webrtc日志
} }
}) }
_this.player.src('webrtc://play.glsx.com.cn/live/live_normal') _this.player = TCPlayer('player-container-id', playParams)
let src = this.liveStatus[this.liveDetail.status] == 'live' ? this.liveDetail.playPath : (this.liveDetail.liveBroadcastRecordingFileList.length ? this.liveDetail.liveBroadcastRecordingFileList[0].videoUrl : '')
_this.player.src(src)
wx.getNetworkType({ wx.getNetworkType({
success: (result) => { success: (result) => {
_this.player.ready(function () { // 设置播放器初始化完成后的回调 _this.player.ready(function () { // 设置播放器初始化完成后的回调
...@@ -109,12 +101,12 @@ export default { ...@@ -109,12 +101,12 @@ export default {
}) })
} }
}) })
_this.player.on('play', () => { // _this.player.on('play', () => {
this.changeGifStatus() // this.changeGifStatus()
}) // })
_this.player.on('pause', () => { // _this.player.on('pause', () => {
this.changeGifStatus() // this.changeGifStatus()
}) // })
_this.dealTcPlayerErr14() _this.dealTcPlayerErr14()
}) })
}, },
...@@ -125,6 +117,7 @@ export default { ...@@ -125,6 +117,7 @@ export default {
let [volumePanel] = document.getElementsByClassName('vjs-volume-panel ') let [volumePanel] = document.getElementsByClassName('vjs-volume-panel ')
let [volume] = volumePanel.getElementsByClassName('vjs-mute-control') let [volume] = volumePanel.getElementsByClassName('vjs-mute-control')
volume.click() volume.click()
console.log(volume)
this.player.play() this.player.play()
this.videoFullscreen = status this.videoFullscreen = status
live.id = status ? '' : 'live-box' live.id = status ? '' : 'live-box'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!