Commit f278c8a4 authored by xieyishang's avatar xieyishang

addxx

parent 41ccf585
File added
......@@ -24,7 +24,7 @@
<div class="bgvideo" style="width: 100%;height: 100%;position: absolute;left:0;top: 0;z-index: -1;">
<!-- bgvideo.mp4 -->
<!-- beijvie.mp4 -->
<video src="@/assets/news/piantou.min.mp4" style="object-fit:fill;" autoplay autoplay="autoplay" autobuffer=""
<video id="videotag1" src="@/assets/news/piantou.min.mp4" style="object-fit:fill;" autoplay autoplay="autoplay" autobuffer=""
autoloop="" loop="" width="100%" height="100%"></video>
</div>
......@@ -73,6 +73,12 @@
// this.demoadduser();
this.initgetdata();
setInterval(function(){
// document.getElementsByTagName('video')[0].play();
document.getElementById("videotag1").play();
},3000)
},
methods:{
demoadduser(){
......@@ -89,18 +95,17 @@
// }
// },1500)
//加载更多数据
try{
let user_idends = "";
if(this.Checkuserlist.length!=0){
user_idends = this.Checkuserlist[this.Checkuserlist.length-1].user_id
}
getSignNewList({
user_id:user_idends,
}).then((res)=>{
if(res.code==0){
this.Checkuserlist = [...this.Checkuserlist,...res.data.list];//加入数据
this.usersigcount = res.data.count;
......@@ -117,9 +122,15 @@
this.demoadduser();//加载更多的数据
},this.jgtime)
})
}catch(err){
setTimeout(()=>{
this.demoadduser();//加载更多的数据
},this.jgtime)
}
},
//获取数据
initgetdata(){
try{
getSignNewList({
}).then((res)=>{
......@@ -132,11 +143,20 @@
document.getElementById('ddd').scrollTop=viedeheiht+999999;//通过scrollTop设置滚动到100位置
},500)
setTimeout(()=>{
this.demoadduser();//加载更多的数据
},this.jgtime)
}else{
setTimeout(()=>{
this.demoadduser();//加载更多的数据
},this.jgtime)
}
})
}catch(err){
setTimeout(()=>{
this.demoadduser();//加载更多的数据
},this.jgtime)
}
}
}
}
......
......@@ -23,7 +23,7 @@
<!-- beijvie.mp4 -->
<!-- beijvie.mp4 -->
<!-- 28.mp4 -->
<video src="@/assets/news/beijvie.min.mp4" style="object-fit:fill;" autoplay autoplay="autoplay" autobuffer=""
<video id="videotag2" src="@/assets/news/beijvie.min.mp4" style="object-fit:fill;" autoplay autoplay="autoplay" autobuffer=""
autoloop="" loop="" width="100%" height="100%"></video>
</div>
......@@ -145,6 +145,12 @@
this.initgetdata();
this.getWinnerListfun();
setInterval(function(){
// document.getElementsByTagName('video')[0].play();
document.getElementById("videotag2").play();
},3000)
},
methods: {
//获取中奖人员名单
......@@ -155,6 +161,8 @@
if(res.code==0){
this.zjusercount=res.data.list;
this.userjzlisy=res.data.count;//中奖名单
}else{
this.$message.error(res.msg);
}
})
},
......@@ -172,6 +180,8 @@
// let viedeheiht = document.getElementById("divDetail").clientHeight;
// document.getElementById('ddd').scrollTop=viedeheiht+999999;//通过scrollTop设置滚动到100位置
},1000)
}else{
this.$message.error(res.msg);
}
})
},
......@@ -229,6 +239,7 @@
//开奖 这个最后要请求真实数据
//请求开奖
try{
getWinner({
count:this.Wintheprizenum,
}).then((res)=>{
......@@ -247,6 +258,13 @@
}).catch((err)=>{
this.dtuserzj = [];
})
}catch(err){
this.centerDialogVisible = false;
clearInterval(cls);//清除定时器
this.isshowstop = false;//隐藏停止按钮
this.dtuserzj = [];
this.$message.error("网络开了点小差~");
}
},
......
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