From 1cca2b754cb5ea78dd41d689b68b78607aea5c00 Mon Sep 17 00:00:00 2001
From: luyuan <1162963624@qq.com>
Date: Wed, 11 Nov 2020 09:58:10 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=9A=84=E8=AF=84=E8=AE=BA?=
=?UTF-8?q?=E5=92=8C=E8=A7=86=E9=A2=91=E7=9A=84=E5=8E=9F=E5=9B=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/ReviewItem.vue | 2 +-
src/components/VideoReview.vue | 11 +++++++++--
src/views/regime/Livedetail.vue | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/components/ReviewItem.vue b/src/components/ReviewItem.vue
index 76693cf..f740f15 100644
--- a/src/components/ReviewItem.vue
+++ b/src/components/ReviewItem.vue
@@ -14,7 +14,7 @@
{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}
-
={{lan.$t('suoyouhuifu')}}
+
{{lan.$t('suoyouhuifu')}}
diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue
index 2e12fde..9fcad07 100644
--- a/src/components/VideoReview.vue
+++ b/src/components/VideoReview.vue
@@ -118,13 +118,20 @@ export default defineComponent({
},
setup(prop,context){
const lan: any = useI18n();
- const reviewlist=ref({})
+ const reviewlist=ref({data: []})
const commentval=ref('')
const uinfo=ref({})
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")
diff --git a/src/views/regime/Livedetail.vue b/src/views/regime/Livedetail.vue
index d8d698b..10b60d5 100644
--- a/src/views/regime/Livedetail.vue
+++ b/src/views/regime/Livedetail.vue
@@ -7,7 +7,7 @@
-
+