|
|
hai 1 mes | |
|---|---|---|
| .. | ||
| api | hai 1 mes | |
| common | hai 3 meses | |
| components | hai 1 mes | |
| config | hai 1 mes | |
| graphify-out | hai 1 mes | |
| pages | hai 1 mes | |
| scripts | hai 1 mes | |
| static | hai 3 meses | |
| store | hai 3 meses | |
| stores | hai 1 mes | |
| styles | hai 1 mes | |
| uni_modules | hai 1 mes | |
| utils | hai 1 mes | |
| wxcomponents | hai 3 meses | |
| .env.example | hai 1 mes | |
| App.vue | hai 1 mes | |
| LICENSE | hai 3 meses | |
| README.md | hai 1 mes | |
| changelog.md | hai 3 meses | |
| index.html | hai 3 meses | |
| jest.config.js | hai 3 meses | |
| main.js | hai 3 meses | |
| manifest.json | hai 1 mes | |
| package-lock.json | hai 1 mes | |
| package.json | hai 1 mes | |
| pages.json | hai 1 mes | |
| template.h5.html | hai 3 meses | |
| uni.scss | hai 3 meses | |
基于 uni-app 的微信小程序工程。地磅业务 UI 使用自研 components/db-ui/*(视觉对齐 mobile-h5 Vant4 主色 #52B788)。
说明:
@vant/weapp依赖微信原生Behavior,在 uni-app H5/Vite 下会报Behavior is not defined,故地磅页不直接引用 Weapp 组件。
components/db-ui(对齐 Vant 视觉)utils/request.js / 地磅 utils/dbRequest.js工作台「地磅管理」四菜单(自 mobile-h5 迁移):
| 菜单 | 路径 |
|---|---|
| 仪表盘 | pages/db/dashboard/index |
| 计划管理 | pages/db/plans/* |
| 出入库管理 | pages/db/inventory/* |
| 地磅单管理 | pages/db/weighing/* |
pages/db/api/db.js(分包内,避免占用主包)→ /dashboard /plans /inventory /weighing(裸 JSON)api/dbOptions.js(CRM 客户/产品 + 运输车辆;主包组件共用)pages/db/utils/dbDate.jsstyles/db-theme.scss(局部主题,不改全局三墙壳色)未迁:基础资料/用户管理菜单、免登录第三方填写页。
登录 / 首页 / 待办 / 工作台 / 我的;CRM / 报销 / 运输菜单仍为灰卡。
miniprogram/(manifest.json → mp-weixin.appid 已填生产 AppID)config/env.js 的 APP_ENV
local:本机 http://127.0.0.1:8000/api(默认)test:测试门户 http://121.43.228.102:9911/apiproduction:生产 https://w.shanxiachem.com/apibackend/(local 时)→ 运行到微信开发者工具不要用「运行到微信开发者工具」产物去上传(未压缩、主包偏大)。请用:
APP_ENV=production 且 npm run release:check-api 通过已配置:pages/db、pages/bx 分包;lazyCodeLoading=requiredComponents;mp-weixin.setting.minified=true。
cd miniprogram
npm install
npm run release:check-api # 发版前:要求 APP_ENV=production
| 项 | 地址 |
|---|---|
| Web | https://w.shanxiachem.com/ |
| API | https://w.shanxiachem.com/api |
| 静态资源 | https://w.shanxiachem.com/shanxia-static/ |
| MinIO 反代 | https://w.shanxiachem.com/ruoyi |
| 微信 AppID | wx7db1ddb2a90c9425 |
微信公众平台合法域名请配置:w.shanxiachem.com(request / uploadFile / downloadFile)。
设计与计划:docs/superpowers/specs/2026-09-11-miniprogram-db-from-h5-design.md、docs/superpowers/plans/2026-09-11-miniprogram-db-from-h5.md