# booking **Repository Path**: oadgj/booking ## Basic Information - **Project Name**: booking - **Description**: 预约班车小程序 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-04-13 - **Last Updated**: 2021-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 预约班车小程序 扫描以下小程序码体验,密码6个0。 ## 介绍 预约班车小程序是个人开发的云开发小程序。专门为有班车业务的公司使用的班车预约小程序。 乘客可以通过该小程序预约未来7天的班车。司机可以查看班车的预约记录。 ## 使用说明 ``` cd miniprogram npm i ``` 完成上述步骤后,使用微信开发者工具打开,修改appId,上传云函数。 打开云开发控制台,点击数据库集合,新建 group,holiday,orders,routes,user 集合。 新建高级操作,新增公司数据和路线数据 ``` db.collection('group') .add({ data: [ { "name": "公司集团", "driverPassword": "111111", "password": "000000", "createTime": new Date(), "updateTime": new Date(), } ] }) //上一条新建的id与路线关联 db.collection('routes') .add({ data: [ { "driver": "张三", "plateNumber": "粤D8888b", "number": "线路1", "createTime": new Date(), "updateTime": new Date(), "stations": [{ "name": "和平码头", "time": "7:10" }, { "name": "翔安体育馆", "time": "7:50" }, { "name": "科研中心", "time": "" }], "driverPhone": "18211111111", "gid": "公司ID", "week": [1.0, 2.0, 3.0, 4.0, 5.0], "latestAppointmentTime": "7:10", "status": 1.0, "type": 1.0, "approvedNumberber": 42.0 } ] }) ``` ## TODO 1.新建管理后台,管理线路、用户与订单。 2.新增用户反馈通道。