Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-04 13:00:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4b7beb93885c3e6dbd697058734bcaf32f882e21
4b7beb93
1 parent
e4072acc
fix: 修复新闻详情作者字段并统一视频配置
修复新闻详情页面中作者字段从post_author改为author 将视频URL配置统一管理并添加TODO标记
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
src/views/Home.vue
src/views/NewsDetail.vue
src/views/Splash.vue
src/views/Home.vue
View file @
4b7beb9
...
...
@@ -157,7 +157,6 @@ import { useTitle } from '@vueuse/core';
import { useRouter } from 'vue-router'
import { showToast } from 'vant'
// 导入接口
import { homePageAPI } from '@/api/index.js'
...
...
@@ -166,7 +165,7 @@ const router = useRouter()
// 页面标题
useTitle('西园戒幢律寺三坛大戒法会');
// 视频配置
//
TODO:
视频配置
const videoUrl = ref('https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4')
const videoOptions = ref({
...
...
src/views/NewsDetail.vue
View file @
4b7beb9
...
...
@@ -74,7 +74,7 @@ onMounted(async () => {
title: data.post_title,
content: data.post_content,
publishDate: dayjs(data.post_date).format('YYYY-MM-DD HH:mm:ss'),
author: data.
post_
author,
author: data.author,
coverImage: coverImage,
}
} else {
...
...
src/views/Splash.vue
View file @
4b7beb9
...
...
@@ -10,7 +10,7 @@
webkit-playsinline
preload="auto"
>
<source
src="https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4
" type="video/mp4" />
<source
:src="videoUrl
" type="video/mp4" />
</video>
<!-- 黑色半透明蒙板 -->
...
...
@@ -49,6 +49,9 @@ import { useRouter } from 'vue-router'
const router = useRouter()
const isExiting = ref(false)
// TODO: 视频配置
const videoUrl = ref('https://cdn.ipadbiz.cn/stdj/video/sample-10s.mp4')
// 进入应用函数
const enterApp = () => {
isExiting.value = true
...
...
Please
register
or
login
to post a comment