Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
xinhot
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7cb08242
authored
Mar 12, 2019
by
林翔
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'lx_xinhot_h5_20190307'
parents
3edacb26
5830ce40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
h5/js/index.js
h5/js/index.js
View file @
7cb08242
...
@@ -44,10 +44,7 @@ var xinhot = {
...
@@ -44,10 +44,7 @@ var xinhot = {
// var top = $(".product-mask-content").offset().top; //获取某个元素距顶部的距离
// var top = $(".product-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
$
(
"body,html"
).
css
({
"overflow"
:
"hidden"
});
$
(
"body,html"
).
css
({
"overflow"
:
"hidden"
});
$
(
"body,html"
).
css
({
"position"
:
"fixed"
},{
"top"
:
"0"
});
$
(
".container"
).
bind
(
"touchmove"
,
function
(
e
){
e
.
prevenDefault
();
});
$
.
ajax
({
$
.
ajax
({
url
:
'./json/brandData.json'
,
url
:
'./json/brandData.json'
,
...
@@ -78,10 +75,7 @@ var xinhot = {
...
@@ -78,10 +75,7 @@ var xinhot = {
// var top = $(".contact-mask-content").offset().top; //获取某个元素距顶部的距离
// var top = $(".contact-mask-content").offset().top; //获取某个元素距顶部的距离
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
// $("body,html").animate({scrollTop:(top-50)+"px"},500);
$
(
"body,html"
).
css
({
"overflow"
:
"hidden"
});
$
(
"body,html"
).
css
({
"overflow"
:
"hidden"
});
$
(
"body,html"
).
css
({
"position"
:
"fixed"
},{
"top"
:
"0"
});
$
(
".container"
).
bind
(
"touchmove"
,
function
(
e
){
e
.
prevenDefault
();
});
$
.
ajax
({
$
.
ajax
({
url
:
'./json/jobData.json'
,
url
:
'./json/jobData.json'
,
...
@@ -102,6 +96,7 @@ var xinhot = {
...
@@ -102,6 +96,7 @@ var xinhot = {
$
(
".mask-close"
).
click
(
function
(){
$
(
".mask-close"
).
click
(
function
(){
$
(
this
).
parents
(
".mask"
).
hide
();
$
(
this
).
parents
(
".mask"
).
hide
();
$
(
"body,html"
).
css
({
"overflow"
:
"auto"
});
$
(
"body,html"
).
css
({
"overflow"
:
"auto"
});
$
(
"body,html"
).
css
({
"position"
:
"relative"
},{
"top"
:
"auto"
});
});
});
}
}
}
}
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