修复了视频评分 #121

Merged
theluyuan merged 1 commits from xbx into master 2020-11-10 02:14:35 +00:00
3 changed files with 10 additions and 4 deletions

View File

@ -232,6 +232,7 @@ interface VideoDetail{
updated_at: string;
share: number;
watch: number;
score: string;
}
export async function videodetail(data?: any,ifupdate?: number) {
@ -262,7 +263,9 @@ export async function videodetail(data?: any,ifupdate?: number) {
createdAt: res.data.created_at,
updatedAt: res.data.updated_at,
watch: res.data.watch,
share: res.data.share
share: res.data.share,
score: res.data.score
}
}

View File

@ -3,9 +3,9 @@
<div class="top">
<div class="title">
{{lan.$t('shipinpingjia')}}
<span>8.0{{lan.$t('fen')}}</span>
<span>{{videoinfo}}{{lan.$t('fen')}}</span>
</div>
<div class="score">8.0{{lan.$t('fen')}}</div>
<div class="score">{{videoinfo}}{{lan.$t('fen')}}</div>
</div>
<div class="list" v-for="(i,j) in reviewlist.data" :key="j" >
<ReviewItem
@ -111,6 +111,9 @@ export default defineComponent({
props: {
videoid: {
type: Number
},
videoinfo: {
type: String
}
},
setup(prop,context){

View File

@ -4,7 +4,7 @@
<VideoPlay :url="result.fileurl"></VideoPlay>
<VideoCont :videoid="result.videoid" :date="result.createdAt" :watch="result.watch" :share="result.share" :status="result.status"></VideoCont>
</div>
<VideoReview class="review" v-if="result.status == 1"></VideoReview>
<VideoReview :videoinfo="result.score" class="review" v-if="result.status == 1"></VideoReview>
</div>
</template>
<style lang="scss" scoped>