Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lottery
Project
Project
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
hewenhao
lottery
Commits
eaf7c6ea
Commit
eaf7c6ea
authored
Sep 01, 2022
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ui
parent
81c693ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
LotteryResult.vue
src/components/LotteryResult.vue
+29
-4
No files found.
src/components/LotteryResult.vue
View file @
eaf7c6ea
...
@@ -165,18 +165,43 @@ export default {
...
@@ -165,18 +165,43 @@ export default {
frame
()
frame
()
}
else
if
(
len
>
3
)
{
}
else
if
(
len
>
3
)
{
const
type
=
Math
.
random
()
>
0.5
let
count
=
3
let
count
=
3
let
end
=
Date
.
now
()
+
(
5
*
1000
)
let
end
=
Date
.
now
()
+
(
5
*
1000
)
const
frame
=
()
=>
{
const
frame
=
()
=>
{
if
(
count
<
1
)
return
if
(
count
<
1
)
return
if
(
!
this
.
$attrs
.
visible
)
return
if
(
!
this
.
$attrs
.
visible
)
return
if
(
type
)
{
myConfetti
({
myConfetti
({
particleCount
:
7
,
particleCount
:
2
,
spread
:
160
,
spread
:
160
,
colors
:
colors
,
colors
:
pick
(
colors
,
2
)
,
angle
:
90
,
angle
:
315
,
origin
:
{
x
:
0.5
,
y
:
1
}
origin
:
{
x
:
0
,
y
:
0
}
})
})
myConfetti
({
particleCount
:
2
,
spread
:
160
,
colors
:
pick
(
colors
,
2
),
angle
:
225
,
origin
:
{
x
:
1
,
y
:
0
}
})
}
else
{
myConfetti
({
particleCount
:
2
,
spread
:
80
,
colors
:
pick
(
colors
,
2
),
angle
:
135
,
origin
:
{
x
:
1
,
y
:
1
}
})
myConfetti
({
particleCount
:
2
,
spread
:
80
,
colors
:
pick
(
colors
,
2
),
angle
:
45
,
origin
:
{
x
:
0
,
y
:
1
}
})
}
if
(
Date
.
now
()
<
end
)
{
if
(
Date
.
now
()
<
end
)
{
requestAnimationFrame
(
frame
)
requestAnimationFrame
(
frame
)
...
...
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