Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEWYEARPARTY
Project
Project
Details
Activity
Releases
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
华国豪
NEWYEARPARTY
Commits
5638ff35
Commit
5638ff35
authored
Jan 03, 2020
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
倒计时
parent
d7947ea5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
43 deletions
+62
-43
LuckDraw.css
src/assets/css/LuckDraw.css
+1
-37
CountDown.vue
src/components/CountDown.vue
+58
-0
LuckDraw.vue
src/components/playGame/LuckDraw.vue
+3
-6
daojishi.mp4
static/video/daojishi.mp4
+0
-0
No files found.
src/assets/css/LuckDraw.css
View file @
5638ff35
...
...
@@ -189,41 +189,5 @@
border-radius
:
50%
;
transition
:
all
linear
1.5s
;
background-color
:
red
;
}
.head_move1
{
top
:
300%
;
width
:
150px
;
height
:
150px
;
}
.head_move2
{
left
:
300%
;
width
:
150px
;
height
:
150px
;
}
.head_move3
{
left
:
300%
;
top
:
60%
;
width
:
150px
;
height
:
150px
;
}
.head_move4
{
left
:
initial
;
right
:
300%
;
top
:
60%
;
width
:
150px
;
height
:
150px
;
}
.head_move5
{
left
:
initial
;
right
:
300%
;
top
:
50%
;
width
:
150px
;
height
:
150px
;
}
.head_move6
{
left
:
initial
;
right
:
300%
;
top
:
70%
;
width
:
150px
;
height
:
150px
;
animation
:
head_move1
4s
infinite
ease
;
}
\ No newline at end of file
src/components/CountDown.vue
0 → 100644
View file @
5638ff35
<
template
>
<div
class=
"bg_box"
:style=
"
{position: 'relative', width: `${videInfo.width}px`, height: `${videInfo.height}px`, left: `${videInfo.offsetX}px`, top: `${videInfo.offsetY}px`, transform: `scale(${videInfo.transformScale1}, ${videInfo.transformScale2})`}">
<div
class=
"bg_video_box"
>
<video
src=
"/static/video/daojishi.mp4"
autoplay=
"autoplay"
id=
"homeBGvideo"
></video>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'index'
,
data
()
{
return
{
initSize
:
{
width
:
1813
,
height
:
1020
},
videInfo
:
{
width
:
1813
,
height
:
1020
,
offsetX
:
0
,
offsetY
:
0
,
transformScale1
:
0
,
transformScale2
:
0
}
}
},
activated
()
{
var
video
=
document
.
getElementById
(
'homeBGvideo'
)
video
.
play
()
},
created
()
{
this
.
windowResize
()
},
mounted
()
{
const
that
=
this
window
.
onresize
=
()
=>
{
return
(()
=>
{
that
.
windowResize
()
})()
}
},
methods
:
{
windowResize
:
function
()
{
let
WindowW
=
window
.
innerWidth
let
WindowH
=
window
.
innerHeight
this
.
videInfo
.
transformScale1
=
WindowW
/
this
.
initSize
.
width
this
.
videInfo
.
transformScale2
=
WindowH
/
this
.
initSize
.
height
this
.
videInfo
.
offsetX
=
(
WindowW
-
this
.
initSize
.
width
)
*
0.5
this
.
videInfo
.
offsetY
=
(
WindowH
-
this
.
initSize
.
height
)
*
0.5
}
}
}
</
script
>
<
style
scoped
>
@import
"../assets/css/index.css"
;
</
style
>
src/components/playGame/LuckDraw.vue
View file @
5638ff35
...
...
@@ -151,17 +151,14 @@ export default {
headMove
:
function
()
{
let
$this
=
this
setTimeout
(
x
=>
{
$this
.
dataList2
[
$this
.
moveIndex
].
class
=
`head1
head_mov
e
${
$this
.
classIndex
}
`
$this
.
dataList2
[
$this
.
moveIndex
].
class
=
`head1
styli
e
${
$this
.
classIndex
}
`
$this
.
classIndex
++
if
(
$this
.
classIndex
>
6
){
if
(
$this
.
classIndex
>
8
){
$this
.
classIndex
=
1
}
if
(
$this
.
moveIndex
!==
0
)
{
$this
.
dataList2
[
$this
.
moveIndex
-
1
].
class
=
`head1`
}
$this
.
moveIndex
++
$this
.
headMove
()
},
5
00
)
},
1
00
)
},
// 启动抽奖
awardGo
:
function
()
{
...
...
static/video/daojishi.mp4
0 → 100644
View file @
5638ff35
File added
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