Merge branch 'feat/liujie'
This commit is contained in:
@@ -531,8 +531,13 @@ function Result() {
|
|||||||
Taro.authorize({
|
Taro.authorize({
|
||||||
scope: "scope.writePhotosAlbum",
|
scope: "scope.writePhotosAlbum",
|
||||||
success: async () => {
|
success: async () => {
|
||||||
const url = await genCardImage();
|
try {
|
||||||
Taro.saveImageToPhotosAlbum({ filePath: url });
|
const url = await genCardImage();
|
||||||
|
Taro.saveImageToPhotosAlbum({ filePath: url });
|
||||||
|
Taro.showToast({ title: "保存成功" });
|
||||||
|
} catch (e) {
|
||||||
|
Taro.showToast({ title: "图片保存失败", icon: "none" });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
Taro.showModal({
|
Taro.showModal({
|
||||||
|
|||||||
Reference in New Issue
Block a user