直播的评论和视频的原因

This commit is contained in:
luyuan 2020-11-11 09:58:10 +08:00
parent 9f03f3b3cc
commit 1cca2b754c
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 11 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<div class="num">{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}</div>
</div>
<div class="all" @click="findall(replyid)" >
<span>={{lan.$t('suoyouhuifu')}}</span>
<span>{{lan.$t('suoyouhuifu')}}</span>
<img src="@/static/images/arrowdownblue.png" alt="">
</div>
</div>

View File

@ -118,13 +118,20 @@ export default defineComponent({
},
setup(prop,context){
const lan: any = useI18n();
const reviewlist=ref({})
const reviewlist=ref<any>({data: []})
const commentval=ref<string>('')
const uinfo=ref<any>({})
const replylist =ref({})
const videoid=ref(useRoute().query.id)
const url = useRoute().path
onMounted(async () => {
reviewlist.value=await getcommentlist({type: 2,id: videoid.value})
let type = 1;
if(url == '/regime/livedetail'){
type = 1;
}else{
type = 2;
}
reviewlist.value=await getcommentlist({type: type,id: videoid.value})
})
console.log(useRoute().query)
console.log(store.state.userinfo.memberid,"userifno")

View File

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