diff --git a/pages/person/index.vue b/pages/person/index.vue
index e9bbef2..066baa0 100644
--- a/pages/person/index.vue
+++ b/pages/person/index.vue
@@ -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();
},
});
});
@@ -919,7 +919,7 @@ export default {
});
});
},
- // 设置分享布局
+ // 设置分享布局
setShareJobImg(ctx, canvas, mycenter, funObj) {
let that = this;
let labelLeft = 0;
@@ -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();
},
});
});
diff --git a/root/person/loginIndex.vue b/root/person/loginIndex.vue
index 3e81c5b..a767ccd 100644
--- a/root/person/loginIndex.vue
+++ b/root/person/loginIndex.vue
@@ -33,7 +33,7 @@
-
+