//这里等promise执行,避免拿不到图片临时路径
const promise1 = new Promise((resolve, reject) => {
uni.downloadFile({
url:that.bg_img,
success:(res)=>{
resolve(res)
}
})
});
const promise2 = new Promise((resolve, reject) => {
uni.downloadFile({
url:that.ewm,
success:(res)=>{
resolve(res)
}
})
});
Promise.all([promise1, promise2]).then((values) => {
// console.log(values);
this.make_canvas(values[0],values[1]);
});