fix: avatar picker uses chooseMedia, COS domain to tx.vsai.net.cn

- Replace chooseAvatar button with chooseMedia (more reliable, works on all versions)
- COS avatar URL uses tx.vsai.net.cn instead of generated bucket domain
- Phone shows '已授权' only (no actual number displayed)
这个提交包含在:
Guoguo
2026-05-07 06:23:42 -07:00
父节点 6c1c421e6e
当前提交 06b6ee6b02
修改 4 个文件,包含 16 行新增17 行删除
+12 -4
查看文件
@@ -28,10 +28,18 @@ Page({
})
},
onChooseAvatar: function (e) {
if (e.detail && e.detail.avatarUrl) {
this.setData({ avatarUrl: e.detail.avatarUrl })
}
onPickAvatar: function () {
var self = this
wx.chooseMedia({
count: 1,
mediaType: ['image'],
sourceType: ['album', 'camera'],
success: function (res) {
if (res.tempFiles && res.tempFiles[0]) {
self.setData({ avatarUrl: res.tempFiles[0].tempFilePath })
}
}
})
},
onNicknameInput: function (e) {