mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
3250b676fa
commit
70694e7ee2
@ -90,9 +90,12 @@
|
|||||||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||||
sourceType: ['album','camera'], //从相册选择
|
sourceType: ['album','camera'], //从相册选择
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
//JSON.stringify(res.tempFilePaths);
|
let _photosPromise = factory.base64.urlTobase64(res.tempFilePaths[0]);
|
||||||
let _photos = factory.base64.urlTobase64(res.tempFilePaths);
|
_photosPromise.then((photo) => {
|
||||||
_that.uploadOwnerPhoto(_photos);
|
_that.uploadOwnerPhoto(photo);
|
||||||
|
}, (e) => {
|
||||||
|
console.log(e);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user