Commit 11631889 authored by 华国豪's avatar 华国豪 🙄

节目投票

parent 2bacf04d
...@@ -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", 1951).done(msg => { $this.$PROXY.invoke("UserVoteProgarm", 1755).done(msg => {
console.log('我投票了!!!!!') console.log('我投票了!!!!!')
}); });
$this.$PROXY.invoke("JoinGame", 'Mouse').done(msg => { $this.$PROXY.invoke("JoinGame", 'Mouse').done(msg => {
......
...@@ -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
...@@ -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 () {
......
<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>
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment