|
|
@@ -1,68 +1,131 @@
|
|
|
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
|
-
|
|
|
-## Available Scripts
|
|
|
-
|
|
|
-In the project directory, you can run:
|
|
|
-
|
|
|
-### `npm start`
|
|
|
-
|
|
|
-Runs the app in the development mode.<br>
|
|
|
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
|
-
|
|
|
-The page will reload if you make edits.<br>
|
|
|
-You will also see any lint errors in the console.
|
|
|
-
|
|
|
-### `npm test`
|
|
|
-
|
|
|
-Launches the test runner in the interactive watch mode.<br>
|
|
|
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
|
-
|
|
|
-### `npm run build`
|
|
|
-
|
|
|
-Builds the app for production to the `build` folder.<br>
|
|
|
-It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
|
-
|
|
|
-The build is minified and the filenames include the hashes.<br>
|
|
|
-Your app is ready to be deployed!
|
|
|
-
|
|
|
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
|
-
|
|
|
-### `npm run eject`
|
|
|
-
|
|
|
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
|
-
|
|
|
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
|
-
|
|
|
-Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
|
-
|
|
|
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
|
-
|
|
|
-## Learn More
|
|
|
-
|
|
|
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
|
-
|
|
|
-To learn React, check out the [React documentation](https://reactjs.org/).
|
|
|
-
|
|
|
-### Code Splitting
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
|
|
|
-
|
|
|
-### Analyzing the Bundle Size
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
|
|
|
-
|
|
|
-### Making a Progressive Web App
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
|
|
|
-
|
|
|
-### Advanced Configuration
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
|
|
|
-
|
|
|
-### Deployment
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
|
|
|
-
|
|
|
-### `npm run build` fails to minify
|
|
|
-
|
|
|
-This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
|
|
|
+## appointment (react)
|
|
|
+with react, graphql, apollo client
|
|
|
+
|
|
|
+<div align="center">
|
|
|
+ <img src="https://github.com/kulley/imgs/blob/master/appointment-react-1.jpg" width="190" >
|
|
|
+ <img src="https://github.com/kulley/imgs/blob/master/appointment-react-2.jpg" width="190">
|
|
|
+ <img src="https://github.com/kulley/imgs/blob/master/appointment-react-3.jpg" width="190" >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ ## schema
|
|
|
+ ### server 服务个体
|
|
|
+
|
|
|
+ 字段含义 | 字段名 | 字段类型 | 字段描述
|
|
|
+ ---|---|--- |---|---|--- |---
|
|
|
+ 服务标识 | id | ID | key
|
|
|
+ 服务名称 | name | String | non-null
|
|
|
+ 服务描述 | description | String |
|
|
|
+ 服务图片 | img | String
|
|
|
+ 创建时间 | createdAt | String | non-null
|
|
|
+ 更新时间 | updatedAt | String
|
|
|
+
|
|
|
+ ### service 服务列表
|
|
|
+
|
|
|
+ 字段含义 | 字段名 | 字段类型 | 字段描述
|
|
|
+ ---|---|--- |---|---|--- |---
|
|
|
+ 服务标识 | id | ID | key
|
|
|
+ 服务个体标志 | server_id | ID | non-null
|
|
|
+ 库存 | repertory_id | ID | non-null
|
|
|
+ 服务描述|description|String|
|
|
|
+ 服务价格 | price | float| non-null
|
|
|
+ 服务开始时间 | startTime | String | non-null
|
|
|
+ 服务持续时间 | lastTime | String | non-null
|
|
|
+ 创建时间 | createdAt | String | non-null
|
|
|
+ 更新时间 | updatedAt | String
|
|
|
+
|
|
|
+
|
|
|
+ ### repertory 服务库存
|
|
|
+
|
|
|
+ 字段含义 | 字段名 | 字段类型 | 字段描述|
|
|
|
+ --- | --- |--- |--- |--- |--- |---
|
|
|
+ 库存标识 | id | ID | key
|
|
|
+ 服务标识 | service_id | ID | non-null
|
|
|
+ 数量 | count | int | non-null
|
|
|
+ 创建时间 | createdAt | String | non-null
|
|
|
+ 更新时间 | updatedAt | String
|
|
|
+
|
|
|
+ ### user 用户表
|
|
|
+
|
|
|
+ 字段含义 | 字段名 | 字段类型 | 字段描述
|
|
|
+ ---|---|--- |---|---|--- |---
|
|
|
+ 用户标识 | id | ID | key
|
|
|
+ 用户微信标识 | openid | String |
|
|
|
+ 管理员标志 | admin | Stringr |
|
|
|
+ 用户名 | username | String |
|
|
|
+ 密码 | password | String |
|
|
|
+ 昵称 | nickname | String |
|
|
|
+ 手机号码 | telephone | String |
|
|
|
+ 邮箱 | email | String |
|
|
|
+ 创建时间 | createdAt | String | non-null
|
|
|
+ 更新时间 | updatedAt | String |
|
|
|
+
|
|
|
+
|
|
|
+ ### order 预约订单表
|
|
|
+
|
|
|
+ 字段含义 | 字段名 | 字段类型 | 字段描述|
|
|
|
+ ---|---|--- |---|---|--- |---
|
|
|
+ 订单编号 | id | ID | key
|
|
|
+ 顾客标识| user_id | ID|non-null
|
|
|
+ 预约的服务| service_id | ID |non-null
|
|
|
+ 订单状态 | orderStatus | String
|
|
|
+ 客户留言 | remark | String
|
|
|
+ 预约人数 | customerNumber | int
|
|
|
+ 订单联系人| contactName | String | non-null
|
|
|
+ 订单联系人电话 | contactTelephone | String | non-null
|
|
|
+ 订单付款金额 | payCount | String
|
|
|
+ 订单付款状态 | payStatus | String
|
|
|
+ 付款时间 | payTime | String
|
|
|
+ 订单创建时间 | createdAt | String | non-null
|
|
|
+ 更新时间 | updatedAt | String
|
|
|
+
|
|
|
+
|
|
|
+ ```
|
|
|
+ name,type,description
|
|
|
+ server,collection,
|
|
|
+ id,ID,key
|
|
|
+ name,String,non-null
|
|
|
+ description,String,
|
|
|
+ img,String,
|
|
|
+ createdAt,String,non-null
|
|
|
+ updatedAt,String,
|
|
|
+ service,collection,
|
|
|
+ id,ID,key
|
|
|
+ server_id,ID,non-null
|
|
|
+ repertory_id,ID,non-null
|
|
|
+ description,String,
|
|
|
+ price,float,non-null
|
|
|
+ startTime,String,non-null
|
|
|
+ lastTime,String,non-null
|
|
|
+ createdAt,String,non-null
|
|
|
+ updatedAt,String,
|
|
|
+ repertory,collection,
|
|
|
+ id,ID,key
|
|
|
+ service_id,ID,non-null
|
|
|
+ count,int,non-null
|
|
|
+ createdAt,String,non-null
|
|
|
+ updatedAt,String,
|
|
|
+ user,collection,
|
|
|
+ id,ID,key
|
|
|
+ openid,String,
|
|
|
+ admin,String,
|
|
|
+ username,String,
|
|
|
+ password,String,
|
|
|
+ telephone,String,
|
|
|
+ email,String,
|
|
|
+ createdAt,String,non-null
|
|
|
+ updatedAt,String,
|
|
|
+ order,collection,
|
|
|
+ id,ID,key
|
|
|
+ user_id,ID,
|
|
|
+ service_id,ID,
|
|
|
+ orderStatus,String,
|
|
|
+ remark,String,
|
|
|
+ customerNumber,int,
|
|
|
+ contactName,String,non-null
|
|
|
+ contactTelephone,String,non-null
|
|
|
+ payCount,String,
|
|
|
+ payStatus,String,
|
|
|
+ payTime,String,
|
|
|
+ createdAt,String,non-null
|
|
|
+ updatedAt,String,
|
|
|
+ ```
|