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,54 +95,68 @@ ...@@ -89,54 +95,68 @@
// } // }
// },1500) // },1500)
//加载更多数据 //加载更多数据
let user_idends = "";
if(this.Checkuserlist.length!=0){
user_idends = this.Checkuserlist[this.Checkuserlist.length-1].user_id
}
getSignNewList({ try{
user_id:user_idends, let user_idends = "";
}).then((res)=>{ if(this.Checkuserlist.length!=0){
user_idends = this.Checkuserlist[this.Checkuserlist.length-1].user_id
if(res.code==0){ }
this.Checkuserlist = [...this.Checkuserlist,...res.data.list];//加入数据 getSignNewList({
this.usersigcount = res.data.count; user_id:user_idends,
let viedeheiht = document.getElementById("divDetail").clientHeight; }).then((res)=>{
document.getElementById('ddd').scrollTop=viedeheiht+999999;//通过scrollTop设置滚动到100位置 if(res.code==0){
this.Checkuserlist = [...this.Checkuserlist,...res.data.list];//加入数据
this.usersigcount = res.data.count;
let viedeheiht = document.getElementById("divDetail").clientHeight;
document.getElementById('ddd').scrollTop=viedeheiht+999999;//通过scrollTop设置滚动到100位置
setTimeout(()=>{
this.demoadduser();//加载更多的数据
},this.jgtime)
}
}).catch((err)=>{
//报错了也要继续请求
setTimeout(()=>{ setTimeout(()=>{
this.demoadduser();//加载更多的数据 this.demoadduser();//加载更多的数据
},this.jgtime) },this.jgtime)
} })
}).catch((err)=>{ }catch(err){
//报错了也要继续请求
setTimeout(()=>{ setTimeout(()=>{
this.demoadduser();//加载更多的数据 this.demoadduser();//加载更多的数据
},this.jgtime) },this.jgtime)
}) }
}, },
//获取数据 //获取数据
initgetdata(){ initgetdata(){
getSignNewList({ try{
getSignNewList({
}).then((res)=>{ }).then((res)=>{
console.info("res",res); console.info("res",res);
if(res.code==0){ if(res.code==0){
this.Checkuserlist = res.data.list; this.Checkuserlist = res.data.list;
this.usersigcount = res.data.count; this.usersigcount = res.data.count;
setTimeout(()=>{ setTimeout(()=>{
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位置
},500) },500)
setTimeout(()=>{ setTimeout(()=>{
this.demoadduser();//加载更多的数据 this.demoadduser();//加载更多的数据
},this.jgtime) },this.jgtime)
} }else{
}) setTimeout(()=>{
this.demoadduser();//加载更多的数据
},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,24 +239,32 @@ ...@@ -229,24 +239,32 @@
//开奖 这个最后要请求真实数据 //开奖 这个最后要请求真实数据
//请求开奖 //请求开奖
getWinner({ try{
count:this.Wintheprizenum, getWinner({
}).then((res)=>{ count:this.Wintheprizenum,
if(res.code==0){ }).then((res)=>{
this.dtuserzj = []; //设置最后的结果 if(res.code==0){
clearInterval(cls);//清除定时器 this.dtuserzj = []; //设置最后的结果
this.isshowstop = false;//隐藏停止按钮 clearInterval(cls);//清除定时器
this.dtuserzj = res.data;//赋值中奖名单 this.isshowstop = false;//隐藏停止按钮
}else{ this.dtuserzj = res.data;//赋值中奖名单
this.centerDialogVisible = false; }else{
clearInterval(cls);//清除定时器 this.centerDialogVisible = false;
this.isshowstop = false;//隐藏停止按钮 clearInterval(cls);//清除定时器
this.isshowstop = false;//隐藏停止按钮
this.dtuserzj = [];
this.$message.error(res.msg);
}
}).catch((err)=>{
this.dtuserzj = []; this.dtuserzj = [];
this.$message.error(res.msg); })
} }catch(err){
}).catch((err)=>{ this.centerDialogVisible = false;
clearInterval(cls);//清除定时器
this.isshowstop = false;//隐藏停止按钮
this.dtuserzj = []; 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