Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
9efb30de
Commit
9efb30de
authored
Sep 01, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分竞猜相关功能
parent
1e289d3b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
meguess.png
src/assets/img/meguess.png
+0
-0
integralguesslist.vue
src/views/integralpage/integralguesslist.vue
+25
-4
No files found.
src/assets/img/meguess.png
0 → 100644
View file @
9efb30de
27.5 KB
src/views/integralpage/integralguesslist.vue
View file @
9efb30de
<
template
>
<
template
>
<div
class=
"foutdiv"
>
<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>
<i
style=
"font-size: 24px;color: #9197B4;"
class=
"iconfont icon-dingbu"
></i>
</div>
</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
class=
"divlayoutchild"
>
<div>
<div>
<div>
<div>
...
@@ -130,6 +133,7 @@
...
@@ -130,6 +133,7 @@
usertotalintegral
:
0
,
//用户总积分
usertotalintegral
:
0
,
//用户总积分
israndomInt
:
false
,
//赠送积分
israndomInt
:
false
,
//赠送积分
contsfirstBrowsing
:
false
,
contsfirstBrowsing
:
false
,
meguess
:
1
,
userInfo
:
this
.
publicFun
.
getCookie
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
:
null
,
userInfo
:
this
.
publicFun
.
getCookie
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
:
null
,
}
}
},
},
...
@@ -166,8 +170,18 @@
...
@@ -166,8 +170,18 @@
this
.
$refs
.
popularguess
.
getselectPopularGuessList
();
this
.
$refs
.
popularguess
.
getselectPopularGuessList
();
},
},
//点击返回顶部
//点击返回顶部
handleScrollTop
(){
handleScrollTop
(
state
){
if
(
state
==
1
){
window
.
scrollTo
(
0
,
0
);
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
){
handleClick
(
row
){
this
.
searchs
=
{};
this
.
searchs
=
{};
...
@@ -273,8 +287,12 @@
...
@@ -273,8 +287,12 @@
},
},
//登陆成功
//登陆成功
successlogin
(){
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
.
userInfo
=
this
.
publicFun
.
getCookie
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
)))
:
null
;
this
.
getselectUserFristGuess
();
this
.
getselectUserFristGuess
();
}
},
},
menu
(){
menu
(){
let
scroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
let
scroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
...
@@ -429,10 +447,13 @@
...
@@ -429,10 +447,13 @@
}
}
}
}
}
}
.hendtop
{
.hendtopguess
{
cursor
:
pointer
;
position
:
fixed
;
position
:
fixed
;
right
:
40px
;
right
:
40px
;
z-index
:
99
;
z-index
:
99
;
}
.hendtop
{
border
:
1px
solid
#E8EAF3
;
border
:
1px
solid
#E8EAF3
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0px
2px
8px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
box-shadow
:
0px
2px
8px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
...
@@ -440,7 +461,7 @@
...
@@ -440,7 +461,7 @@
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
cursor
:
pointer
;
}
}
.imgInfo
{
.imgInfo
{
border-radius
:
3px
;
border-radius
:
3px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment