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