Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
baiguangyao
mr-julyedu
Commits
db32d9e6
Commit
db32d9e6
authored
Sep 23, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国际手机号
parent
6420830c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
src/components/country/index.js
+11
-1
No files found.
src/components/country/index.js
View file @
db32d9e6
...
@@ -1050,11 +1050,18 @@ class Country extends Component {
...
@@ -1050,11 +1050,18 @@ class Country extends Component {
return
''
;
return
''
;
});
});
lens
.
map
((
item
,
index
)
=>
{
lens
.
map
((
item
,
index
)
=>
{
if
(
item
&&
(
top
+
200
)
>
item
)
{
if
(
item
&&
top
>=
item
)
{
this
.
setState
({
this
.
setState
({
currentNav
:
data
[
index
][
'type'
]
currentNav
:
data
[
index
][
'type'
]
})
})
}
}
/*
if(item && (top + 200) > item) {
this.setState({
currentNav: data[index]['type']
})
}
*/
});
});
}
}
...
@@ -1075,9 +1082,12 @@ class Country extends Component {
...
@@ -1075,9 +1082,12 @@ class Country extends Component {
this
.
setState
({
this
.
setState
({
currentNav
:
param
currentNav
:
param
});
});
window
.
scrollTo
({
left
:
0
,
top
:
el
.
offsetTop
,
behavior
:
'smooth'
})
/*
el.scrollIntoView({
el.scrollIntoView({
behavior: 'smooth'
behavior: 'smooth'
});
});
*/
}
}
}
}
...
...
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