...
save_tap:function(){
var that = this;
let files= [];
let parr=[];
if(that.data.files.length>0){
that.data.files.map((item)=>{
let base64 = wx.getFileSystemManager().readFileSync(item, "base64");
let p= new Promise((reslove, reject) => {
wx.getImageInfo({
src: item,
success:function(res){
res.base64=base64;
reslove(res);
}
})
});
parr.push(p);
});
}
Promise.all(parr).then(function(resolve){
console.log("resolve--",resolve);
resolve.map((item)=>{
let base64=item.base64
base64='data:image/'+item.type+';base64,'+base64;
files.push(base64);
})
console.log("files:",files);
ctm.addtip({tip:that.tip,files:files},(res)=>{
console.log(res);
});
},function(){
});
},
...