Commit 9efb30de authored by anxixi's avatar anxixi

积分竞猜相关功能

parent 1e289d3b
<template>
<div class="foutdiv">
<div style="bottom:100px;" class="hendtop" @click="handleScrollTop" v-if="positions">
<div style="bottom:100px;" class="hendtop hendtopguess" @click="handleScrollTop(1)" v-if="positions">
<i style="font-size: 24px;color: #9197B4;" class="iconfont icon-dingbu"></i>
</div>
<div style="bottom:170px;" class="hendtopguess" @click="handleScrollTop(2)">
<img src="../../assets/img/meguess.png" style="width: 90px;height: 85px;" alt="">
</div>
<div class="divlayoutchild">
<div>
<div>
......@@ -130,6 +133,7 @@
usertotalintegral:0,//用户总积分
israndomInt:false,//赠送积分
contsfirstBrowsing:false,
meguess:1,
userInfo:this.publicFun.getCookie("userInfo") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("userInfo"))) : null,
}
},
......@@ -166,8 +170,18 @@
this.$refs.popularguess.getselectPopularGuessList();
},
//点击返回顶部
handleScrollTop(){
handleScrollTop(state){
if(state == 1){
window.scrollTo(0, 0);
}else if(state == 2){
this.meguess = state;
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
this.$router.push({path:'/userintegral'})
}
},
handleClick(row){
this.searchs = {};
......@@ -273,8 +287,12 @@
},
//登陆成功
successlogin(){
if(this.meguess == 2){
this.$router.push({path:'/userintegral'})
}else{
this.userInfo = this.publicFun.getCookie("userInfo") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("userInfo"))) : null;
this.getselectUserFristGuess();
}
},
menu(){
let scroll = document.documentElement.scrollTop || document.body.scrollTop;
......@@ -429,10 +447,13 @@
}
}
}
.hendtop{
.hendtopguess{
cursor: pointer;
position: fixed;
right: 40px;
z-index: 99;
}
.hendtop{
border: 1px solid #E8EAF3;
background:#FFFFFF;
box-shadow:0px 2px 8px 0px rgba(0,0,0,0.1);
......@@ -440,7 +461,7 @@
width: 50px;
height: 50px;
line-height: 50px;
cursor: pointer;
}
.imgInfo{
border-radius: 3px;
......
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