diff --git a/pages.json b/pages.json index cd5ec86..cb8fc78 100644 --- a/pages.json +++ b/pages.json @@ -73,6 +73,24 @@ "backgroundColorTop": "#ededed", "backgroundColorBottom": "#ededed" } + }, + { + "path": "shareJob", + "style": { + "navigationBarTitleText": "分享职位", + "backgroundColor": "#ededed", + "backgroundColorTop": "#ededed", + "backgroundColorBottom": "#ededed" + } + }, + { + "path": "shareList", + "style": { + "navigationBarTitleText": "职位列表", + "backgroundColor": "#ededed", + "backgroundColorTop": "#ededed", + "backgroundColorBottom": "#ededed" + } } ] }, diff --git a/pages/home/index.vue b/pages/home/index.vue index c02c569..5fcebec 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -101,6 +101,9 @@
+
+ +
@@ -215,8 +218,8 @@ export default { return { scrollTo: "", selectedCity: "全国", - agencyInfo: uni.getStorageSync("agencyInfo"), - userInfo: uni.getStorageSync("apply-userinfo"), + agencyInfo: {}, + userInfo: {}, whichOneShow: "", toTop: false, // 筛序栏顶部状态 getFilterData: { @@ -340,6 +343,8 @@ export default { onShow() { let that = this; if (that.isLogin) { + this.agencyInfo = uni.getStorageSync("agencyInfo"); + this.userInfo = uni.getStorageSync("apply-userinfo"); that.loadSelectedCityFromCache(); } }, @@ -612,6 +617,12 @@ export default { url: "/root/home/quickApplication?title=快速报名", }); }, + toShare() { + uni.navigateTo({ + url: "/root/home/shareJob", + }); + }, + shareJob(e) { console.log(e); this.currentJob = e; diff --git a/pages/person/index.vue b/pages/person/index.vue index 7384698..07a2686 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -49,7 +49,8 @@ - + +
{ - console.log(123123123123123); that.setUserInfo(); this.getAuthInfo(); this.getData(); this.getNum(); + that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; + that.agencyInfo = uni.getStorageSync("agencyInfo"); if (uni.getStorageSync("apply-userinfo").agencyStatus == 1) { this.getCompanyInfo(); } diff --git a/root/detail/userShare.vue b/root/detail/userShare.vue index 91f001d..d584e84 100644 --- a/root/detail/userShare.vue +++ b/root/detail/userShare.vue @@ -131,17 +131,21 @@
加入团队/企业
+
团队创建人手机号
- +
当前选择团队: {{ chooseTeam.fullName || chooseTeam.agencyName }}
-
- +
+
昵称
+
+ +
@@ -878,6 +882,7 @@ export default { }); return; } + uni.hideKeyboard(); that.G.Get(that.api.bind_getAgencyByAdminTel, { tel: that.teamInfo.tel }, (res) => { that.teamList = res; that.joinTeamDrawerShow = true; diff --git a/root/home/shareJob.vue b/root/home/shareJob.vue new file mode 100644 index 0000000..8182ec8 --- /dev/null +++ b/root/home/shareJob.vue @@ -0,0 +1,1102 @@ + + + + + diff --git a/root/home/shareList.vue b/root/home/shareList.vue new file mode 100644 index 0000000..71a45a4 --- /dev/null +++ b/root/home/shareList.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/root/home/utils/commonSub.js b/root/home/utils/commonSub.js new file mode 100644 index 0000000..bf0af00 --- /dev/null +++ b/root/home/utils/commonSub.js @@ -0,0 +1,72 @@ + +let data = { + /** + * canvas绘图 start + */ + /** + * 文字绘制 + */ + fillTextLineBreak (ctx, text, x, y, lw, lh, color = "#333", font = "32", weight = "500") { + // , align = "center" + var i = 0; + var n = 0; + var r = -1; + // var initHeight = 0; + ctx.font = weight + " " + font + "px Arial"; //字体大小 + ctx.fillStyle = color; //字体颜色 + // ctx.textBaseline = align; + // ctx.textAlign = align; + while (i < text.length) { + while (ctx.measureText(text.substring(n, i)).width < lw && i < text.length) { + i++; + } + r++; + ctx.fillText(text.substring(n, i), x, y + lh * r); + n = i; + } + }, + /** + * 背景图绘制 + */ + roundRect (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r) { + // 开始绘制 + ctx.save(); + ctx.beginPath(); + ctx.arc(bg_x + bg_r, bg_y + bg_r, bg_r, Math.PI, Math.PI * 1.5); + ctx.arc(bg_x + bg_w - bg_r, bg_y + bg_r, bg_r, Math.PI * 1.5, Math.PI * 2); + ctx.arc(bg_x + bg_w - bg_r, bg_y + bg_h - bg_r, bg_r, 0, Math.PI * 0.5); + ctx.arc(bg_x + bg_r, bg_y + bg_h - bg_r, bg_r, Math.PI * 0.5, Math.PI); + ctx.clip(); + ctx.drawImage(img, bg_x, bg_y, bg_w, bg_h); + // 恢复之前保存的绘图上下文 + ctx.restore(); + }, + roundRect_yuan (ctx, x, y, size) { + // 开始绘制 + ctx.save(); // 保存 + ctx.beginPath(); // 开始绘制 + // ctx.arc(100, 75, 50, 0, 2 * Math.PI) + ctx.arc(size / 2 + x, size / 2 + y, size / 2, 0, Math.PI * 2, false); + ctx.clip(); + // 恢复之前保存的绘图上下文 + ctx.restore(); + }, + + roundRect1 (ctx, x, y, w, h, r, color) { + //绘制圆角矩形(无填充色)) + ctx.save(); + ctx.fillStyle = color; + ctx.strokeStyle = color; + ctx.lineJoin = "round"; //交点设置成圆角 + ctx.lineWidth = r; + ctx.strokeRect(x + r / 2, y + r / 2, w - r, h - r); + ctx.fillRect(x + r, y + r, w - r * 2, h - r * 2); + ctx.stroke(); + ctx.closePath(); + }, + /** + * canvas绘图 end + */ +} + +export default data; diff --git a/root/person/teamManage.vue b/root/person/teamManage.vue index f5f922e..bb34efd 100644 --- a/root/person/teamManage.vue +++ b/root/person/teamManage.vue @@ -50,14 +50,14 @@
- +
-
+