feat: alipay navbar

This commit is contained in:
zzc
2026-02-11 16:05:46 +08:00
parent c86d0f7351
commit 43675643fb

View File

@@ -477,6 +477,13 @@ const onChooseAlbum = () => {
sourceType: ["album"], sourceType: ["album"],
success: (res) => { success: (res) => {
const path = res.tempFilePaths[0]; const path = res.tempFilePaths[0];
// #ifdef MP-ALIPAY
// 支付宝小程序不支持 cropImage直接使用原图
onAvatarSelect(path);
// #endif
// #ifndef MP-ALIPAY
// 调用系统裁剪,强制 1:1 // 调用系统裁剪,强制 1:1
uni.cropImage({ uni.cropImage({
src: path, src: path,
@@ -489,6 +496,7 @@ const onChooseAlbum = () => {
onAvatarSelect(path); onAvatarSelect(path);
}, },
}); });
// #endif
}, },
}); });
}; };