Skip to content

Commit

Permalink
fix(videourl): bugs cm video cant rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKcodeXD committed Jan 7, 2024
1 parent e3252f1 commit 1774796
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/Aplayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const sources = computed(() => {
return {
src: props.videoUrl[key],
type: 'video/mp4',
label: t(key)
label: key
}
})
} else if (_.isArray(props.videoUrl)) {
Expand Down
4 changes: 2 additions & 2 deletions components/MemberPop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<el-popover placement="top" :width="300" trigger="hover" :show-after="100" transition="popshow">
<template #reference>
<ElAvatar
:src="calcZip(memberVo.avatar, '0.4x') || undefined"
:src="calcZip(memberVo?.avatar || '', '0.4x') || undefined"
class="mx-1"
:size="size || 32"
>{{ noAvatar }}</ElAvatar
Expand All @@ -11,7 +11,7 @@
<template #default>
<div class="flex">
<ElAvatar
:src="calcZip(memberVo.avatar, '0.4x') || undefined"
:src="calcZip(memberVo?.avatar || '', '0.4x') || undefined"
:size="80"
class="flex-shrink-0"
>{{ noAvatar }}</ElAvatar
Expand Down
2 changes: 1 addition & 1 deletion composables/useMovieOper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const useMovieOperate = () => {
} else {
ElMessageBox.confirm(t('pollTip'), '提示').then(async () => {
const { data } = await pollVideo(movieItem.movieId)
movieItem.loginVo && (movieItem.loginVo.isPoll = true)
if (data?.code === 200) {
ElMessage.success(t('pollSuccess'))
}
})
movieItem.loginVo.isPoll = true
}
} finally {
isLoading.value = false
Expand Down
7 changes: 3 additions & 4 deletions pages/activity/[activityId]/main.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div class="main" ref="fullpageEl">
<!-- 全屏滚动 -->
<div class="fullpage-container" ref="container" @mousewheel="onMouseWheel">
<div class="fullpage-container" ref="container">
<div class="video-container">
<Transition :name="currentAnime" mode="out-in">
<div class="video-content" v-if="movies.length">
Expand All @@ -28,7 +27,7 @@
:content="movieItem['movieName'][locale] || movieItem['movieName']['cn']"
placement="top"
>
<p class="sub-title max-w-3/5">
<p class="sub-title max-w-2/3">
{{ movieItem['movieName'][locale] || movieItem['movieName']['cn'] }}
</p>
</ElTooltip>
Expand All @@ -50,7 +49,7 @@
<MyCustomLoading v-else />
</Transition>
</div>
<div class="nav">
<div class="nav" v-if="days?.length">
<Icon
name="ant-design:caret-left-filled"
cursor="pointer"
Expand Down

0 comments on commit 1774796

Please sign in to comment.