no message

cyl/job_im
jscyl13849007907 1 week ago
parent 49d3faded7
commit 5a418dec47

@ -657,16 +657,16 @@ export default {
uni.downloadFile({
url: that.miniAppInfo.logo || "https://matripe.oss-cn-beijing.aliyuncs.com/default.png",
success(res) {
// console.log(res);
// const img = canvas.createImage();
// img.src = res.tempFilePath;
// img.onload = () => {
// that.G.roundRect(ctx, img, baseLeft, baseTop + 108, QRSize, QRSize, 0);
// };
resolve();
const img = canvas.createImage();
img.src = res.tempFilePath;
img.onload = () => {
that.G.roundRect(ctx, img, 60, 60, 150, 150, 0);
resolve();
};
},
fail(err) {
console.log(err);
resolve();
},
});
});
@ -964,16 +964,16 @@ export default {
uni.downloadFile({
url: that.miniAppInfo.logo || "https://matripe.oss-cn-beijing.aliyuncs.com/default.png",
success(res) {
// // console.log(res);
// const img = canvas.createImage();
// img.src = res.tempFilePath;
// img.onload = () => {
// that.G.roundRect(ctx, img, baseLeft, baseTop + 108, QRSize, QRSize, 0);
// };
resolve();
const img = canvas.createImage();
img.src = res.tempFilePath;
img.onload = () => {
that.G.roundRect(ctx, img, 60, 60, 150, 150, 0);
resolve();
};
},
fail(err) {
// console.log(err);
resolve();
},
});
});

Loading…
Cancel
Save