This directory contains the Uni-app source code for the WeChat Mini Program.
- Framework: Uni-app (Vue 3 + TypeScript).
- UI: Built-in Uni-app components + CSS.
- API:
@/lib/api.tswith transparent encryption support.
- Node.js >= 18.
- PNPM installed.
- WeChat Developer Tools (微信开发者工具).
-
Install dependencies:
pnpm install
-
Configuration:
- Ensure
src/manifest.jsonhas the correctmp-weixin.appid. - Ensure the Backend API is running at
http://localhost:3008. - Update
src/lib/api.tsif the backend URL changes.
- Ensure
- Start the compiler:
pnpm dev:mp-weixin
- Open WeChat Developer Tools.
- Import the directory:
nexquery-ai/miniprogram/dist/dev/mp-weixin.
- Build for production:
pnpm build:mp-weixin
- Upload
dist/build/mp-weixinvia WeChat Developer Tools.
- WeChat Login: One-click login and account binding.
- Task Dashboard: View and filter available query tasks.
- Execution: Run tasks with parameter input and view results.