cyl/master-0819
wangxia 3 months ago
parent 09ba059ec3
commit cc4cc631b6

@ -61,12 +61,12 @@ export default {
uni.$on("isGlogin", function (data) {
console.log("app.vue 接收", data);
if (uni.getStorageSync("apply-uid")) {
that.initWyyx()
that.initWyyx();
}
});
if (uni.getStorageSync("apply-token")) {
console.log("app.vue 是否调用");
that.initWyyx()
that.initWyyx();
}
},
onHide: function () {
@ -281,15 +281,17 @@ export default {
uni.setTabBarBadge({
index: 2,
text: String(res.approvePassHasNotRed),
fail(err) {
console.log("err", err);
},
});
} else {
try {
uni.removeTabBarBadge({
index: 2,
fail(err) {
console.log("err", err);
},
});
} catch (error) {
console.log("当前页面不是 TabBar 页面,无法移除 badge");
}
}
});
}

@ -33,7 +33,13 @@ let userInfo = {// 用户信息模块
order_addApply: "/yishoudan/agency/group/user/apply/addApply",// 申请加入团队
order_checkHasApply: "/yishoudan/agency/group/user/apply/checkHasApply",// 是否申请过加入团队
order_getNewApplyNum: "/yishoudan/agency/group/user/apply/getNewApplyNum",// 获取申请加入的成员数量
order_getNewApplyNumNotViewed: "/yishoudan/agency/group/user/apply/getNewApplyNumNotViewed",// 获取新申请的数量(未读)
order_updateApplyNumHasViewed: "/yishoudan/agency/group/user/apply/updateApplyNumHasViewed",// 将申请列表标记为已读
order_getUserApplyList: "/yishoudan/agency/group/user/apply/userApplyList",// 获取申请加入的成员列表
order_userApplyApprove: "/yishoudan/agency/group/user/apply/approve",// 申请加入审批
}

