feat: alipay navbar
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user