Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-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
王立鹏
corporate-culture-qd
Commits
7da4631e
Commit
7da4631e
authored
Apr 01, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20362】 ux: 加入二次确认框等
parent
7a5c0576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
index.vue
src/views/homePage/askTab/index.vue
+1
-0
index.vue
src/views/homePage/index.vue
+9
-1
No files found.
src/views/homePage/askTab/index.vue
View file @
7da4631e
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
:ref=
"(e) => (contentRefList[index] = e as HTMLElement)"
:ref=
"(e) => (contentRefList[index] = e as HTMLElement)"
class=
"text-gray-600 text-sm sm:text-base leading-relaxed transition-all duration-300"
class=
"text-gray-600 text-sm sm:text-base leading-relaxed transition-all duration-300"
:class=
"
{ 'line-clamp-3': !item.isExpand }"
:class=
"
{ 'line-clamp-3': !item.isExpand }"
@click="openNewPage(`/questionDetail/${item.id}`)"
>
>
<template
<template
v-if=
"
v-if=
"
...
...
src/views/homePage/index.vue
View file @
7da4631e
...
@@ -394,7 +394,7 @@ import type {
...
@@ -394,7 +394,7 @@ import type {
DailyLotteryInfo
,
DailyLotteryInfo
,
}
from
'@/api'
}
from
'@/api'
import
{
TABS_REF_KEY
,
levelListOptions
}
from
'@/constants'
import
{
TABS_REF_KEY
,
levelListOptions
}
from
'@/constants'
import
{
useScrollTop
}
from
'@/hooks'
import
{
useScrollTop
,
useMessageBox
}
from
'@/hooks'
import
{
useQuestionStore
,
useActivityStore
,
useYaBiStore
}
from
'@/stores'
import
{
useQuestionStore
,
useActivityStore
,
useYaBiStore
}
from
'@/stores'
import
{
storeToRefs
}
from
'pinia'
import
{
storeToRefs
}
from
'pinia'
import
{
push
}
from
'notivue'
import
{
push
}
from
'notivue'
...
@@ -404,6 +404,7 @@ import { RewardButtonEnum } from '@/constants'
...
@@ -404,6 +404,7 @@ import { RewardButtonEnum } from '@/constants'
import
RewardButton
from
'@/components/common/RewardButton/index.vue'
import
RewardButton
from
'@/components/common/RewardButton/index.vue'
import
{
useTourStore
}
from
'@/stores'
import
{
useTourStore
}
from
'@/stores'
const
{
confirm
}
=
useMessageBox
()
const
tourStore
=
useTourStore
()
const
tourStore
=
useTourStore
()
const
{
shouldShowAskTabTour
}
=
storeToRefs
(
tourStore
)
const
{
shouldShowAskTabTour
}
=
storeToRefs
(
tourStore
)
const
breakpoints
=
useBreakpoints
(
breakpointsTailwind
)
const
breakpoints
=
useBreakpoints
(
breakpointsTailwind
)
...
@@ -526,6 +527,13 @@ const getLotteryPrizesDetail = async () => {
...
@@ -526,6 +527,13 @@ const getLotteryPrizesDetail = async () => {
const
handleLottery
=
async
()
=>
{
const
handleLottery
=
async
()
=>
{
if
(
!
lotteryPrizesDetail
.
value
?.
inRegistrationTime
)
if
(
!
lotteryPrizesDetail
.
value
?.
inRegistrationTime
)
return
push
.
error
(
`抽奖通道将于
${
lotteryPrizesDetail
.
value
?.
registrationTimeDesc
}
开启
`)
return
push
.
error
(
`抽奖通道将于
${
lotteryPrizesDetail
.
value
?.
registrationTimeDesc
}
开启
`)
// 二次确认
await confirm({
title: '提示',
message: '确定参与每日抽奖吗?',
type: 'primary',
})
await userJoinLottery()
await userJoinLottery()
getLotteryPrizesDetail()
getLotteryPrizesDetail()
refreshUserAccountData()
refreshUserAccountData()
...
...
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