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
11631889
Commit
11631889
authored
Dec 31, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节目投票
parent
2bacf04d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
12 deletions
+54
-12
App.vue
src/App.vue
+1
-1
PerformRanking.css
src/assets/css/PerformRanking.css
+7
-1
PerformRanking.vue
src/components/PerformRanking.vue
+5
-3
LuckDraw.vue
src/components/playGame/LuckDraw.vue
+40
-7
Mouse.vue
src/components/playGame/Mouse.vue
+1
-0
No files found.
src/App.vue
View file @
11631889
...
@@ -132,7 +132,7 @@ export default {
...
@@ -132,7 +132,7 @@ export default {
$this
.
$PROXY
.
invoke
(
"SendBarrage"
,
'0.0 让我康康是谁在说我坏话?'
).
done
(
msg
=>
{
$this
.
$PROXY
.
invoke
(
"SendBarrage"
,
'0.0 让我康康是谁在说我坏话?'
).
done
(
msg
=>
{
console
.
log
(
msg
)
console
.
log
(
msg
)
});
});
$this
.
$PROXY
.
invoke
(
"UserVoteProgarm"
,
1
951
).
done
(
msg
=>
{
$this
.
$PROXY
.
invoke
(
"UserVoteProgarm"
,
1
755
).
done
(
msg
=>
{
console
.
log
(
'我投票了!!!!!'
)
console
.
log
(
'我投票了!!!!!'
)
});
});
$this
.
$PROXY
.
invoke
(
"JoinGame"
,
'Mouse'
).
done
(
msg
=>
{
$this
.
$PROXY
.
invoke
(
"JoinGame"
,
'Mouse'
).
done
(
msg
=>
{
...
...
src/assets/css/PerformRanking.css
View file @
11631889
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
}
}
.Program-bg
.tit-box
{
.Program-bg
.tit-box
{
left
:
0
;
left
:
0
;
top
:
0
;
top
:
10rem
;
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
width
:
100%
;
padding-top
:
2rem
;
padding-top
:
2rem
;
...
@@ -115,4 +115,10 @@
...
@@ -115,4 +115,10 @@
background
:
url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577780802950&di=733dcaea6f38f06339d495d4e3cbb644&imgtype=0&src=http%3A%2F%2Fsource.upupoo.com%2Ftheme%2F784575347%2FpreviewFix.jpg)
;
background
:
url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577780802950&di=733dcaea6f38f06339d495d4e3cbb644&imgtype=0&src=http%3A%2F%2Fsource.upupoo.com%2Ftheme%2F784575347%2FpreviewFix.jpg)
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
}
.PingFangR
{
font-family
:
'PingFangR'
;
}
.Program-bg
.tit-box
.tit
span
{
font-size
:
10rem
;
}
}
\ No newline at end of file
src/components/PerformRanking.vue
View file @
11631889
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
</
template
>
</
template
>
<img
class=
"logo"
src=
"/static/image/jiemu/logo.png"
alt=
""
>
<img
class=
"logo"
src=
"/static/image/jiemu/logo.png"
alt=
""
>
<div
class=
"tit-box"
>
<div
class=
"tit-box"
>
<p
class=
"tit
yinxiang2020
"
>
<p
class=
"tit
PingFangR
"
>
<span
v-for=
"(item, index) in dataObj.Name"
:key=
"index"
>
{{item}}
</span>
<span
v-for=
"(item, index) in dataObj.Name"
:key=
"index"
>
{{item}}
</span>
</p>
</p>
<p
class=
"tit
yinxiang2020
"
>
<p
class=
"tit
PingFangR
"
>
<span
v-for=
"(item, index) in dataObj.pp"
:key=
"index"
>
{{item}}
</span>
<span
v-for=
"(item, index) in dataObj.pp"
:key=
"index"
>
{{item}}
</span>
</p>
</p>
</div>
</div>
...
@@ -116,7 +116,9 @@ export default {
...
@@ -116,7 +116,9 @@ export default {
ResetTP
:
function
()
{
ResetTP
:
function
()
{
let
$this
=
this
let
$this
=
this
$this
.
tpStart
=
false
$this
.
tpStart
=
false
$this
.
$PROXY
.
invoke
(
"ResetProgarmVote"
,
$this
.
dataObj
.
Id
).
done
(
m
=>
{})
$this
.
$PROXY
.
invoke
(
"ResetProgarmVote"
,
$this
.
dataObj
.
Id
).
done
(
m
=>
{
console
.
log
(
'重置投票!!!!!!'
)
})
},
},
// 开始投票
// 开始投票
StartTP
:
function
()
{
StartTP
:
function
()
{
...
...
src/components/playGame/LuckDraw.vue
View file @
11631889
<
template
>
<
template
>
<div>
<div
class=
"LuckDraw"
>
<div>
{{
msg
}}
</div>
<div
class=
"mv-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/cjbj1.mp4"
autoplay=
"autoplay"
muted=
"muted"
loop=
"loop"
ref=
"homeBGvideo"
></video>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -9,14 +13,43 @@ export default {
...
@@ -9,14 +13,43 @@ export default {
name
:
'LuckDraw'
,
name
:
'LuckDraw'
,
data
()
{
data
()
{
return
{
return
{
msg
:
'抽奖'
initSize
:
{
width
:
1813
,
height
:
1020
},
videInfo
:
{
width
:
1813
,
height
:
1020
,
offsetX
:
0
,
offsetY
:
0
,
transformScale1
:
0
,
transformScale2
:
0
}
}
}
},
},
activated
()
{
created
()
{
this
.
msg
=
new
Date
()
+
'呵呵'
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
>
</
script
>
<
style
scoped
>
<
style
>
@import
"../../assets/css/LuckDraw.css"
;
</
style
>
</
style
>
src/components/playGame/Mouse.vue
View file @
11631889
...
@@ -242,6 +242,7 @@ export default {
...
@@ -242,6 +242,7 @@ export default {
mounted
()
{
mounted
()
{
let
$this
=
this
let
$this
=
this
this
.
initData
()
this
.
initData
()
// 监听游戏状态
$this
.
$PROXY
.
on
(
"getChangeMenu"
,
data
=>
{
$this
.
$PROXY
.
on
(
"getChangeMenu"
,
data
=>
{
console
.
log
(
data
.
status
)
console
.
log
(
data
.
status
)
if
(
data
.
status
===
1
)
{
if
(
data
.
status
===
1
)
{
...
...
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