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
c87602ca
Commit
c87602ca
authored
Jun 01, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
3476c47f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
applyLogin.vue
src/components/mobile/applyLogin.vue
+16
-5
No files found.
src/components/mobile/applyLogin.vue
View file @
c87602ca
...
...
@@ -37,6 +37,7 @@
export
default
{
name
:
"applyLogin"
,
data
(){
var
screenHeight
=
window
.
innerHeight
;
return
{
codehtml
:
"getCode"
,
yzCodeForm
:
{
...
...
@@ -61,7 +62,7 @@
isEmailOrPhone
:
0
,
outSideParams
:
window
.
location
.
href
.
split
(
"?"
)?
window
.
location
.
href
.
split
(
"?"
)[
1
]:
null
,
labelPosition
:
"top"
,
isInput
:
0
,
isInput
:
0
}
},
components
:{
...
...
@@ -76,6 +77,11 @@
registerType
:
Number
,
activityId
:
""
},
computed
:{
scrollHeight
()
{
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
||
0
;
}
},
methods
:{
handleClose
(
data
){
// document.getElementsByTagName("body")[0].style.overflow = "unset";
...
...
@@ -95,9 +101,13 @@
handleFocus
(
data
){
this
.
isInput
=
data
;
setTimeout
(()
=>
{
document
.
getElementsByClassName
(
"contentWrap"
)[
0
].
style
.
bottom
=
'200px'
;
},
300
)
if
(
data
==
1
){
setTimeout
(()
=>
{
document
.
getElementsByClassName
(
"contentWrap"
)[
0
].
style
.
bottom
=
'100px'
;
},
300
)
}
else
{
document
.
getElementsByClassName
(
"contentWrap"
)[
0
].
style
.
bottom
=
0
;
}
},
...
...
@@ -108,6 +118,7 @@
if
(
navigator
.
userAgent
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)){
globalMsg
.
$emit
(
"scrollToTop"
);
}
window
.
scrollTo
(
0
,
Math
.
max
(
this
.
scrollHeight
-
1
,
0
));
},
timeOutReturn
(){
...
...
@@ -270,7 +281,7 @@
},
1000
)
}
},
}
}
,
}
</
script
>
...
...
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