Commit f278c8a4 authored by xieyishang's avatar xieyishang

addxx

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