diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 6ce76a2..cf694fe 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -88,10 +88,20 @@ "Bash(node verify-fix.js)", "Bash(ipconfig)", "Bash(cat > *)", - "Bash(mysql -h localhost -P 3306 -u root -pquan131735 rent_platform -e \"ALTER TABLE platform_withdrawals MODIFY COLUMN account_name VARCHAR\\(50\\) NULL COMMENT '账户名';\")" + "Bash(mysql -h localhost -P 3306 -u root -pquan131735 rent_platform -e \"ALTER TABLE platform_withdrawals MODIFY COLUMN account_name VARCHAR\\(50\\) NULL COMMENT '账户名';\")", + "Bash(echo \"Build exit code: $?\")", + "Bash(cd \"d:\\\\project\\\\company\\\\rent\\\\apps\\\\server\\\\src\\\\modules\\\\merchant\\\\profile\" && rm -f *.ts && rm -rf dto)", + "Bash(grep -E \"\\\\.\\(vue|tsx?\\)$\")", + "Bash(grep -E \"\\\\.\\(tsx|ts\\)$\")", + "Bash(grep -E \"\\\\.\\(service|controller\\)\\\\.ts$\")", + "Bash(cd /d/project/company/rent/apps/server && tail -100 logs/*.log 2>/dev/null | grep -A 5 -B 5 \"周结算\" | tail -50 || echo \"日志文件不存在\")", + "Read(//d/d/project/company/rent/apps/server/**)", + "Bash(node -e \"const dayjs = require\\('dayjs'\\); console.log\\('今天是周几:', dayjs\\('2026-05-28'\\).day\\(\\)\\); console.log\\('0=周日, 1=周一, ..., 6=周六'\\);\")", + "Bash(git checkout *)" ], "additionalDirectories": [ - "\\tmp" + "\\tmp", + "D:\\project\\company\\rent\\apps\\server\\src\\modules\\shared" ] } } diff --git a/apps/miniapp/package.json b/apps/miniapp/package.json index 50d0dca..5f96ffc 100644 --- a/apps/miniapp/package.json +++ b/apps/miniapp/package.json @@ -29,6 +29,7 @@ "@dcloudio/uni-mp-weixin": "3.0.0-5000720260410001", "@dcloudio/uni-mp-xhs": "3.0.0-5000720260410001", "@dcloudio/uni-quickapp-webview": "3.0.0-5000720260410001", + "china-division": "^2.7.0", "pinia": "^2.2.0", "uview-plus": "^3.8.18", "vue": "^3.5.32", diff --git a/apps/miniapp/src/api/user/auth.ts b/apps/miniapp/src/api/user/auth.ts index 01ad15b..b6dc40c 100644 --- a/apps/miniapp/src/api/user/auth.ts +++ b/apps/miniapp/src/api/user/auth.ts @@ -29,11 +29,11 @@ export function refreshToken(refreshToken: string) { } export function getUserProfile() { - return get('/api/app/profile/profile'); + return get('/api/app/profile'); } export function updateUserProfile(data: { nickname?: string; avatar?: string }) { - return post('/api/app/profile/profile', data); + return post('/api/app/profile', data); } export function uploadAvatar(filePath: string) { diff --git a/apps/miniapp/src/components/RegionSelector.vue b/apps/miniapp/src/components/RegionSelector.vue index 5c08483..e0f45a5 100644 --- a/apps/miniapp/src/components/RegionSelector.vue +++ b/apps/miniapp/src/components/RegionSelector.vue @@ -2,7 +2,7 @@ {{ displayText }} {{ placeholder }} - + @@ -12,7 +12,9 @@ 选择地区 - + + + - + {{ item.name }} - + @@ -43,6 +45,7 @@