修复了视频评分
This commit is contained in:
parent
6f7322628e
commit
82d7a69123
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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){
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user