From 9f03f3b3cc5b139a5309b97bdf28820f8c0075e8 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Wed, 11 Nov 2020 09:43:03 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index b63c94e..602c62c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -233,6 +233,7 @@ interface VideoDetail{ share: number; watch: number; score: string; + statusdesc: string; } export async function videodetail(data?: any,ifupdate?: number) { @@ -264,8 +265,8 @@ export async function videodetail(data?: any,ifupdate?: number) { updatedAt: res.data.updated_at, watch: res.data.watch, share: res.data.share, - score: res.data.score - + score: res.data.score, + statusdesc: res.data.statusdesc } } -- 2.47.2 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 2/5] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=9A=84=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=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 @@ - +