Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
86d8fbd2
authored
Feb 28, 2024
by
Lays-lzq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 内嵌抽奖也增加信息限制判断
parent
8474e4eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
components/Lottery/Instant/MiniMain.vue
+13
-1
No files found.
components/Lottery/Instant/MiniMain.vue
View file @
86d8fbd2
...
@@ -231,7 +231,8 @@ export default {
...
@@ -231,7 +231,8 @@ export default {
uin
:
'users/uin'
,
uin
:
'users/uin'
,
isLogin
:
'users/isLogin'
,
isLogin
:
'users/isLogin'
,
lotteryInfo
:
'lottery/lotteryInfo'
,
lotteryInfo
:
'lottery/lotteryInfo'
,
isBindPhone
:
'users/isBindPhone'
isBindPhone
:
'users/isBindPhone'
,
premise
:
'lottery/premise'
}),
}),
prizeList
()
{
prizeList
()
{
return
this
.
lotteryInfo
.
prizeConfigs
return
this
.
lotteryInfo
.
prizeConfigs
...
@@ -330,6 +331,17 @@ export default {
...
@@ -330,6 +331,17 @@ export default {
})
})
return
return
}
}
// 前置条件未达成
if
(
!
this
.
premise
)
{
this
.
$toast
({
message
:
'请先填写信息'
,
duration
:
1500
,
onClose
:
()
=>
{
Bus
.
$emit
(
'showConfig'
)
}
})
return
}
// 次数不足
// 次数不足
if
(
this
.
lotteryInfo
.
userTimes
<=
0
)
{
if
(
this
.
lotteryInfo
.
userTimes
<=
0
)
{
this
.
$toast
(
'抽奖次数已用完'
)
this
.
$toast
(
'抽奖次数已用完'
)
...
...
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