Commit 918d91e9 by 小明

加入 jQuery 库依赖

parent 9a714f0c
......@@ -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.visible) {
this.handDisplay(nextProps);
if (nextProps.visable) {
this.handleDisplay(nextProps);
}
}
......
......@@ -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>
......
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