diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 0373277..8e9bd41 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -27,7 +27,12 @@ "Bash(curl -X POST http://localhost:3000/api/orders/1/pay -H \"Content-Type: application/json\" -H \"Authorization: Bearer test\" -d '{\"paymentMethod\":\"wechat\"}' -v)", "Bash(curl -X POST http://localhost:3000/api/orders/1/pay -v)", "Bash(xargs grep -l \"jwt\\\\|JWT\")", - "Bash(xargs grep -l \"invite\")" + "Bash(xargs grep -l \"invite\")", + "Bash(curl -s -X POST http://localhost:3000/api/auth/login/phone -H \"Content-Type: application/json\" -d '{\"phone\":\"13800138000\",\"code\":\"123456\"}')", + "Bash(python3 -c \"import sys, json; data=json.load\\(sys.stdin\\); token=data['data']['accessToken']; import jwt; decoded=jwt.decode\\(token, options={'verify_signature': False}\\); print\\(f\\\\\"iat: {decoded['iat']}, exp: {decoded['exp']}, duration: {decoded['exp']-decoded['iat']} seconds \\({\\(decoded['exp']-decoded['iat']\\)/3600} hours\\)\\\\\"\\)\")", + "Bash(curl -s -X GET http://localhost:3000/api/orders -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwicGhvbmUiOiIxMzgwMDEzODAwMCIsImlhdCI6MTc3ODM4MTc2NywiZXhwIjoxNzc4Mzg4OTY3fQ.-jcY69afC6O6CtKtOj6tRaoiknypwDfvpXYhpz95rVE\")", + "Bash(pnpm install *)", + "Bash(pnpm dev:mp-weixin)" ] } } diff --git a/apps/miniapp/package.json b/apps/miniapp/package.json index 3938317..50d0dca 100644 --- a/apps/miniapp/package.json +++ b/apps/miniapp/package.json @@ -42,7 +42,8 @@ "@dcloudio/vite-plugin-uni": "3.0.0-5000720260410001", "@types/node": "^22.0.0", "@vue/runtime-core": "^3.4.21", - "sass": "^1.77.0", + "sass": "^1.83.0", + "sass-embedded": "^1.83.0", "typescript": "^5.5.0", "vite": "^5.2.8" } diff --git a/apps/miniapp/src/pages/seller/home.vue b/apps/miniapp/src/pages/seller/home.vue index 5f40980..9cd5dc1 100644 --- a/apps/miniapp/src/pages/seller/home.vue +++ b/apps/miniapp/src/pages/seller/home.vue @@ -1,21 +1,53 @@