Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ik_invoicing
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_frontend
ik_invoicing
Commits
918d91e9
Commit
918d91e9
authored
Dec 30, 2016
by
小明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入 jQuery 库依赖
parent
9a714f0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
src/components/ActionSheet/index.js
+7
-7
src/index.html
+4
-0
No files found.
src/components/ActionSheet/index.js
View file @
918d91e9
...
...
@@ -34,25 +34,25 @@ class ActionSheet extends PureComponent { // eslint-disable-line react/prefer-st
}
handleDisplay
(
props
)
{
enableBodyMove
(
false
)
$
(
document
).
one
(
'turbolinks:before-cache'
,
()
=>
{
enableBodyMove
(
true
)
});
//
enableBodyMove(false)
//
$(document).one('turbolinks:before-cache', ()=> { enableBodyMove(true) });
this
.
setState
({
visible
:
true
});
$
(
'#action-sheet-container'
).
animateCSS
(
'slideInUp'
)
disableRefresh
()
//
disableRefresh()
}
handleDestroy
()
{
$
(
'#action-sheet-container'
).
animateCSS
(
'slideOutDown'
,
()
=>
{
this
.
setState
({
visible
:
false
});
enableBodyMove
(
true
)
//
enableBodyMove(true)
this
.
props
.
onHidden
&&
this
.
props
.
onHidden
();
enableRefresh
(
this
.
props
.
onSearch
)
//
enableRefresh(this.props.onSearch)
});
}
componentWillReceiveProps
(
nextProps
,
prevProps
)
{
if
(
nextProps
.
vis
i
ble
)
{
this
.
handDisplay
(
nextProps
);
if
(
nextProps
.
vis
a
ble
)
{
this
.
hand
le
Display
(
nextProps
);
}
}
...
...
src/index.html
View file @
918d91e9
...
...
@@ -8,6 +8,10 @@
<link
rel=
"manifest"
href=
"manifest.json"
>
<meta
name=
"mobile-web-app-capable"
content=
"yes"
>
<title>
爱客进销存
</title>
<script
src=
"https://code.jquery.com/jquery-1.12.4.min.js"
integrity=
"sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin=
"anonymous"
></script>
</head>
<body
id=
"mobile_dashboard_index"
>
<div
id=
"app"
></div>
...
...
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