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
96bad3c0
Commit
96bad3c0
authored
Feb 13, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 feat: 文章详情页(帖子等相关、视频、问吧)加入骨架屏
parent
e6d3866d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
index.vue
src/components/common/ArticleContent/index.vue
+0
-0
index.vue
src/views/questionDetail/index.vue
+0
-0
rewardDialog.vue
src/views/videoDetail/components/rewardDialog.vue
+13
-10
index.vue
src/views/videoDetail/index.vue
+0
-0
No files found.
src/components/common/ArticleContent/index.vue
View file @
96bad3c0
This diff is collapsed.
Click to expand it.
src/views/questionDetail/index.vue
View file @
96bad3c0
This diff is collapsed.
Click to expand it.
src/views/videoDetail/components/rewardDialog.vue
View file @
96bad3c0
...
...
@@ -54,12 +54,20 @@
</div>
<!-- 余额提示 -->
<div
class=
"text-center text-12px text-gray-400 mt-4"
>
当前余额: {{ balance }}
</div>
<div
class=
"text-center text-12px text-gray-400 mt-4"
>
当前余额: {{ yabiData.currentValue }}
</div>
</div>
</el-dialog>
</template>
<
script
setup
lang=
"ts"
>
import
{
addOrCancelArticleReward
,
getYaBiData
}
from
'@/api'
import
{
addOrCancelArticleReward
}
from
'@/api'
import
{
useYaBiStore
}
from
'@/stores'
import
{
storeToRefs
}
from
'pinia'
const
yabiStore
=
useYaBiStore
()
const
{
yabiData
}
=
storeToRefs
(
yabiStore
)
const
rewardNum
=
defineModel
<
number
>
(
'rewardNum'
,
{
required
:
true
,
default
:
0
})
interface
RewardOption
{
amount
:
number
...
...
@@ -69,7 +77,6 @@ interface RewardOption {
const
dialogVisible
=
ref
(
false
)
const
selectedAmount
=
ref
(
2
)
const
balance
=
ref
(
0
)
let
articleId
=
-
1
...
...
@@ -82,12 +89,7 @@ const rewardOptions = ref<RewardOption[]>([
const
open
=
(
id
:
number
)
=>
{
articleId
=
id
dialogVisible
.
value
=
true
getYaBiDataFn
()
}
const
getYaBiDataFn
=
async
()
=>
{
const
{
data
}
=
await
getYaBiData
()
balance
.
value
=
data
.
currentValue
yabiStore
.
fetchYaBiData
()
}
// 选择金额
...
...
@@ -100,7 +102,7 @@ const selectAmount = (amount: number) => {
// 确认打赏
const
handleConfirm
=
async
()
=>
{
if
(
balance
.
v
alue
<
selectedAmount
.
value
)
{
if
(
yabiData
.
value
.
currentV
alue
<
selectedAmount
.
value
)
{
ElMessage
.
warning
(
'余额不足,请先充值'
)
return
}
...
...
@@ -112,6 +114,7 @@ const handleConfirm = async () => {
ElMessage
.
success
(
'打赏成功!'
)
dialogVisible
.
value
=
false
rewardNum
.
value
+=
selectedAmount
.
value
yabiStore
.
fetchYaBiData
()
}
defineExpose
({
...
...
src/views/videoDetail/index.vue
View file @
96bad3c0
This diff is collapsed.
Click to expand it.
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