添加了选择开播
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<LiveCount :info="liveinfo.studentlist" :livestatus="liveinfo.livestatus" :zid="liveinfo.liveid"></LiveCount>
|
||||
</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>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
<a-modal v-model:visible="visible" title="Basic Modal" @ok="guanbi">
|
||||
<p>{{lan.$t('querenguanbi')}}</p>
|
||||
</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>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
@@ -548,18 +551,24 @@ export default defineComponent({
|
||||
console.warn('sendMessage error:', imError);
|
||||
});
|
||||
}
|
||||
const xuanze = ref(true)
|
||||
async function xianze(index: number){
|
||||
if(store.state.userinfo.memberid != 0 && store.state.userinfo.memberid){
|
||||
// clearInterval(si);
|
||||
userSing = await usersig(store.state.userinfo.memberid);
|
||||
init(index == 0 ? pingmu : shexiang, userSing);
|
||||
xuanze.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async ()=>{
|
||||
const si = setInterval(async ()=>{
|
||||
if(store.state.userinfo.memberid != 0 && store.state.userinfo.memberid){
|
||||
clearInterval(si);
|
||||
userSing = await usersig(store.state.userinfo.memberid);
|
||||
init(pingmu, userSing);
|
||||
|
||||
}
|
||||
})
|
||||
// onMounted(async ()=>{
|
||||
// const si = setInterval(async ()=>{
|
||||
|
||||
// })
|
||||
|
||||
})
|
||||
// })
|
||||
|
||||
|
||||
|
||||
return{
|
||||
fenxiang,
|
||||
@@ -569,7 +578,9 @@ export default defineComponent({
|
||||
visible,
|
||||
lan,
|
||||
sendtext,
|
||||
imlist
|
||||
imlist,
|
||||
xianze,
|
||||
xuanze
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="videoinfo">
|
||||
<div class="info">
|
||||
<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>
|
||||
<VideoReview :videoinfo="result.score" class="review" v-if="result.status == 1"></VideoReview>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user