添加了选择开播

This commit is contained in:
luyuan 2020-11-10 17:57:49 +08:00
parent ff3fe09026
commit d6ceb62b3d
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
6 changed files with 36 additions and 22 deletions

View File

@ -9,7 +9,7 @@
</div> </div>
<div> <div>
<img src="@/static/images/livewatch.png" alt="" class="icon"> <img src="@/static/images/livewatch.png" alt="" class="icon">
<span>{{info.dateline}}</span> <span>{{info.tlanguage}}</span>
</div> </div>
<div> <div>
<img src="@/static/images/livetimetake.png" alt="" class="icon"> <img src="@/static/images/livetimetake.png" alt="" class="icon">
@ -17,7 +17,7 @@
</div> </div>
<div> <div>
<img src="@/static/images/shoucang.png" alt="" class="icon"> <img src="@/static/images/shoucang.png" alt="" class="icon">
<span class="score">5.0{{lan.$t('fen')}}</span> <span class="score">{{info.score}}{{lan.$t('fen')}}</span>
</div> </div>
</div> </div>
<div style="display: flex"> <div style="display: flex">

View File

@ -34,7 +34,7 @@
</div> </div>
<div class="item item1" v-if="status==2"> <div class="item item1" v-if="status==2">
<span style="flex-shrink:0">{{lan.$t('yuanyin')}}</span> <span style="flex-shrink:0">{{lan.$t('yuanyin')}}</span>
<span> {{lan.$t('yuanyintext')}} </span> <span> {{yuanyin}} </span>
</div> </div>
</div> </div>
@ -129,20 +129,23 @@ import { useRoute } from 'vue-router';
export default defineComponent({ export default defineComponent({
props:{ props:{
date:{ date: {
type:String type:String
}, },
watch:{ watch: {
type:Number type:Number
}, },
share:{ share: {
type:Number type:Number
}, },
status:{ status: {
type:Number type:Number
}, },
videoid:{ videoid: {
type:Number type:Number
},
yuanyin: {
type: String
} }
}, },
setup(){ setup(){

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="review"> <div class="review" v-if="reviewlist.data.length != 0">
<div class="top"> <div class="top">
<div class="title"> <div class="title">
{{lan.$t('shipinpingjia')}} {{lan.$t('shipinpingjia')}}

View File

@ -7,7 +7,7 @@
<LiveCount :info="liveinfo.studentlist" :livestatus="liveinfo.livestatus" :zid="liveinfo.liveid"></LiveCount> <LiveCount :info="liveinfo.studentlist" :livestatus="liveinfo.livestatus" :zid="liveinfo.liveid"></LiveCount>
</div> </div>
<VideoReview class="review" v-if="liveinfo.livestatus == 2"></VideoReview> <VideoReview class="review" v-if="liveinfo.livestatus == 2 && liveinfo.score != '0.0'" :videoinfo="liveinfo.score"></VideoReview>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -50,6 +50,9 @@
<a-modal v-model:visible="visible" title="Basic Modal" @ok="guanbi"> <a-modal v-model:visible="visible" title="Basic Modal" @ok="guanbi">
<p>{{lan.$t('querenguanbi')}}</p> <p>{{lan.$t('querenguanbi')}}</p>
</a-modal> </a-modal>
<a-modal v-model:visible="xuanze" title="提示" okText="摄像头" cancelText="屏幕分享" @ok="xianze(1)" @cancel="xianze(0)" :closable="false" :maskClosable="false">
<p>请选择开播方式</p>
</a-modal>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -548,18 +551,24 @@ export default defineComponent({
console.warn('sendMessage error:', imError); console.warn('sendMessage error:', imError);
}); });
} }
const xuanze = ref(true)
onMounted(async ()=>{ async function xianze(index: number){
const si = setInterval(async ()=>{
if(store.state.userinfo.memberid != 0 && store.state.userinfo.memberid){ if(store.state.userinfo.memberid != 0 && store.state.userinfo.memberid){
clearInterval(si); // clearInterval(si);
userSing = await usersig(store.state.userinfo.memberid); userSing = await usersig(store.state.userinfo.memberid);
init(pingmu, userSing); init(index == 0 ? pingmu : shexiang, userSing);
xuanze.value = false;
}
} }
})
}) // onMounted(async ()=>{
// const si = setInterval(async ()=>{
// })
// })
return{ return{
fenxiang, fenxiang,
@ -569,7 +578,9 @@ export default defineComponent({
visible, visible,
lan, lan,
sendtext, sendtext,
imlist imlist,
xianze,
xuanze
} }
}, },
}); });

View File

@ -2,7 +2,7 @@
<div class="videoinfo"> <div class="videoinfo">
<div class="info"> <div class="info">
<VideoPlay :url="result.fileurl"></VideoPlay> <VideoPlay :url="result.fileurl"></VideoPlay>
<VideoCont :videoid="result.videoid" :date="result.createdAt" :watch="result.watch" :share="result.share" :status="result.status"></VideoCont> <VideoCont :videoid="result.videoid" :yuanyin="result.statusdesc" :date="result.createdAt" :watch="result.watch" :share="result.share" :status="result.status"></VideoCont>
</div> </div>
<VideoReview :videoinfo="result.score" class="review" v-if="result.status == 1"></VideoReview> <VideoReview :videoinfo="result.score" class="review" v-if="result.status == 1"></VideoReview>
</div> </div>