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'], // 压缩图片