diff --git a/root/detail/apply.vue b/root/detail/apply.vue index e8a3929..5ce2871 100644 --- a/root/detail/apply.vue +++ b/root/detail/apply.vue @@ -370,7 +370,7 @@ - + diff --git a/root/detail/myMain.vue b/root/detail/myMain.vue index 4cabe58..07c440a 100644 --- a/root/detail/myMain.vue +++ b/root/detail/myMain.vue @@ -43,6 +43,8 @@ export default { appfile: null, canvasWidth: 0, canvasHeight: 0, + _name:'', + _job:'', }; }, props: { @@ -67,6 +69,12 @@ export default { }; }, }, + name:{ + default:'', + }, + job:{ + default:'', + } }, created() { let that = this; @@ -97,10 +105,18 @@ export default { that.appInfo = val; this.init(); }, + name(val){ + this._name = val; + }, + job(val){ + this._job = val; + } }, methods: { init() { let that = this; + that._name = that.name; + that._job = that.job; that.appInfo = that.recommendList; console.log("that.appInfo", that.appInfo); let _env = uni.getAccountInfoSync().miniProgram.envVersion; @@ -243,16 +259,16 @@ export default { img.src = res.path; img.onload = () => { that.G.roundRect(ctx, img, 915, 218, 272, 272, 136); // logo - that.G.fillTextLineBreak(ctx, info.fullName, 140, 300, info.fullName.length * 80, 80, "#333", 80, 600, "left"); // 企业名称 - that.G.fillTextLineBreak(ctx, "今日更新职位" + info.jobUpdateNum, 140, 400, ("今日更新职位" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); // 今日更新职位 + that.G.fillTextLineBreak(ctx, that._name, 140, 300, that._name.length * 80, 80, "#333", 80, 600, "left"); // 企业名称 + that.G.fillTextLineBreak(ctx, that._job, 140, 400, that._job.length * 56, 56, "#999", 56, 500, "left"); // 今日更新职位 - that.G.fillTextLineBreak(ctx, info.jobNum.toString(), 230, 620, info.jobNum.toString().length * 88, 88, "#333", 88, 600); // 总职位 - that.G.fillTextLineBreak(ctx, info.recruitmentJobNum.toString(), 480, 620, info.recruitmentJobNum.toString().length * 88, 88, "#333", 88, 600); // 在招数 - that.G.fillTextLineBreak(ctx, info.downNum.toString(), 730, 620, info.downNum.toString().length * 88, 88, "#333", 88, 600); // 粉丝数 + // that.G.fillTextLineBreak(ctx, info.jobNum.toString(), 230, 620, info.jobNum.toString().length * 88, 88, "#333", 88, 600); // 总职位 + // that.G.fillTextLineBreak(ctx, info.recruitmentJobNum.toString(), 480, 620, info.recruitmentJobNum.toString().length * 88, 88, "#333", 88, 600); // 在招数 + // that.G.fillTextLineBreak(ctx, info.downNum.toString(), 730, 620, info.downNum.toString().length * 88, 88, "#333", 88, 600); // 粉丝数 - that.G.fillTextLineBreak(ctx, "总职位", 230, 700, "总职位".length * 56, 56, "#999", 56, 500); // 总职位 - that.G.fillTextLineBreak(ctx, "在招数", 480, 700, "在招数".length * 56, 56, "#999", 56, 500); // 在招数 - that.G.fillTextLineBreak(ctx, "粉丝数", 730, 700, "粉丝数".length * 56, 56, "#999", 56, 500); // 粉丝数 + // that.G.fillTextLineBreak(ctx, "总职位", 230, 700, "总职位".length * 56, 56, "#999", 56, 500); // 总职位 + // that.G.fillTextLineBreak(ctx, "在招数", 480, 700, "在招数".length * 56, 56, "#999", 56, 500); // 在招数 + // that.G.fillTextLineBreak(ctx, "粉丝数", 730, 700, "粉丝数".length * 56, 56, "#999", 56, 500); // 粉丝数 imgres(canvas); }; },