|
[BUG]
api.getPicture选择图片进行编辑时,点击取消不返回
[复制链接]
api.getPicture({
sourceType: 'library',
encodingType: 'jpg',
mediaValue: 'pic',
allowEdit: true,
destinationType: 'url',
quality: 90,
//saveToPhotoAlbum: true
// targetWidth: 200,
// targetHeight: 200,
saveToPhotoAlbum: true
}, function(ret, err) {
if (ret) {
//上传方法
lib.ajaxFile('/v2/users/update-header','post',ret.data,function(ret){
if(ret.code == '200') {
//没有测试直接放路径图片是否更改
//_this.personalData.student_head_url=ret.data.url;
//头像
_this.checkPage();
//头像放入缓存中
// $api.setStorage('fraHead',ret.data.url);
}
});
}
})
|
|