Files
ops2/.workbuddy/memory/2026-04-14.md
T
2026-04-14 20:08:35 +08:00

37 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-04-14 工作日志
## 今日完成
### uni-app 移动端开发
#### 基础架构
- 创建 `pages/login/login.vue` - 登录页面(组合式 API + vue-i18n
- 创建 `pages/register/register.vue` - 注册页面
- 创建 `pages/index/index.vue` - 首页(订单统计、快捷操作)
- 创建 `pages/settings/apiConfig.vue` - API 配置页面
- 更新 `pages.json` - 添加 tabBar 配置
- 更新 `main.js` - 支持本地存储覆盖 API(默认 http://192.168.13.105/api/
- 更新 `App.vue` - 初始化全局 API 地址
- 创建 `static/tabbar/` - 底部导航图标(home/settings
#### i18n 国际化
- 创建 `locales/zh.js` / `locales/en.js` - 中英文语言包
- 切换到 vue-i18n(组合式 API
- 支持中英文切换(中文/EN
#### 技术栈
- uni-app + Vue3 Composition API
- vue-i18n 国际化
- 组合式 API (<script setup>)
### 系统架构确认
- backend/my_work: Go+Gin+GORM 后端
- frontend/ops_vue_js: Vue3 Web 端
- frontend/ops_uniapp: uni-app 移动端
### API 端点
- 默认地址: http://192.168.13.105/api/
- 登录: POST /users/login
- 注册: POST /users/register
- 订单统计: POST /purchase/getordercount