From 1d62b37060b87829f50b58c82b6413f282ac3a73 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Thu, 12 Mar 2026 15:09:27 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=A4=B4=E5=83=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BB=8E=E7=9B=B8=E5=86=8C=E9=80=89=E6=8B=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E5=B8=B8=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 9 ++++++--- pages_tool/ai-chat/ai-chat-message.vue | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 6a72520..c8d9866 100644 --- a/manifest.json +++ b/manifest.json @@ -71,11 +71,14 @@ "scope.userLocation" : { "desc" : "为了更好地为您提供服务" }, - "scope.writePhotosAlbum" : { - "desc" : "为了更好地为您提供服务" - }, "scope.userClipboard" : { "desc" : "为了方便您复制信息" + }, + "scope.camera" : { + "desc" : "用于拍照上传头像" + }, + "scope.writePhotosAlbum" : { + "desc" : "用于从相册选择和保存头像" } }, "requiredPrivateInfos" : [ "chooseLocation", "getLocation", "chooseAddress" ], diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 82866a7..2ce9d16 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -280,7 +280,7 @@ - + @@ -612,16 +612,19 @@ export default { // 从相册选择头像 chooseAvatarFromAlbum() { + console.log('选择从相册选择头像') this.selectAvatar('album') }, // 拍照上传头像 takeAvatarWithCamera() { + console.log('选择拍照上传头像') this.selectAvatar('camera') }, // 统一头像选择方法 selectAvatar(sourceType) { + console.log('开始选择头像,来源:', sourceType) uni.chooseImage({ count: 1, // 仅选择1张 sizeType: ['compressed'], // 压缩图片