fix: 修复新闻详情作者字段并统一视频配置
修复新闻详情页面中作者字段从post_author改为author 将视频URL配置统一管理并添加TODO标记
Showing
3 changed files
with
6 additions
and
4 deletions
| ... | @@ -157,7 +157,6 @@ import { useTitle } from '@vueuse/core'; | ... | @@ -157,7 +157,6 @@ import { useTitle } from '@vueuse/core'; |
| 157 | import { useRouter } from 'vue-router' | 157 | import { useRouter } from 'vue-router' |
| 158 | import { showToast } from 'vant' | 158 | import { showToast } from 'vant' |
| 159 | 159 | ||
| 160 | - | ||
| 161 | // 导入接口 | 160 | // 导入接口 |
| 162 | import { homePageAPI } from '@/api/index.js' | 161 | import { homePageAPI } from '@/api/index.js' |
| 163 | 162 | ||
| ... | @@ -166,7 +165,7 @@ const router = useRouter() | ... | @@ -166,7 +165,7 @@ const router = useRouter() |
| 166 | // 页面标题 | 165 | // 页面标题 |
| 167 | useTitle('西园戒幢律寺三坛大戒法会'); | 166 | useTitle('西园戒幢律寺三坛大戒法会'); |
| 168 | 167 | ||
| 169 | -// 视频配置 | 168 | +// TODO: 视频配置 |
| 170 | const videoUrl = ref('https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4') | 169 | const videoUrl = ref('https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4') |
| 171 | 170 | ||
| 172 | const videoOptions = ref({ | 171 | const videoOptions = ref({ | ... | ... |
| ... | @@ -74,7 +74,7 @@ onMounted(async () => { | ... | @@ -74,7 +74,7 @@ onMounted(async () => { |
| 74 | title: data.post_title, | 74 | title: data.post_title, |
| 75 | content: data.post_content, | 75 | content: data.post_content, |
| 76 | publishDate: dayjs(data.post_date).format('YYYY-MM-DD HH:mm:ss'), | 76 | publishDate: dayjs(data.post_date).format('YYYY-MM-DD HH:mm:ss'), |
| 77 | - author: data.post_author, | 77 | + author: data.author, |
| 78 | coverImage: coverImage, | 78 | coverImage: coverImage, |
| 79 | } | 79 | } |
| 80 | } else { | 80 | } else { | ... | ... |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | webkit-playsinline | 10 | webkit-playsinline |
| 11 | preload="auto" | 11 | preload="auto" |
| 12 | > | 12 | > |
| 13 | - <source src="https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4" type="video/mp4" /> | 13 | + <source :src="videoUrl" type="video/mp4" /> |
| 14 | </video> | 14 | </video> |
| 15 | 15 | ||
| 16 | <!-- 黑色半透明蒙板 --> | 16 | <!-- 黑色半透明蒙板 --> |
| ... | @@ -49,6 +49,9 @@ import { useRouter } from 'vue-router' | ... | @@ -49,6 +49,9 @@ import { useRouter } from 'vue-router' |
| 49 | const router = useRouter() | 49 | const router = useRouter() |
| 50 | const isExiting = ref(false) | 50 | const isExiting = ref(false) |
| 51 | 51 | ||
| 52 | +// TODO: 视频配置 | ||
| 53 | +const videoUrl = ref('https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4') | ||
| 54 | + | ||
| 52 | // 进入应用函数 | 55 | // 进入应用函数 |
| 53 | const enterApp = () => { | 56 | const enterApp = () => { |
| 54 | isExiting.value = true | 57 | isExiting.value = true | ... | ... |
-
Please register or login to post a comment