@ -22,15 +22,13 @@
</view>
</view>
</view>
<view class="g_flex_row_start flex_center g_mt_26 g_fs_16 g_c_8"
hover-class="thover" @click="goPage('/root/person/info?active=1')"
>
<view class="g_flex_row_start flex_center g_mt_26 g_fs_16 g_c_8" hover-class="thover" @click="goPage('/root/person/info?active=1')">
<view class="">
{{ agencyInfo.agencyName || agencyInfo.fullName || "-" }}
</view>
<view style="position: relative;">
<view style="position: relative">
<i class="iconfont icon-gengduo11" style="line-height: 22px; font-size: 10px"></i>
<view class="" style="position: absolute;right: -10px;top: 0;color: #ff4400;font-size: 12px;" v-if="waitNus">
<view class="g_radius_50 g_text_c" style="position: absolute; right: -20px; top: 0; color: #fff; background-color: #ff4400; font-size: 12px; min-width: 16px" v-if="waitNus">
{{ waitNus }}
</view>
</view>
@ -87,7 +85,10 @@
@clickItem="handleClickNus"
/> -->
</view>
<view class="g_mt_10" v-if="userInfo.admin">
<view class="g_mt_10 g_position_rela" v-if="userInfo.admin">
<view class="g_radius_50 g_text_c" style="position: absolute; right: 16px; top: 5px; color: #fff; background-color: #ff4400; font-size: 12px; min-width: 16px" v-if="applyNum > 0">
{{ applyNum }}
</view>
<g-panel-form-item
:list="[
{
@ -171,7 +172,7 @@ export default {
},
data() {
return {
waitNus:0,
waitNus: 0,
agencyInfo: {},
addMemberShow: false,
scrollTop: 0,
@ -239,7 +240,7 @@ export default {
waitNum_ups: 0,
itemList: [],
isCreator: false,
applyNum: 0,
showService: false,
readed: true,
isLogin: false,
@ -344,6 +345,7 @@ export default {
this.getData();
this.getNum();
this.getWait();
this.getNewApplyNum();
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
that.agencyInfo = uni.getStorageSync("agencyInfo");
if (uni.getStorageSync("apply-userinfo").agencyStatus == 1) {
@ -370,11 +372,18 @@ export default {
}
},
methods: {
getWait(){
getNewApplyNum() {
let that = this;
this.G.Get(this.api.order_getNewApplyNumNotViewed, {}, (res) => {
console.log(res, "getNewApplyNum");
that.applyNum = res;
});
},
getWait() {
let that = this;
that.G.Get(that.api.person_applyNum,{},(res)=>{
that.G.Get(that.api.person_applyNum, {}, (res) => {
that.waitNus = res;
})
});
},
setUserInfo() {
let that = this;

@ -502,18 +502,18 @@ export default {
let numBase3 = numBase2 + (ctx.measureText(info.recruitmentJobNum.toString()).width + ctx.measureText("在招数").width + 150);
that.G.roundRect(ctx, img, (mycenter - 300) / 2, 140, 300, 300, 150); // logo
that.G.fillTextLineBreak(ctx, info.fullName, (mycenter - info.fullName.length * 80) / 2, 600, info.fullName.length * 80, 200, "#333", 80, 600, "left"); //
that.G.fillTextLineBreak(ctx, info.agencyDesp, numBase - 55, 870, mycenter - 240, 86, "#666", 56, 500, "center"); // slogan
that.G.fillTextLineBreak(ctx, info.agencyDesp, numBase - 35, 870, mycenter - 260, 86, "#666", 56, 500, "center"); // slogan
// that.G.fillTextLineBreak(ctx, "" + info.jobUpdateNum, 140, 400, ("" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); //
const textSegments = [
{ content: info.jobNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 },
{ content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 80 },
{ content: info.recruitmentJobNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 },
{ content: "在招数", color: "#666", fontWeight: 500, fontSize: 56, space: 80 },
{ content: info.downNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 },
{ content: info.jobNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 70 },
{ content: info.recruitmentJobNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "在招数", color: "#666", fontWeight: 500, fontSize: 56, space: 70 },
{ content: info.downNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 },
];
that.G.drawCenteredText(ctx, mycenter, 745, textSegments);
that.G.drawCenteredText(ctx, mycenter + 20, 745, textSegments);
imgres(canvas);
};
},

@ -17,12 +17,54 @@
</div>
</div>
</u-modal>
<!-- 非代理分流弹窗 -->
<u-modal v-model="confirmWithoutAgency" width="90%" negativeTop="150" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
<div class="g_fs_17">
<div class style="padding: 24px">
<!-- <div class="g_text_c g_fw_600 g_c_0">创建团队/企业</div> -->
<div class="g_c_9">报名助手需以企业身份使用请确认本人所在公司是否已创建团队</div>
<div class="g_mt_24 g_fs_15 g_flex_row_between g_p_16 g_bg_f_5 g_radius_8">
<div class="g_flex_row_start flex_center"><i class="iconfont icon-sousuo1 g_mr_8" style="color: #307bf6"></i>已有团队</div>
<div
class=""
style="color: #307bf6"
@click="
() => {
joinTeamConfirm = true;
confirmWithoutAgency = false;
}
"
>
直接搜索加入
</div>
</div>
<div class="g_mt_12 g_fs_15 g_flex_row_between g_p_16 g_bg_f_5 g_radius_8">
<div class="g_flex_row_start flex_center"><i class="iconfont icon-tianjia g_mr_8" style="color: #0bb87e"></i>还没团队</div>
<div
class=""
style="color: #0bb87e"
@click="
() => {
submitConfirm = true;
confirmWithoutAgency = false;
}
"
>
立即创建团队
</div>
</div>
<div class="g_mt_24">
<g-button btnText="稍后再说" size="auto" class @clickBtn="confirmWithoutAgency = false"></g-button>
</div>
</div>
</div>
</u-modal>
<!-- 加入别人团队确认框 -->
<u-modal v-model="joinTeamConfirm" width="90%" negativeTop="150" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
<div class="g_fs_17 g_text_c">
<div class style="padding: 42px 24px 36px">
<div class="g_text_c g_fw_600 g_c_0 g_pb_20">加入团队/企业</div>
<div class="g_text_l g_c_6 g_mb_8 g_mt_24 g_pl_12">团队创建人手机号</div>
<div class="g_text_l g_c_6 g_mb_8 g_pl_12">团队创建人手机号</div>
<div class="g_flex_row_center">
<div class="g_flex_1 g_bg_f_5 g_radius_6 g_pl_12 g_pr_12">
<u-input v-model="teamInfo.tel" type="number" backgroundColor="#ededed" height="80" placeholder="搜索创建人手机号"></u-input>
@ -33,7 +75,7 @@
</div>
<div class="g_text_l g_mt_8 g_fs_14" v-if="chooseTeam.fullName">: {{ chooseTeam.fullName || chooseTeam.agencyName }}</div>
<div class="">
<div class="g_text_l g_c_6 g_mb_8 g_mt_24 g_pl_12">昵称</div>
<div class="g_text_l g_c_6 g_mb_8 g_mt_12 g_pl_12">昵称</div>
<div class="g_bg_f_5 g_radius_6 g_pl_12 g_pr_12">
<u-input v-model="teamInfo.userName" backgroundColor="#ededed" height="80" placeholder="请输入您的昵称"></u-input>
</div>
@ -92,6 +134,8 @@ export default {
return {
joinTeamDrawerShow: false,
joinTeamConfirm: false,
confirmWithoutAgency: false,
submitConfirm: false,
btnLoading: false,
teamList: [],
@ -174,6 +218,8 @@ export default {
//
applyFlowConfirm() {
let that = this;
this.confirmWithoutAgency = true;
return;
that.G.handleConfirm({
confirmText: "确认",
title: "是否确认关注该发单号?",
@ -188,6 +234,8 @@ export default {
//
applyFlowWidthoutAgencyConfirm() {
let that = this;
this.confirmWithoutAgency = true;
return;
that.G.handleConfirm({
cancelText: "创建团队",
confirmText: "加入团队",

@ -111,7 +111,7 @@
</template>
<script>
import _G from "./utils/commonSub.js";
// import that.G from "./utils/commonSub.js";
export default {
components: {},
@ -689,7 +689,7 @@ export default {
bottomSloganTop1 = 2 * 790;
bottomSloganLeft = 64;
bottomSloganLeft1 = 64;
QRSize = 2 * 110;
QRSize = 2 * 120;
QRLeft = 900;
QRTop = 1400;
}
@ -715,47 +715,46 @@ export default {
img.src = res.path;
img.onload = () => {
if (that.checkedList.length == 1) {
_G.roundRect1(ctx, mycenter - 580 / 2, baseTop + 740, 580, 580, 0, "#fff");
// roundRect1(ctx, mycenter - 600 / 2, baseTop + 750, 600, 560, 0, "#fff");
_G.roundRect(ctx, img, mycenter - res.width / 2 - 120, baseTop + 770, QRSize, QRSize, 0);
// _G.roundRect(ctx, img, mycenter - res.width / 2 - 120, baseTop + 770, QRSize, QRSize, 0);
that.G.roundRect1(ctx, mycenter - 580 / 2, baseTop + 740, 580, 580, 0, "#fff");
that.G.roundRect(ctx, img, mycenter - res.width / 2 - 120, baseTop + 770, QRSize, QRSize, 0);
// that.G.roundRect(ctx, img, mycenter - res.width / 2 - 120, baseTop + 770, QRSize, QRSize, 0);
} else {
_G.roundRect1(ctx, QRLeft - 10, baseTop + QRTop - 10, QRSize + 20, QRSize + 20, 0, "#fff");
_G.roundRect(ctx, img, QRLeft, baseTop + QRTop, QRSize, QRSize, 0);
that.G.roundRect1(ctx, QRLeft - 10, baseTop + QRTop - 10, QRSize + 20, QRSize + 20, 0, "#fff");
that.G.roundRect(ctx, img, QRLeft, baseTop + QRTop, QRSize, QRSize, 0);
}
that.checkedList.forEach((item, index) => {
let labelLeft = 0;
console.log("item2", item);
_G.roundRect1(ctx, 24 * 2, baseTop - 100 + baseMiddle * index, 1104, roundRectHeight, 32, "#fff");
that.G.roundRect1(ctx, 24 * 2, baseTop - 100 + baseMiddle * index, 1104, roundRectHeight, 32, "#fff");
item.jobSpecialLabelNameArray.forEach((item1, index1) => {
if (index1 < 4) {
_G.fillTextLineBreak(ctx, item1, 60 * 2 + labelLeft, baseTop + markTop + 30 * 2 + baseMiddle * index, 400 * 2, 20, "#333", monthlyPaySize); //
_G.roundRect1(ctx, 52 * 2 + labelLeft, baseTop + markTop + baseMiddle * index, ctx.measureText(item1).width + 16 * 2, 40 * 2, 2 * 2, "#00000010"); //
that.G.fillTextLineBreak(ctx, item1, 60 * 2 + labelLeft, baseTop + markTop + 30 * 2 + baseMiddle * index, 400 * 2, 20, "#333", monthlyPaySize); //
that.G.roundRect1(ctx, 52 * 2 + labelLeft, baseTop + markTop + baseMiddle * index, ctx.measureText(item1).width + 16 * 2, 40 * 2, 2 * 2, "#00000010"); //
labelLeft += ctx.measureText(item1).width + 32 * 2;
}
});
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800 * 2, 20, "#333", titleSize, "600"); //
that.G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800 * 2, 20, "#333", titleSize, "600"); //
_G.fillTextLineBreak(ctx, item.salaryClassifyValue, logoLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", titleSize - 4, "600"); //
that.G.fillTextLineBreak(ctx, item.salaryClassifyValue, logoLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", titleSize - 4, "600"); //
// setTimeout(() => {
_G.fillTextLineBreak(ctx, item.monthlyPay, logoLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", monthlyPaySize, "400"); //
that.G.fillTextLineBreak(ctx, item.monthlyPay, logoLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", monthlyPaySize, "400"); //
// }, 0);
_G.fillTextLineBreak(ctx, item.district, logoLeft, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); //
that.G.fillTextLineBreak(ctx, item.district, logoLeft, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); //
_G.fillTextLineBreak(ctx, "丨" + item.age, logoLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); //
that.G.fillTextLineBreak(ctx, "丨" + item.age, logoLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); //
_G.fillTextLineBreak(ctx, that.userInfo.fullName || that.userInfo.agencyName, mycenter - ctx.measureText(that.userInfo.fullName || that.userInfo.agencyName).width / 2, fubiaotiTop, 400 * 2, 20, "#fff", monthlyPaySize, "600"); //
that.G.fillTextLineBreak(ctx, that.userInfo.fullName || that.userInfo.agencyName, mycenter - ctx.measureText(that.userInfo.fullName || that.userInfo.agencyName).width / 2, fubiaotiTop, 400 * 2, 20, "#fff", monthlyPaySize, "600"); //
if (that.checkedList.length == 1) {
// roundRect1(ctx, mycenter - 600 / 2, baseTop + 750, 600, 560, 32, "#fff");
// _G.fillTextLineBreak(ctx, "", mycenter - ctx.measureText("").width / 2, baseTop + bottomSloganTop, 300 * 2, 20, "#fff", monthlyPaySize); // slogan
_G.fillTextLineBreak(ctx, "长按查看职位详情", mycenter - ctx.measureText("长按查看职位详情").width / 1.45, baseTop + bottomSloganTop1, 500 * 2, 20, "#fff", titleSize); // slogan
// that.G.fillTextLineBreak(ctx, "", mycenter - ctx.measureText("").width / 2, baseTop + bottomSloganTop, 300 * 2, 20, "#fff", monthlyPaySize); // slogan
that.G.fillTextLineBreak(ctx, "长按查看职位详情", (canvas.width - ctx.measureText("长按查看职位详情").width) / 2.25, baseTop + bottomSloganTop1, ctx.measureText("长按查看职位详情").width + 100, 20, "#fff", titleSize); // slogan
} else {
_G.fillTextLineBreak(ctx, "长按查看职位详情", bottomSloganLeft, baseTop + bottomSloganTop, 300 * 2, 20, "#fff", monthlyPaySize + 8); // slogan
_G.fillTextLineBreak(ctx, "好工作 放心干", bottomSloganLeft1, baseTop + bottomSloganTop1, 500 * 2, 20, "#fff", titleSize); // slogan
that.G.fillTextLineBreak(ctx, "长按查看职位详情", bottomSloganLeft, baseTop + bottomSloganTop, 300 * 2, 20, "#fff", monthlyPaySize + 8); // slogan
that.G.fillTextLineBreak(ctx, "好工作 放心干", bottomSloganLeft1, baseTop + bottomSloganTop1, 500 * 2, 20, "#fff", titleSize); // slogan
}
imgres(canvas);
//logo
@ -769,7 +768,7 @@ export default {
// img.src = res.path;
// img.onload = () => {
// // setTimeout(() => {
// _G.roundRect(ctx, img, logoLeft, baseTop + 40 + baseMiddle * index, logoSize, logoSize, 8);
// that.G.roundRect(ctx, img, logoLeft, baseTop + 40 + baseMiddle * index, logoSize, logoSize, 8);
// // }, 500);
// if (index == that.checkedList.length - 1) {
// setTimeout(() => {
@ -820,16 +819,16 @@ export default {
if (index <= 2) {
let labelLeft = 0;
console.log("item1", item);
_G.roundRect1(ctx, 32, baseTop - 60 + baseMiddle * index, 776, roundRectHeight, 24, "#fff");
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800, 20, "#333", titleSize, "500"); //
that.G.roundRect1(ctx, 32, baseTop - 60 + baseMiddle * index, 776, roundRectHeight, 24, "#fff");
that.G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800, 20, "#333", titleSize, "500"); //
// ()
// _G.fillTextLineBreak(ctx, item.cus_price == "" ? item.monthlyPay : item.salaryClassifyValue, salaryClassifyValueLeft + 500, baseTop - 10 + salaryClassifyValueTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); //
_G.fillTextLineBreak(ctx, item.cus_price == "月薪" ? item.monthlyPay : item.salaryClassifyValue, canvas.width - ctx.measureText(item.cus_price == "月薪" ? item.monthlyPay : item.salaryClassifyValue).width - 40 , baseTop + ageTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); //
// that.G.fillTextLineBreak(ctx, item.cus_price == "" ? item.monthlyPay : item.salaryClassifyValue, salaryClassifyValueLeft + 500, baseTop - 10 + salaryClassifyValueTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); //
that.G.fillTextLineBreak(ctx, item.cus_price == "月薪" ? item.monthlyPay : item.salaryClassifyValue, canvas.width - ctx.measureText(item.cus_price == "月薪" ? item.monthlyPay : item.salaryClassifyValue).width - 40 , baseTop + ageTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); //
// setTimeout(() => {
// _G.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 , 20, "#ff4400", monthlyPaySize, "400"); //
// that.G.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 , 20, "#ff4400", monthlyPaySize, "400"); //
// }, 0);
_G.fillTextLineBreak(ctx, item.district, logoLeft, baseTop + ageTop + baseMiddle * index, 500, 20, "#999", monthlyPaySize); //
_G.fillTextLineBreak(ctx, "丨" + item.age, logoLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500, 20, "#999", monthlyPaySize); //
that.G.fillTextLineBreak(ctx, item.district, logoLeft, baseTop + ageTop + baseMiddle * index, 500, 20, "#999", monthlyPaySize); //
that.G.fillTextLineBreak(ctx, "丨" + item.age, logoLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500, 20, "#999", monthlyPaySize); //
}
});
imgres(canvas);

@ -46,10 +46,14 @@ export default {
},
onShow() {
this.getUserApplyList();
this.setTeamManagerStatus();
},
created() {},
methods: {
setTeamManagerStatus() {
this.G.Get(this.api.order_updateApplyNumHasViewed, {}, (res) => {});
},
getUserApplyList() {
let that = this;
this.G.Post(this.api.order_getUserApplyList, { pageNum: that.query.page, pageSize: that.query.size }, (res) => {

@ -127,9 +127,15 @@ export default {
setOptions(options) {
console.log("options", options);
this.fromPageType = options.type;
if (options.type == "detail" || options.type == "shareList") {
this.currentId = `id%3D${JSON.parse(options.scene).id}`;
console.log('this.currentId',this.currentId);
let jsonStr = JSON.parse(options.scene);
if (options.type == "detail") {
this.currentId = `id%3D${jsonStr.id}`;
} else if (options.type == "shareList") {
if (jsonStr.i) {
this.currentId = `i%3D${jsonStr.i},u%3D${jsonStr.u}`;
} else {
this.currentId = `id%3D${jsonStr.id}`;
}
}
},
goHome() {
@ -307,6 +313,7 @@ export default {
url: "/pages/home/index",
});
} else if (that.fromPageType == "detail" || that.fromPageType == "shareList") {
console.log("that.currentId", that.currentId);
uni.reLaunch({
url: `${that.path}?scene=${that.currentId}`,
});
@ -407,7 +414,7 @@ export default {
opacity: 0;
}
.u-input__right-icon{
.u-input__right-icon {
display: flex;
display: -webkit-flex;
flex-direction: column;

Loading…
Cancel
Save