uni.chooseImage({
sizeType: "original",
count: 4 - this.imageList.length,
success: (res) => {
console.log("APP选择图片1",res);
console.log("APP选择图片2",JSON.stringify(res));
that.loading = true;
for (let i = 0; i < res.tempFilePaths.length; i++) {
uni.saveFile({
tempFilePath: res.tempFilePaths[i],
success: function (res) {
var path = res.savedFilePath;
console.log("保存的文件路径",path)
console.log("APP选择图片路径3",path)
common.compressImageAPP(path,i).then((image)=>{
console.log("压缩返回的结果",image)
console.log("压缩返回的结果22222",image)
that.loading = false;
that.imageList.push(image);
console.log("压缩返回的结果imageList",JSON.stringify(imageList))
that.uploadImage(image);
});
}
});
}
},
fail: (err) => {
})
y***@wanjiangcar.com
我的3.1.22版本同样的问题
2021-07-12 13:37
DCloud_Android_ST
回复 y***@wanjiangbc.com: 云打包吗
2021-07-12 16:13