cyl/master-0804
wangxia 3 months ago
parent 26f293c79c
commit 48a2f92cfc

@ -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"
}
}
]
},

@ -101,6 +101,9 @@
<div hover-class="none" style="position: fixed; right: 20px; bottom: 20px; z-index: 0" hover-stop-propagation="false" @click="toRecord" v-if="isLogin && userInfo.agencyId">
<g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div>
<div hover-class="none" style="position: fixed; right: 20px; bottom: 60px; z-index: 0" hover-stop-propagation="false" @click="toShare" v-if="isLogin && userInfo.agencyId">
<g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div>
<g-filter :show.sync="whichOneShow" @hideDrawer="(e) => (whichOneShow = e)" ref="filterChild" top="43px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter>
<u-popup v-model="showPop" mode="bottom" uZindex="9999" border-radius="12" :closeable="true" :mask-close-able="true">
@ -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;

@ -49,7 +49,8 @@
</view>
</view>
<view class="g_mt_10">
<view class="g_mt_10 g_position_rela" v-if="userInfo.admin">
<!-- v-if="userInfo.admin" -->
<view class="g_mt_10 g_position_rela" v-if="userInfo.agencyId">
<div class="g_w_8 g_h_8 g_radius_50 g_bg_f0a g_position_abso" style="right: 18px; top: 10px" v-if="!readed"></div>
<g-panel-form-item
:list="[
@ -327,17 +328,15 @@ export default {
},
onShow() {
let that = this;
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
that.agencyInfo = uni.getStorageSync("agencyInfo");
if (uni.getStorageSync("apply-token")) {
that.isLogin = true;
console.log(56456567675);
this.G.checkToken().then(() => {
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();
}

@ -131,19 +131,23 @@
<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_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" backgroundColor="#ededed" height="80" placeholder="搜索创建人手机号"></u-input>
<u-input v-model="teamInfo.tel" type="number" backgroundColor="#ededed" height="80" placeholder="搜索创建人手机号"></u-input>
</div>
<div class="g_w_90 g_ml_16">
<g-button btnText="搜索" size="auto" type="primary" class @clickBtn="searchTeamByTel"></g-button>
</div>
</div>
<div class="g_text_l g_mt_8 g_fs_14" v-if="chooseTeam.fullName">: {{ chooseTeam.fullName || chooseTeam.agencyName }}</div>
<div class="g_bg_f_5 g_radius_6 g_pl_12 g_pr_12 g_mt_12">
<div class="">
<div class="g_text_l g_c_6 g_mb_8 g_mt_24 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>
</div>
</div>
<div class="g_flex_row_center flex_center g_fw_600 g_border_e_t">
<div class="g_flex_1 g_h_50 g_text_c g_c_0 g_border_e_r" hover-class="thover" @click="joinTeamConfirm = false" style="line-height: 50px">取消</div>
<div class="g_flex_1 g_h_50 g_text_c g_c_sub" hover-class="thover" @click="joinTeam" style="line-height: 50px">确定</div>
@ -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;

File diff suppressed because it is too large Load Diff

@ -0,0 +1,120 @@
<template>
<view class="p-root-detail-apply g_w_all g_bg_f_5 g_kuaishou g_pt_10">
<g-yi-list-job from="home" class="g_flex_1" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" />
</view>
</template>
<script>
export default {
onReady() {
this.G.setNavStyle();
},
onShareAppMessage() {
return this.G.shareFun();
},
data() {
return {
cdnBaseImg: this.G.store().cdnBaseImg,
agencyId: uni.getStorageSync("apply-agencyId"),
isAdmin: uni.getStorageSync("apply-userinfo").admin,
isCreator: false, //
speed: -1,
query: {
page: 1,
size: 20,
list: [],
isFinish: -1,
ujc: 0, // 0 1
},
isLogin: true,
loading:false
};
},
onLoad(options) {
console.log("options", options);
if (options.scene) {
console.log("XXXXXXXXXXXX");
//
var sceneStr = decodeURIComponent(options.scene);
console.log(sceneStr);
var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson);
this.sceneStoreJobId = sceneJson.i;
uni.setStorageSync("AGENCY_USER_ID", sceneJson.u);
// app.globalData.sceneStoreJobId = sceneJson.ids
this.getList();
}
if (uni.getStorageSync("apply-userinfo")) {
this.isLogin = true;
} else {
this.isLogin = false;
}
},
onShow() {},
methods: {
getList($type = "init") {
let that = this;
that.G.Get(
that.api.get_sharejob_list,
{
storeJobIds: that.sceneStoreJobId,
},
(res) => {
console.log("一才职位列表:", res);
that.speed = res.list.length;
that.query.isFinish = res.list.length;
if (res.list && res.list.length > 0) {
res.list = that.G.toGetAddressv3(res.list);
res.list = that.G.toGetAge(res.list);
res.list = that.G.yijobCopy(res.list);
}
if ($type == "init") {
that.query.list = [];
that.query.list = res.list.map((item, index) => {
return {
...item,
collected: item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
salaryClassifyValue: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : "月薪",
// jobDesp: item.jobDesp.replaceAll("*****", "").split("")[0],
gender: that.G.getGenderByMinAge(item),
};
});
} else {
that.query.list = that.query.list.concat(
res.list.map((item, index) => {
return {
...item,
collected: item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
salaryClassifyValue: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : "月薪",
// jobDesp: item.jobDesp.replaceAll("*****", "").split("")[0],
gender: that.G.getGenderByMinAge(item),
};
})
);
}
}
);
},
goDetail($item) {
console.log("前往详情页", $item);
if (this.isLogin) {
uni.navigateTo({
url: "/root/detail/work?id=" + $item.id,
});
} else {
uni.navigateTo({
url: "/root/login/index",
});
}
},
},
};
</script>
<style lang="scss">
.p-root-detail-apply {
min-height: 100%;
}
</style>

@ -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;

@ -50,14 +50,14 @@
</div>
<div class="g_h_40"></div>
</div>
<g-panel-fixed >
<g-panel-fixed v-if="false">
<div class="g_flex_row_center">
<div class="g_w_200 g_mr_20">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
</div>
<div class="g_w_128">
<!-- <div class="g_w_128">
<g-button btnText="微信邀请" size="auto" type="primary" class @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div>
</div> -->
</div>
</g-panel-fixed>
<!-- <div class="g_h_24"></div> -->

Loading…
Cancel
Save