Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
9b41fdeb
Commit
9b41fdeb
authored
Dec 01, 2025
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】perf: 优化视频上传等
parent
ebf8fa50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
App.vue
src/App.vue
+1
-1
index.vue
src/components/common/UploadVideo/index.vue
+6
-6
rewardDialog.vue
src/views/videoDetail/components/rewardDialog.vue
+5
-2
index.vue
src/views/videoDetail/index.vue
+1
-1
No files found.
src/App.vue
View file @
9b41fdeb
...
...
@@ -17,6 +17,6 @@ console.log('App.vue mounted')
onMounted
(()
=>
{
setTimeout
(()
=>
{
initWxConfig
()
},
3000
)
;
},
3000
)
})
</
script
>
src/components/common/UploadVideo/index.vue
View file @
9b41fdeb
...
...
@@ -40,7 +40,7 @@
<div
class=
"video-preview"
>
<video
:src=
"videoInfo.url"
poster=
"
http://soundasia.oss-cn-shenzhen.aliyuncs.com/colleagueBar/jpg/2024/01/08/1704677467931.jp
g"
poster=
"
@/assets/img/culture/ask.pn
g"
class=
"video-thumbnail"
muted
></video>
...
...
@@ -183,15 +183,15 @@ const startUpload = async () => {
// 根据你的 API 返回结构调整
const
videoData
:
VideoInfo
=
{
// url: data.fileUrl
,
url
:
data
.
data
[
0
].
filePath
,
// 暂时写死
url
:
'https://soundasia.oss-cn-shenzhen.aliyuncs.com/OA/readName/mp4/2025/11/12/Common/1762918987602.mp4'
,
//
url: 'https://soundasia.oss-cn-shenzhen.aliyuncs.com/OA/readName/mp4/2025/11/12/Common/1762918987602.mp4',
name
:
currentFile
.
value
.
name
,
size
:
currentFile
.
value
.
size
,
duration
:
metadata
.
duration
,
resolution
:
metadata
.
resolution
,
poster
:
data
.
fileUrl
,
fileId
:
data
.
fileId
,
poster
:
data
.
data
[
0
].
filePath
,
fileId
:
data
.
data
[
0
].
fileId
,
}
videoInfo
.
value
=
videoData
...
...
@@ -358,7 +358,7 @@ const retryUpload = () => {
height
:
80px
;
border-radius
:
8px
;
overflow
:
hidden
;
background
:
#000
;
/* background: #000; */
}
.video-thumbnail
{
...
...
src/views/videoDetail/components/rewardDialog.vue
View file @
9b41fdeb
...
...
@@ -69,13 +69,16 @@ const dialogVisible = ref(false)
const
selectedAmount
=
ref
(
2
)
const
balance
=
ref
(
0
)
let
articleId
=
-
1
const
rewardOptions
=
ref
<
RewardOption
[]
>
([
{
amount
:
1
,
icon
:
'🪙'
,
selected
:
false
},
{
amount
:
2
,
icon
:
'🪙🪙'
,
selected
:
true
},
])
// 暴露 open 方法
const
open
=
()
=>
{
const
open
=
(
id
:
number
)
=>
{
articleId
=
id
dialogVisible
.
value
=
true
getYaBiDataFn
()
}
...
...
@@ -101,7 +104,7 @@ const handleConfirm = async () => {
}
await
addOrCancelArticleReward
({
articleId
:
1
,
articleId
:
articleId
,
ayabi
:
selectedAmount
.
value
,
})
ElMessage
.
success
(
'打赏成功!'
)
...
...
src/views/videoDetail/index.vue
View file @
9b41fdeb
...
...
@@ -184,7 +184,7 @@ const handleCollect = async (item: ArticleItemDto) => {
// 打赏
const
handleReward
=
()
=>
{
rewardDialogRef
.
value
?.
open
()
rewardDialogRef
.
value
?.
open
(
videoDetail
.
value
.
id
)
}
onMounted
(
async
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment