Commit 918d91e9 by 小明

加入 jQuery 库依赖

parent 9a714f0c
...@@ -34,25 +34,25 @@ class ActionSheet extends PureComponent { // eslint-disable-line react/prefer-st ...@@ -34,25 +34,25 @@ class ActionSheet extends PureComponent { // eslint-disable-line react/prefer-st
} }
handleDisplay(props) { handleDisplay(props) {
enableBodyMove(false) // enableBodyMove(false)
$(document).one('turbolinks:before-cache', ()=> { enableBodyMove(true) }); // $(document).one('turbolinks:before-cache', ()=> { enableBodyMove(true) });
this.setState({visible: true}); this.setState({visible: true});
$('#action-sheet-container').animateCSS('slideInUp') $('#action-sheet-container').animateCSS('slideInUp')
disableRefresh() // disableRefresh()
} }
handleDestroy() { handleDestroy() {
$('#action-sheet-container').animateCSS('slideOutDown', ()=> { $('#action-sheet-container').animateCSS('slideOutDown', ()=> {
this.setState({visible: false}); this.setState({visible: false});
enableBodyMove(true) // enableBodyMove(true)
this.props.onHidden && this.props.onHidden(); this.props.onHidden && this.props.onHidden();
enableRefresh(this.props.onSearch) // enableRefresh(this.props.onSearch)
}); });
} }
componentWillReceiveProps(nextProps, prevProps) { componentWillReceiveProps(nextProps, prevProps) {
if (nextProps.visible) { if (nextProps.visable) {
this.handDisplay(nextProps); this.handleDisplay(nextProps);
} }
} }
......
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<title>爱客进销存</title> <title>爱客进销存</title>
<script
src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>
</head> </head>
<body id="mobile_dashboard_index"> <body id="mobile_dashboard_index">
<div id="app"></div> <div id="app"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment