ソースを参照

修改案例结构

wly 7 年 前
コミット
a012124035

+ 1 - 1
src/case/BillApp/src/App.js

@@ -1,7 +1,7 @@
 import React, { Component } from 'react';
 import { BrowserRouter as Router, Switch, Route} from 'react-router-dom';
 
-import NavBars from './components/Common/NavBar'
+import NavBars from './components/App/NavBar'
 import TabBarBottom from './components/App/TabBarBottom'
 
 import './App.css';

+ 0 - 0
src/case/BillApp/src/components/Common/NavBar.css → src/case/BillApp/src/components/App/NavBar.css


+ 1 - 1
src/case/BillApp/src/components/Common/NavBar.jsx → src/case/BillApp/src/components/App/NavBar.jsx

@@ -18,7 +18,7 @@ export default class NavBars extends Component{
                     <Icon key="0" type="search" style={{ marginRight: '16px' }} />,
                     <Icon key="1" type="ellipsis" />,
                 ]}
-                ><span style={{fontSize:'14px'}}>电商小程序</span>
+                ><span style={{fontSize:'14px'}}>记账小程序</span>
                 </NavBar>
             </div>
         )

+ 1 - 1
src/case/BillApp/src/components/App/TabBarBottom.jsx

@@ -48,7 +48,7 @@ class TabBarBottom extends React.Component {
   render() {
     //这里渲染一次
     return (
-      <div style={this.state.fullScreen ? { position: 'fixed', height: '100%', width: '100%', top: 0 } : { height: 400 }} className="TabBarBottom">
+      <div style={this.state.fullScreen ? { position: 'absolute', height: '100%', width: '100%', bottom: 0 } : { height: 400 }}>
         <TabBar
           unselectedTintColor="#949494"
           tintColor="#33A3F4"

+ 0 - 15
src/case/BillApp/src/index.css

@@ -1,15 +0,0 @@
-body {
-  box-sizing: border-box;
-  margin: 0;
-  padding: 0;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
-    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
-    sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-code {
-  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
-    monospace;
-}

+ 0 - 16
src/case/BillApp/src/index.js

@@ -1,16 +0,0 @@
-import React, { Component } from 'react';
-import ReactDOM from 'react-dom';
-
-import './index.css';
-import App from './App';
-import * as serviceWorker from './serviceWorker';
-//import { Button } from 'antd-mobile';
-
-ReactDOM.render(<App />, document.getElementById('root'));
-
-// If you want your app to work offline and load faster, you can change
-// unregister() to register() below. Note this comes with some pitfalls.
-// Learn more about service workers: http://bit.ly/CRA-PWA
-serviceWorker.unregister();
-
-

ファイルの差分が大きいため隠しています
+ 0 - 2
src/case/BillApp/src/logo.svg


+ 0 - 14
src/case/OrderApp/src/index.css

@@ -1,14 +0,0 @@
-body {
-  margin: 0;
-  padding: 0;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
-    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
-    sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-code {
-  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
-    monospace;
-}

+ 0 - 30
src/case/OrderApp/src/index.js

@@ -1,30 +0,0 @@
-import React, { Component } from 'react';
-import ReactDOM from 'react-dom';
-import { BrowserRouter as Router, Switch, Route} from 'react-router-dom';
-
-
-import './index.css';
-import App from './App';
-import * as serviceWorker from './serviceWorker';
-//import { Button } from 'antd-mobile';
-
-
-class MainApp extends Component{
-    render(){
-        return(
-            <Router>
-                <Route exact path="/" component={App}/>
-            </Router>
-        )
-    }
-}
-
-
-ReactDOM.render(<MainApp />, document.getElementById('root'));
-
-// If you want your app to work offline and load faster, you can change
-// unregister() to register() below. Note this comes with some pitfalls.
-// Learn more about service workers: http://bit.ly/CRA-PWA
-serviceWorker.unregister();
-
-

ファイルの差分が大きいため隠しています
+ 0 - 2
src/case/OrderApp/src/logo.svg


+ 0 - 14
src/case/ShopApp/src/index.css

@@ -1,14 +0,0 @@
-body {
-  margin: 0;
-  padding: 0;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
-    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
-    sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-code {
-  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
-    monospace;
-}

+ 0 - 33
src/case/ShopApp/src/index.js

@@ -1,33 +0,0 @@
-import React, { Component } from 'react';
-import ReactDOM from 'react-dom';
-import { BrowserRouter as Router, Switch, Route} from 'react-router-dom';
-
-
-import './index.css';
-import App from './App';
-//import { Button } from 'antd-mobile';
-
-
-class MainApp extends Component{
-        render(){
-            return(
-                <Router>
-                    <Switch>
-                        <Route exact path="/" render={() => {
-                            return <App />;
-                        }}/>
-                    </Switch>
-                </Router>
-            )
-        }
-    }
-
-
-ReactDOM.render(<MainApp />, document.getElementById('root'));
-
-// If you want your app to work offline and load faster, you can change
-// unregister() to register() below. Note this comes with some pitfalls.
-// Learn more about service workers: http://bit.ly/CRA-PWA
-serviceWorker.unregister();
-
-

ファイルの差分が大きいため隠しています
+ 0 - 2
src/case/ShopApp/src/logo.svg


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません