feat: 全面升级为多功能校园/本地生活服务平台 - #2
Open
k123456214 wants to merge 3 commits into
Open
Conversation
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Changes
1. 移除旧版生鲜零售系统
fresh-retail/backend目录下所有 Express 后端代码,包括app.js、16个数据模型文件(如Product.js)和11个API路由文件(如products.js)。fresh-retail/frontend目录下所有 Vue 前端代码,包括App.vue、14个视图文件(如Dashboard.vue)和package.json。2. 新增微信小程序原生应用
app.js,负责用户状态、购物车和定位逻辑。app.json,定义页面路由和窗口样式。pages/index/index.js:首页。pages/food/shop/shop.js:外卖点餐店铺。pages/errand/list/list.js:跑腿服务列表。pages/market/list/list.js:二手市场商品列表。pages/community/list/list.js:社区活动列表。pages/confession/list/list.js:表白墙列表。pages/merchant/apply/apply.js:商家入驻申请。pages/forum/list/list.js:论坛帖子列表。pages/user/login/login.js:用户登录。pages/user/profile/profile.js:个人中心。3. 新增轻量级 Node.js 后端服务
server/index.js,基于 Node.js 和 Express,提供内存数据库和全量业务 API 接口。server/package.json,管理后端项目依赖。4. 新增 Taro 跨端应用
taro-app/src/app.tsx,作为 Taro 跨端应用入口,支持多端构建。taro-app/package.json,管理 Taro 项目依赖。5. 新增通用工具模块
utils/api.js,统一管理小程序 API 接口封装。utils/request.js,封装网络请求,支持拦截器和超时处理。utils/auth.js,处理用户认证、登录状态和权限校验。6. 新增预览文档
preview.html,用于小程序页面预览展示。💡 Technical Highlights
api.js和request.js,提升前后端通信的规范性和效率。auth.js统一处理用户登录和权限管理,确保系统安全。