Commit 4b567224 authored by 熊成伟's avatar 熊成伟

debug

parent af99de5f
This diff is collapsed.
...@@ -3,30 +3,12 @@ ...@@ -3,30 +3,12 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<!--<meta name="theme-color" content="#000000">-->
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!-- <!--<title>React App</title>-->
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head> </head>
<body> <body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div> <div id="root"></div>
</body> </body>
<script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script> <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
<script> <script>
...@@ -39,11 +21,4 @@ ...@@ -39,11 +21,4 @@
document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"'+'>'+'<'+'/'+'script>'); document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"'+'>'+'<'+'/'+'script>');
} }
</script> </script>
<!--<script>-->
<!--window.onload = function () {-->
<!--var load = document.body.clientHeight-->
<!--var view = document.getElementById('foot')-->
<!--view.style.height = load + 'px'-->
<!--}-->
<!--</script>-->
</html> </html>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
} }
.todo-tag{ .todo-tag{
line-height: 18px; line-height: 18px;
//width: 60px; height: 18px;
font-size: 9px; font-size: 9px;
padding: 0 5px; padding: 0 5px;
background: #2087ED; background: #2087ED;
......
...@@ -11,7 +11,7 @@ body { ...@@ -11,7 +11,7 @@ body {
html, html,
body, body,
#root { #root {
position: fixed; position: fixed;
top: 0; left: 0;right: 0; bottom: 0; top: 0; left: 0;right: 0; bottom: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -25,7 +25,7 @@ class Footer extends Component { ...@@ -25,7 +25,7 @@ class Footer extends Component {
]; ];
return ( return (
<div style={{ position: 'fixed', width: '100%', bottom: 0 }}> <div className="footer">
<TabBar <TabBar
unselectedTintColor="#949494" unselectedTintColor="#949494"
tintColor="#2E67EA" tintColor="#2E67EA"
......
...@@ -14,3 +14,8 @@ ...@@ -14,3 +14,8 @@
.am-activity-indicator.am-activity-indicator-toast{ .am-activity-indicator.am-activity-indicator-toast{
background: rgba(35,35,35, 0.5); background: rgba(35,35,35, 0.5);
} }
.footer{
width: 100%;
position: fixed;
bottom: 0;
}
...@@ -12,7 +12,11 @@ class Option extends Component { ...@@ -12,7 +12,11 @@ class Option extends Component {
onChange = () => { onChange = () => {
const input = document.getElementsByClassName("option-text"); const input = document.getElementsByClassName("option-text");
this.props.onChange(input[0].value) this.props.onChange(input[0].value)
} };
setValue = (val) => {
const input = document.getElementsByClassName("option-text");
input[0].value = val
};
render() { render() {
return ( return (
<div> <div>
...@@ -22,8 +26,8 @@ class Option extends Component { ...@@ -22,8 +26,8 @@ class Option extends Component {
<a <a
className="option-fast" className="option-fast"
onClick={() => operation([ onClick={() => operation([
{ text: '默认一', onPress: () => console.log('默认一被点击了') }, { text: '默认一', onPress: () => this.setValue('默认一') },
{ text: '默认二', onPress: () => console.log('默认二被点击了') }, { text: '默认二', onPress: () => this.setValue('默认二') },
])} ])}
> >
常用阅办意见<img alt="" src="/img/option-icon.png" className="option-icon"/> 常用阅办意见<img alt="" src="/img/option-icon.png" className="option-icon"/>
......
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