cyl/master-0804
wangxia 7 months ago
parent 1cf5fbf28a
commit 44fc0f0c17

@ -9,6 +9,9 @@ let jobInfo = {
job_setStatus: "/assistant/custom/job/v2/recruitment",// 开停招 job_setStatus: "/assistant/custom/job/v2/recruitment",// 开停招
job_hotList: "/assistant/custom/job/v2/recommend/list",// 推荐列表 job_hotList: "/assistant/custom/job/v2/recommend/list",// 推荐列表
job_getDetailInList: "/assistant/custom/job/v2/getInfo",// 职位列表获取职位详情 job_getDetailInList: "/assistant/custom/job/v2/getInfo",// 职位列表获取职位详情
get_job_QRcode: "/yishoudan/custom/job/batchqrcodeUniForAssistant", // 分享多个职位的海报二维码
get_sharejob_list: "/yishoudan/custom/job/getShareJobs", // 获取分享职位的列表
job_delJob: "/yishoudan/custom/job/del",// 删除职位 job_delJob: "/yishoudan/custom/job/del",// 删除职位
job_updateStatus: "/assistant/custom/job/ignore/add",// 更新状态 job_updateStatus: "/assistant/custom/job/ignore/add",// 更新状态
job_getPolicyPerson: '/yishoudan/custom/job/getPolicyStr',// 获取自有职位政策 job_getPolicyPerson: '/yishoudan/custom/job/getPolicyStr',// 获取自有职位政策

@ -20,11 +20,9 @@
</view> </view>
<view v-if="speed > 0" class="link"> <view v-if="speed > 0" class="link">
<block class="" v-for="(item, index) in jobArray" :key="index"> <block class="" v-for="(item, index) in jobArray" :key="index">
<view class="item g_position_rela g_mb_10 g_ml_12 g_mr_12 g_bg_f g_radius_8 g_border_e_b" :class="from == 'share' ? 'g_pr_32' : ''"> <view class="item g_position_rela g_mb_10 g_ml_12 g_mr_12 g_bg_f g_radius_8 g_border_e_b" :class="from == 'share' ? 'g_pl_32' : ''">
<view class="g_p_10" style="position: relative;" @click="handleCard(item, index)"> <view class="g_p_10" style="" @click="handleCard(item, index)">
<i class="iconfont icon-yitingzhao" v-if="item.recruitment == 2 && from != 'mine'" <i class="iconfont icon-yitingzhao" v-if="item.recruitment == 2 && from != 'mine'" style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%); color: #ff4d4f; font-size: 80px; z-index: 1"></i>
style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%);color: #ff4d4f;font-size: 80px;z-index: 1;"
></i>
<view class="m-top g_flex_row_between"> <view class="m-top g_flex_row_between">
<view class="g_flex_1 g_flex_column_between"> <view class="g_flex_1 g_flex_column_between">
<view class="g_flex_1 g_flex_row_between g_lh_1"> <view class="g_flex_1 g_flex_row_between g_lh_1">
@ -41,7 +39,7 @@
<view class="g_flex_none g_flex_row_between g_mt_6"> <view class="g_flex_none g_flex_row_between g_mt_6">
<view class="g_flex_row_between flex_center g_fs_14 g_flex_1" style="color: rgba(0, 0, 0, 0.45)"> <view class="g_flex_row_between flex_center g_fs_14 g_flex_1" style="color: rgba(0, 0, 0, 0.45)">
<view class="g_ell_1" style="max-width: 250px"> <view class="g_ell_1" style="max-width: 230px">
<view class="" style=""> {{ item.district }}{{ item.district ? "丨" : "" }}{{ (item.gender || "-") + "丨" + item.age }} </view> <view class="" style=""> {{ item.district }}{{ item.district ? "丨" : "" }}{{ (item.gender || "-") + "丨" + item.age }} </view>
</view> </view>
<view class="" hover-class="none" hover-stop-propagation="false"> <view class="" hover-class="none" hover-stop-propagation="false">
@ -95,14 +93,14 @@
<view class> <view class>
<image class="g_mr_4" style="width: 20px; height: 20px; display: block" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/fee.svg" mode="aspecFill" lazy-load="false"></image> <image class="g_mr_4" style="width: 20px; height: 20px; display: block" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/fee.svg" mode="aspecFill" lazy-load="false"></image>
</view> </view>
<view class="g_fs_13">{{ (recordStatus == 3 || recordStatus == 4 || recordStatus == 5) && !isSelf ? "关注查看" : item.policyClassify == 1 ? item.fuWuFei : "总价" }}</view> <view class="g_fs_13">{{ (recordStatus == 3 || recordStatus == 4 || recordStatus == 5) && !isSelf ? "关注查看" : item.fuWuFei }}</view>
</view> </view>
<!-- <text class="g_fs_14">/</text> --> <!-- <text class="g_fs_14">/</text> -->
</view> </view>
<!-- <view class="g_flex_column_start g_fs_20 g_c_f40 g_c_9" v-else> <!-- <view class="g_flex_column_start g_fs_20 g_c_f40 g_c_9" v-else>
<text class="g_fs_14">登录后查看</text> <text class="g_fs_14">登录后查看</text>
</view> --> </view> -->
</view> </view>
<view class="checkBox" hover-class="none" v-if="from == 'share'" @click.stop="checkJob(item)"> <view class="checkBox" hover-class="none" v-if="from == 'share'" @click.stop="checkJob(item)">
<checkbox class="biggerSize" style="transform: scale(0.8, 0.8)" color="g_c_main" :checked="item.checked" :value="item.checked"></checkbox> <checkbox class="biggerSize" style="transform: scale(0.8, 0.8)" color="g_c_main" :checked="item.checked" :value="item.checked"></checkbox>
@ -115,9 +113,10 @@
<i class="iconfont icon-gengduo2 icon g_c_b1" style="font-size: 32rpx"></i> <i class="iconfont icon-gengduo2 icon g_c_b1" style="font-size: 32rpx"></i>
</view> </view>
</view> </view>
<view class="g_flex_row_between flex_center g_border_e_t g_p_8"> <view class="g_flex_row_between flex_center g_border_e_t g_p_8" v-if="from != 'shareList'">
<view class="g_c_6 g_fs_12 g_pr_4 g_radius_4 g_flex_row_start flex_center" style="background: #f1faff"> <view class="g_c_6 g_fs_12 g_pr_4 g_radius_4 g_flex_row_start flex_center" style="background: #f1faff">
<img class="g_w_33 g_h_22 g_mr_4" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/bocaigongyinglian/xmf.svg" alt="" /> <div class="g_w_36 g_mr_4 g_fs_12 g_pl_4 g_pr_4" style="background-color:#e3f5ff">发单号</div>
<!-- <img class="g_w_33 g_h_22 g_mr_4" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/bocaigongyinglian/xmf.svg" alt="" /> -->
{{ item.fullName || item.agencyName || "-" }} {{ item.fullName || item.agencyName || "-" }}
</view> </view>
</view> </view>
@ -157,10 +156,10 @@
<script> <script>
import quickLogin from "../../components/quickLogin.vue"; import quickLogin from "../../components/quickLogin.vue";
import unloginInfo from "@/components/unloginInfo.vue"; // import unloginInfo from "@/components/unloginInfo.vue";
export default { export default {
components: { components: {
unloginInfo, // unloginInfo,
quickLogin, quickLogin,
}, },
data() { data() {
@ -347,17 +346,20 @@ export default {
}); });
return; return;
} else { } else {
if (that.recordStatus == 1 || that.recordStatus == 2 || that.isSelf) { if (that.from == "shareList") {
uni.navigateTo({ this.$emit("clickCard", $item);
url: "/root/detail/job?id=" + $item.leafCateId + "&from=" + that.from,
});
} else { } else {
uni.showToast({ if (that.recordStatus == 1 || that.recordStatus == 2 || that.isSelf) {
title: "关注发单号后才可查看详情", uni.navigateTo({
icon: "none", url: "/root/detail/job?id=" + $item.leafCateId + "&from=" + that.from,
}); });
} else {
uni.showToast({
title: "关注发单号后才可查看详情",
icon: "none",
});
}
} }
// this.$emit("clickCard", $item);
} }
}, },
goLogin() { goLogin() {
@ -590,9 +592,13 @@ export default {
} }
.checkBox { .checkBox {
position: absolute; position: absolute;
right: -4px; left: 4px;
top: 20px; top: 50%;
transform: translateY(-50%);
height: 100px; height: 100px;
display: flex;
flex-direction: column;
justify-content: center;
} }
.biggerSize { .biggerSize {
position: relative; position: relative;

@ -628,12 +628,12 @@
"selectedIconPath": "static/image/apply-active.png", "selectedIconPath": "static/image/apply-active.png",
"text": "工单" "text": "工单"
}, },
{ // {
"iconPath": "static/image/message.png", // "iconPath": "static/image/message.png",
"selectedIconPath": "static/image/message_active.png", // "selectedIconPath": "static/image/message_active.png",
"pagePath": "pages/message/index", // "pagePath": "pages/message/index",
"text": "消息" // "text": "消息"
}, // },
{ {
"pagePath": "pages/person/index", "pagePath": "pages/person/index",
"iconPath": "static/image/person.png", "iconPath": "static/image/person.png",

@ -101,10 +101,11 @@
<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"> <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" /> <g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div> </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"> <!-- <div hover-class="none" class="g_bg_main g_flex_column_center g_radius_50 g_w_48 g_h_48 g_text_c g_c_f g_fs_12 g_fw_600" style="position: fixed; right: 20px; bottom: 70px; 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 class="g_mb_3" style="line-height:1;">分享</div>
</div> <div class="" style="line-height:1;">职位</div>
<g-filter :show.sync="whichOneShow" @hideDrawer="(e) => (whichOneShow = e)" ref="filterChild" top="43px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter> </div> -->
<g-filter :show.sync="whichOneShow" @hideDrawer="(e) => (whichOneShow = e)" ref="filterChild" top="101px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter>
<u-popup v-model="showPop" mode="bottom" uZindex="9999" border-radius="12" :closeable="true" :mask-close-able="true"> <u-popup v-model="showPop" mode="bottom" uZindex="9999" border-radius="12" :closeable="true" :mask-close-able="true">
<div class="g_fs_18 g_text_c g_pt_32"> <div class="g_fs_18 g_text_c g_pt_32">
@ -159,6 +160,9 @@ export default {
that.computeCode = 1; that.computeCode = 1;
}, 100); }, 100);
} else { } else {
uni.$on("updateJobList", () => {
that.getList();
});
that.getList(); that.getList();
if (uni.getStorageSync("SHOW_INVITE_ALL")) { if (uni.getStorageSync("SHOW_INVITE_ALL")) {
if (uni.getStorageSync("SHOW_INVITE_ALL") == 1 && uni.getStorageSync("SHOW_INVITE") == 1) { if (uni.getStorageSync("SHOW_INVITE_ALL") == 1 && uni.getStorageSync("SHOW_INVITE") == 1) {

@ -191,7 +191,7 @@ export default {
userInfo: { userInfo: {
all: {}, all: {},
avatar: "", avatar: "",
name: "请登录", name: "-",
tel: "-", tel: "-",
num: [ num: [
{ {

@ -502,7 +502,7 @@ export default {
let numBase3 = numBase2 + (ctx.measureText(info.recruitmentJobNum.toString()).width + ctx.measureText("在招数").width + 150); 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.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.fullName, (mycenter - info.fullName.length * 80) / 2, 600, info.fullName.length * 80, 200, "#333", 80, 600, "left"); //
that.G.fillTextLineBreak(ctx, info.agencyDesp, numBase - 40, 870, mycenter - 240, 86, "#666", 56, 500, "center"); // slogan that.G.fillTextLineBreak(ctx, info.agencyDesp, numBase - 55, 870, mycenter - 240, 86, "#666", 56, 500, "center"); // slogan
// that.G.fillTextLineBreak(ctx, "" + info.jobUpdateNum, 140, 400, ("" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); // // that.G.fillTextLineBreak(ctx, "" + info.jobUpdateNum, 140, 400, ("" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); //
const textSegments = [ const textSegments = [

@ -380,6 +380,7 @@ export default {
bindid: $item.id, bindid: $item.id,
isShowMore: false, isShowMore: false,
isShowJob: false, isShowJob: false,
shareForm:'apply'
} }
if (that.tabInfo.active == 0) { if (that.tabInfo.active == 0) {

@ -98,7 +98,7 @@ export default {
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
}, },
onShareAppMessage() { onShareAppMessage1() {
let that = this; let that = this;
let params = { let params = {
id: uni.getStorageSync("apply-agencyId"), id: uni.getStorageSync("apply-agencyId"),

@ -1,29 +1,38 @@
<template> <template>
<div class="p-root-detail-job g_bg_page g_pt_10 g_pl_12 g_pr_12 g_kuaishou"> <div class="p-root-detail-job g_bg_page g_pt_10 g_pl_12 g_pr_12 g_kuaishou">
<!-- {{ from }} --> <!-- {{ from }} -->
<!-- {{ selfJob }} --> <!-- {{ selfJob }} -->
<div v-if="speed == 0"> <div v-if="speed == 0">
<g-loading /> <g-loading />
</div> </div>
<div v-if="speed == 1"> <div v-if="speed == 1">
<view class="r_box g_mb_10" v-if="(isSharePage && isFans == 2) || !isSharePage"> <view class="r_box g_mb_10" v-if="(isSharePage && isFans == 2) || !isSharePage">
<div class="g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16 g_border_e_b" @click="goUserMain" style="height: 60px"> <div class="g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16 g_border_e_b" @click="goUserMain" style="height: 60px">
<view class="g_fw_600 g_mr_4 g_flex_column_center">项目方</view> <view class="g_fw_600 g_mr_4 g_flex_column_center">发单号</view>
<view class="g_flex_row_end flex_center g_flex_1"> <view class="g_flex_row_end flex_center g_flex_1">
<span class="g_c_6" selectable="false" space="false" decode="false">{{ jobDetail.fullName ? jobDetail.fullName : jobDetail.agencyName }}</span> <span class="g_c_6" selectable="false" space="false" decode="false">{{ jobDetail.fullName ? jobDetail.fullName : jobDetail.agencyName }}</span>
<span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span> <span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span>
</view> </view>
</div> </div>
<div class="g_mb_10 g_pl_16 g_pr_16 servicePrice" @click="showFee" style="height: 60px"> <div class="g_mb_10 g_pl_16 g_pr_16 servicePrice" @click="showFee" style="height: 60px">
<div class="g_flex_row_between flex_center g_fs_16"> <div class="g_flex_row_between flex_center g_fs_16">
<div class="g_flex_row_start" style="flex: none"> <div class="g_flex_row_start" style="flex: none">
<div class="g_fw_600 g_mr_4 g_hs_67 g_flex_column_center">代理佣金</div> <div class="g_fw_600 g_mr_4 g_hs_67 g_flex_column_center">代理佣金</div>
<icon :class="showPrice ? 'icon-zhengyan1' : 'icon-biyan1'" class="iconfont g_c_f40 g_fs_22 g_hs_67 g_flex_column_center" @click.stop="() => (showPrice = !showPrice)" style="width: 67px"></icon> <icon :class="showPrice ? 'icon-zhengyan1' : 'icon-biyan1'" class="iconfont g_c_f40 g_fs_22 g_hs_67 g_flex_column_center" @click.stop="() => (showPrice = !showPrice)" style="width: 67px"></icon>
</div> </div>
<div class="g_flex_row_end flex_center g_hs_67" style="flex: 1"> <div class="g_flex_row_end flex_center g_hs_67" style="flex: 1">
<span class v-if="showPrice">{{ jobDetail.serverPrice || "" }}</span> <span class v-if="showPrice">{{ jobDetail.serverPrice || "" }}</span>
<span class v-else>***</span> <span class v-else>***</span>
<div class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></div> <div class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></div>
</div> </div>
</div> </div>
@ -31,11 +40,14 @@
</view> </view>
<!-- 基本信息 --> <!-- 基本信息 -->
<view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_kuaishou g_radius_8 g_pb_16"> <view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_kuaishou g_radius_8 g_pb_16">
<div class="m-info g_mb_12"> <div class="m-info g_mb_12">
<i class="iconfont icon-yitingzhao" v-if="jobDetail.recruitment == 2" style="position: absolute; right: 30px; top: 30%; transform: translateY(-50%); color: #ff4d4f; font-size: 80px; z-index: 1"></i> <i class="iconfont icon-yitingzhao" v-if="jobDetail.recruitment == 2" style="position: absolute; right: 30px; top: 30%; transform: translateY(-50%); color: #ff4d4f; font-size: 80px; z-index: 1"></i>
<view class="g_mb_10 g_flex_row_between flex_center"> <view class="g_mb_10 g_flex_row_between flex_center">
<view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view> <view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view>
<view class="g_fs_14 g_c_9"> <view class="g_fs_14 g_c_9">
{{ jobDetail.updateTime }} {{ jobDetail.updateTime }}
</view> </view>
@ -133,28 +145,38 @@
<template v-for="(item, index) in templateArr" :key="index"> <template v-for="(item, index) in templateArr" :key="index">
<view class="g_flex_row_start flex_center g_fw_600 g_mt_12 g_mb_8 g_fs_16" v-if="item.show"> <view class="g_flex_row_start flex_center g_fw_600 g_mt_12 g_mb_8 g_fs_16" v-if="item.show">
<view class="" v-if="item.num == 1"></view> <view class="" v-if="item.num == 1"></view>
<view class="" v-if="item.num == 2"></view> <view class="" v-if="item.num == 2"></view>
<view class="" v-if="item.num == 3"></view> <view class="" v-if="item.num == 3"></view>
<view class="" v-if="item.num == 4"></view> <view class="" v-if="item.num == 4"></view>
<view class="" v-if="item.num == 5"></view> <view class="" v-if="item.num == 5"></view>
<view class="" v-if="item.num == 6"></view> <view class="" v-if="item.num == 6"></view>
<view class=""> <view class="">
{{ item.type }} {{ item.type }}
</view> </view>
</view> </view>
<template v-for="(inner, index) in item.children" :key="index"> <template v-for="(inner, index) in item.children" :key="index">
<view class="g_flex_row_start g_fs_14" style="line-height: 22px; padding-left: 16px" v-if="inner.show"> <view class="g_flex_row_start g_fs_14" style="line-height: 22px; padding-left: 16px" v-if="inner.show">
<view class="g_flex_row_start flex_start g_fw_600"> <view class="g_flex_row_start flex_start g_fw_600">
<view class="g_mr_4" hover-class="none" hover-stop-propagation="false"> <view class="g_mr_4" hover-class="none" hover-stop-propagation="false">
{{ `${inner.num}. ` }} {{ `${inner.num}. ` }}
</view> </view>
<view class="g_flex_1"> <view class="g_flex_1">
{{ `${inner.key}: ` }} {{ `${inner.key}: ` }}
<text class="g_fw_400 g_ml_4" selectable="false" space="false" decode="false"> <text class="g_fw_400 g_ml_4" selectable="false" space="false" decode="false">
{{ inner.value }} {{ inner.value }}
</text> </text>
</view> </view>
</view> </view>
<!-- @blur="inner.edit = false" --> <!-- @blur="inner.edit = false" -->
</view> </view>
</template> </template>
@ -203,25 +225,33 @@
</div> </div>
<template v-if="jobDetail.classify == 1"> <template v-if="jobDetail.classify == 1">
<div class="g_fs_14 g_c_6 g_mb_12 g_c_f40 g_lh_1_2 g_flex_column_center g_mr_18">{{ jobDetail.priceStr }}</div> <div class="g_fs_14 g_c_6 g_mb_12 g_c_f40 g_lh_1_2 g_flex_column_center g_mr_18">
{{ jobDetail.priceStr }}
</div>
<div class="g_flex_row_start g_mb_10"> <div class="g_flex_row_start g_mb_10">
<div class="g_flex_row_start g_mr_18" v-if="jobDetail.addressStr"> <div class="g_flex_row_start g_mr_18" v-if="jobDetail.addressStr">
<div class="g_flex_column_center"> <div class="g_flex_column_center">
<i class="iconfont icon-dingwei2 g_c_6 g_fs_17 g_lh_1_2"></i> <i class="iconfont icon-dingwei2 g_c_6 g_fs_17 g_lh_1_2"></i>
</div> </div>
<div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.addressStr }}</div> <div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.addressStr }}</div>
</div> </div>
<div class="g_flex_row_start"> <div class="g_flex_row_start">
<div class="g_flex_column_center"> <div class="g_flex_column_center">
<i class="iconfont icon-nianling g_c_6 g_fs_16 g_lh_1_2"></i> <i class="iconfont icon-nianling g_c_6 g_fs_16 g_lh_1_2"></i>
</div> </div>
<div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.genderAge }}</div> <div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.genderAge }}</div>
</div> </div>
</div> </div>
<div class="g_flex_row_start"> <div class="g_flex_row_start">
<div class="g_flex_column_center"> <div class="g_flex_column_center">
<i class="iconfont icon-zhaopinqiye g_c_6 g_lh_1_2"></i> <i class="iconfont icon-zhaopinqiye g_c_6 g_lh_1_2"></i>
</div> </div>
<div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.storeName }}</div> <div class="g_fs_14 g_c_6 g_ml_4 g_lh_1_2 g_flex_column_center">{{ jobDetail.storeName }}</div>
</div> </div>
</template> </template>
@ -344,28 +374,38 @@
<template v-for="(item, index) in templateArr"> <template v-for="(item, index) in templateArr">
<div class="g_flex_row_start flex_center g_fw_600 g_mt_12 g_mb_8 g_fs_16" :key="index" v-if="item.show"> <div class="g_flex_row_start flex_center g_fw_600 g_mt_12 g_mb_8 g_fs_16" :key="index" v-if="item.show">
<div class="" v-if="item.num == 1"></div> <div class="" v-if="item.num == 1"></div>
<div class="" v-if="item.num == 2"></div> <div class="" v-if="item.num == 2"></div>
<div class="" v-if="item.num == 3"></div> <div class="" v-if="item.num == 3"></div>
<div class="" v-if="item.num == 4"></div> <div class="" v-if="item.num == 4"></div>
<div class="" v-if="item.num == 5"></div> <div class="" v-if="item.num == 5"></div>
<div class="" v-if="item.num == 6"></div> <div class="" v-if="item.num == 6"></div>
<div class=""> <div class="">
{{ item.type }} {{ item.type }}
</div> </div>
</div> </div>
<template v-for="(inner, index) in item.children"> <template v-for="(inner, index) in item.children">
<div class="g_flex_row_start g_fs_14" :key="index" style="line-height: 22px; padding-left: 16px" v-if="inner.show"> <div class="g_flex_row_start g_fs_14" :key="index" style="line-height: 22px; padding-left: 16px" v-if="inner.show">
<div class="g_flex_row_start flex_start g_fw_600"> <div class="g_flex_row_start flex_start g_fw_600">
<div class="g_mr_4" hover-class="none" hover-stop-propagation="false"> <div class="g_mr_4" hover-class="none" hover-stop-propagation="false">
{{ `${inner.num}. ` }} {{ `${inner.num}. ` }}
</div> </div>
<div class="g_flex_1"> <div class="g_flex_1">
{{ `${inner.key}: ` }} {{ `${inner.key}: ` }}
<text class="g_fw_400 g_ml_4" selectable="false" space="false" decode="false"> <text class="g_fw_400 g_ml_4" selectable="false" space="false" decode="false">
{{ inner.value }} {{ inner.value }}
</text> </text>
</div> </div>
</div> </div>
<!-- @blur="inner.edit = false" --> <!-- @blur="inner.edit = false" -->
</div> </div>
</template> </template>
@ -557,7 +597,7 @@ export default {
let that = this; let that = this;
let path; let path;
console.log("that.loginInfo", that.loginInfo); console.log("that.loginInfo", that.loginInfo);
// id___ // id___
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.jobDetail.agencyId}_${that.shareUserId || that.loginInfo.user.id}_${that.shareUserAgencyId ? (that.isFans == 2 ? that.loginInfo.agencyId : that.shareUserAgencyId) : that.loginInfo.agencyId}`; path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.jobDetail.agencyId}_${that.shareUserId || that.loginInfo.user.id}_${that.shareUserAgencyId ? (that.isFans == 2 ? that.loginInfo.agencyId : that.shareUserAgencyId) : that.loginInfo.agencyId}`;
return { return {
promise: new Promise((resolve, reject) => { promise: new Promise((resolve, reject) => {
@ -688,11 +728,11 @@ export default {
var sceneJson = this.G.sceneToJson(sceneStr); var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
console.log("id对应的角色", "职位id_职位项目方_分享人_分享人团队"); console.log("id对应的角色", "职位id_职位项目方_分享人_分享人团队");
// id___ // id___
this.uid = sceneJson.id.split("_")[0]; //id this.uid = sceneJson.id.split("_")[0]; // id
this.shareJobAgencyId = sceneJson.id.split("_")[1]; //id this.shareJobAgencyId = sceneJson.id.split("_")[1]; // id
this.shareUserId = sceneJson.id.split("_")[2]; //id this.shareUserId = sceneJson.id.split("_")[2]; // id
this.shareUserAgencyId = sceneJson.id.split("_")[3]; //id this.shareUserAgencyId = sceneJson.id.split("_")[3]; // id
this.isSharePage = true; this.isSharePage = true;
loginUrl = `/root/person/loginIndex?type=detail&path=/root/detail/job&scene=${JSON.stringify(sceneJson)}`; loginUrl = `/root/person/loginIndex?type=detail&path=/root/detail/job&scene=${JSON.stringify(sceneJson)}`;
} }
@ -824,6 +864,7 @@ export default {
id: that.jobDetail.agencyId, id: that.jobDetail.agencyId,
isShowMore: false, isShowMore: false,
jobDetailShow: false, jobDetailShow: false,
shareForm: "apply",
}; };
uni.navigateTo({ uni.navigateTo({
url: "/root/detail/userShare?" + that.G.objToStr(params), url: "/root/detail/userShare?" + that.G.objToStr(params),
@ -972,6 +1013,7 @@ export default {
id: this.jobDetail.agencyId, id: this.jobDetail.agencyId,
isShowMore: true, isShowMore: true,
isShowJob: true, isShowJob: true,
shareForm: "apply",
}; };
uni.navigateTo({ uni.navigateTo({
url: "/root/detail/userShare?" + that.G.objToStr(params), url: "/root/detail/userShare?" + that.G.objToStr(params),
@ -1510,7 +1552,6 @@ export default {
z-index: 1111; z-index: 1111;
background-color: #ffffff66; background-color: #ffffff66;
border-radius: 50%; border-radius: 50%;
.iconfont { .iconfont {
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
@ -1527,17 +1568,14 @@ export default {
background-color: rgba(0, 182, 102, 0.05); background-color: rgba(0, 182, 102, 0.05);
} }
} }
.m-banner { .m-banner {
.u-swiper__wrapper__item { .u-swiper__wrapper__item {
margin-right: 10px; margin-right: 10px;
} }
image { image {
border-radius: 4px !important; border-radius: 4px !important;
} }
} }
.m-state { .m-state {
position: fixed; position: fixed;
left: 0; left: 0;
@ -1545,7 +1583,6 @@ export default {
z-index: 1; z-index: 1;
box-shadow: 0px -4rpx 8rpx 0px rgba(218, 218, 218, 0.5); box-shadow: 0px -4rpx 8rpx 0px rgba(218, 218, 218, 0.5);
} }
.apply { .apply {
.link { .link {
.item { .item {
@ -1553,15 +1590,12 @@ export default {
width: 240rpx; width: 240rpx;
height: 76rpx; height: 76rpx;
border-radius: 42rpx; border-radius: 42rpx;
&:first-child { &:first-child {
border: 2rpx solid #00b666; border: 2rpx solid #00b666;
} }
} }
.label { .label {
position: relative; position: relative;
&::before { &::before {
content: "*"; content: "*";
color: #ff0000; color: #ff0000;
@ -1570,7 +1604,6 @@ export default {
} }
} }
} }
.riliIcon { .riliIcon {
position: absolute; position: absolute;
right: 15px; right: 15px;
@ -1579,8 +1612,7 @@ export default {
z-index: 1; z-index: 1;
} }
.servicePrice { .servicePrice {
height: 64px; height: 64px; // background-color: #ffeee7;
// background-color: #ffeee7;
// border-right-color: transparent; // border-right-color: transparent;
// border-left-color: transparent; // border-left-color: transparent;
// width: 100vw; // width: 100vw;
@ -1613,7 +1645,6 @@ export default {
padding: 0px 8px; padding: 0px 8px;
height: 16px; height: 16px;
line-height: 16px; line-height: 16px;
margin-right: 16px; margin-right: 16px;
} }
.detailH3 { .detailH3 {
@ -1633,6 +1664,7 @@ export default {
color: #333; color: #333;
} }
} }
.g_hs_67 { .g_hs_67 {
height: 60px; height: 60px;
} }

@ -1,5 +1,8 @@
<template> <template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou"> <div class="g_flex_row_center" style="margin-top: 120px" v-if="!showPage">
<g-loading text="加载中..."></g-loading>
</div>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou" v-if="showPage">
<u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="background" :backIconName="fromShare ? 'home' : 'arrow-left'"></u-navbar> <u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="background" :backIconName="fromShare ? 'home' : 'arrow-left'"></u-navbar>
<view class="scroll-container" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd"> <view class="scroll-container" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd">
<view class="background-container" style="width: 100%; overflow: hidden"> <view class="background-container" style="width: 100%; overflow: hidden">
@ -182,6 +185,7 @@ export default {
data() { data() {
return { return {
numSlot: [], numSlot: [],
showPage: false,
fromShare: false, fromShare: false,
background: { background: {
backgroundColor: "transparent", backgroundColor: "transparent",
@ -285,9 +289,12 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
let that = this;
console.log("用户详情页:", options, " version:", 1); console.log("用户详情页:", options, " version:", 1);
this.loginId = uni.getStorageSync("apply-agencyId"); this.loginId = uni.getStorageSync("apply-agencyId");
that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token");
this.loginInfo = uni.getStorageSync("apply-userinfo");
if (this.loginId == options.id && options.id) { if (this.loginId == options.id && options.id) {
this.isSelf = true; this.isSelf = true;
} }
@ -305,6 +312,7 @@ export default {
this.isShowMore = options.isShowMore ? true : false; this.isShowMore = options.isShowMore ? true : false;
this.isShowJob = options.isShowJob; this.isShowJob = options.isShowJob;
this.fromShare = false; this.fromShare = false;
this.showPage = true;
} }
this.type = options.type ? options.type : ""; this.type = options.type ? options.type : "";
this.jobDetailShow = options.jobDetailShow || true; this.jobDetailShow = options.jobDetailShow || true;
@ -316,15 +324,21 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token");
console.log("that.isLogin", that.isLogin); console.log("that.isLogin", that.isLogin);
this.loginInfo = uni.getStorageSync("apply-userinfo");
that.G.Get("/checkUserLogin", {}, (res) => { that.G.Get("/checkUserLogin", {}, (res) => {
console.log("checkUserLogin", res); console.log("checkUserLogin", res);
if (res) { if (res) {
// //
that.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => { that.getAgencyById().then(() => {
if (that.from !== "apply") {
if (that.info.recordStatus == 1) {
uni.switchTab({
url: "/pages/home/index",
});
return;
}
}
if (that.isLogin) { if (that.isLogin) {
that.getDefault("init"); that.getDefault("init");
} else { } else {
@ -790,6 +804,8 @@ export default {
that.agencyId = res.id; that.agencyId = res.id;
that.speed = res.jobList.length; that.speed = res.jobList.length;
that.showPage = true;
if (res.id == that.agencyInfo.id) { if (res.id == that.agencyInfo.id) {
that.isSelf = true; that.isSelf = true;
} }

@ -75,14 +75,6 @@
</div> </div>
</block> </block>
</div> </div>
<!-- <div class="specialTag" wx:if="{{selectJobList.length > 0}}">
<block wx:for="{{selectJobList}}" wx:key="index">
<div class="por" catchtap="deleteMark" data-item="{{item}}">
{{item.name}}
<div class="clear_icon iconfont icon-qingchu"></div>
</div>
</block>
</div> -->
</div> </div>
<div class="clear" @click.stop="clearFilter1" data-type="outerClear"> <div class="clear" @click.stop="clearFilter1" data-type="outerClear">
<span class="iconfont icon-shanchu f14"></span> <span class="iconfont icon-shanchu f14"></span>
@ -104,7 +96,7 @@
<!-- bindtap="shareJobList" --> <!-- bindtap="shareJobList" -->
<button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" :open-type="checkedList.length > 0 ? 'share' : ''" :class="checkedList.length > 0 ? '' : 'ban'">分享职位</button> <button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" :open-type="checkedList.length > 0 ? 'share' : ''" :class="checkedList.length > 0 ? '' : 'ban'">分享职位</button>
<button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" @click="copyTrans" :class="checkedList.length > 0 ? '' : 'ban'">复制详单</button> <button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" @click="copyTrans" :class="checkedList.length > 0 ? '' : 'ban'">复制详单</button>
<button :hover-class="checkedList.length > 0 && checkedList.length <= 3 ? 'btnHover' : ''" @click="sharePoster" :class="checkedList.length > 0 && checkedList.length <= 3 ? '' : 'ban'">分享海报</button> <!-- <button :hover-class="checkedList.length > 0 && checkedList.length <= 3 ? 'btnHover' : ''" @click="sharePoster" :class="checkedList.length > 0 && checkedList.length <= 3 ? '' : 'ban'">分享海报</button> -->
</div> </div>
</div> </div>
<!-- </div> --> <!-- </div> -->
@ -144,11 +136,11 @@ export default {
}); });
this.getCanvas(this.shareJobBaseImg, "setJob").then((res) => { this.getCanvas(this.shareJobBaseImg, "setJob").then((res) => {
console.log(res); console.log(res);
wx.hideLoading(); uni.hideLoading();
resolve({ resolve({
title: "你想找的厂都有,立即查看??", title: "你想找的厂都有,立即查看??",
imageUrl: res.tempFilePath, imageUrl: res.tempFilePath,
path: `/root/detail/shareList?scene=i=${arr.join("_")},u=${this.appInfo.id}`, path: `/root/home/shareList?scene=i=${arr.join("_")},u=${this.userInfo.agencyId}_${this.userInfo.id}`,
// path: '/pages/shareList/index' // path: '/pages/shareList/index'
}); });
// return // return
@ -257,7 +249,7 @@ export default {
methods: { methods: {
loadSelectedCityFromCache() { loadSelectedCityFromCache() {
// 'selectedCity' // 'selectedCity'
const cachedCity = wx.getStorageSync("selectedCity"); const cachedCity = uni.getStorageSync("selectedCity");
if (cachedCity && this.selectedCity != cachedCity) { if (cachedCity && this.selectedCity != cachedCity) {
this.selectedCity = cachedCity; this.selectedCity = cachedCity;
this.getList(); this.getList();
@ -417,20 +409,20 @@ export default {
return { return {
...item, ...item,
title: item.jobName, title: item.jobName,
address: item.district + item.age, address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay), price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
logo: item.agencyLogo, logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, "jiaofu"), time: that.G.setDeadLine(item.updateTime, "jiaofu"),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType), fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item), gender: that.G.getGenderByMinAge(item),
leafCateId: item.id, leafCateId: item.id,
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), // serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false, recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment, recruitmentImage: item.recruitment,
active: that.tabInfo.active, active: that.tabInfo.active,
isToday: item.today == 0 ? false : true, isToday: item.today == 0 ? false : true,
tip: that.tabInfo.list[that.tabInfo.active].tip, tip: that.tabInfo.list[that.tabInfo.active].tip,
}; };
}); });
} else { } else {
@ -438,21 +430,21 @@ export default {
res.recordList.map((item, index) => { res.recordList.map((item, index) => {
return { return {
...item, ...item,
title: item.jobName, title: item.jobName,
address: item.district + item.age, address: item.district + item.age,
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay), price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
logo: item.agencyLogo, logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, "jiaofu"), time: that.G.setDeadLine(item.updateTime, "jiaofu"),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType), fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item), gender: that.G.getGenderByMinAge(item),
leafCateId: item.id, leafCateId: item.id,
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), // serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false, recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment, recruitmentImage: item.recruitment,
active: that.tabInfo.active, active: that.tabInfo.active,
isToday: item.today == 0 ? false : true, isToday: item.today == 0 ? false : true,
tip: that.tabInfo.list[that.tabInfo.active].tip, tip: that.tabInfo.list[that.tabInfo.active].tip,
}; };
}) })
); );
@ -519,13 +511,13 @@ export default {
} }
str += subStr; str += subStr;
}); });
wx.setClipboardData({ uni.setClipboardData({
data: str, data: str,
success(res) { success(res) {
wx.getClipboardData({ uni.getClipboardData({
success(res) { success(res) {
console.log(res.data); // data console.log(res.data); // data
wx.showToast({ uni.showToast({
title: "通告内容已复制", title: "通告内容已复制",
icon: "none", icon: "none",
duration: 1500, duration: 1500,
@ -544,7 +536,7 @@ export default {
if (this.checkedList.length == 0 || this.checkedList.length > 3) { if (this.checkedList.length == 0 || this.checkedList.length > 3) {
return; return;
} }
wx.showLoading({ uni.showLoading({
title: "生成中...", title: "生成中...",
}); });
@ -552,7 +544,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.getCanvas(this.sharelImg, "setShare").then((res) => { this.getCanvas(this.sharelImg, "setShare").then((res) => {
console.log(res); console.log(res);
wx.hideLoading(); uni.hideLoading();
this.posterImg = res.tempFilePath; this.posterImg = res.tempFilePath;
this.$forceUpdate(); this.$forceUpdate();
this.posterShow = true; this.posterShow = true;
@ -573,7 +565,7 @@ export default {
// }); // });
// } else { // } else {
that.G.Get(that.api.get_job_QRcode, { storeJobIds: that.checkedList.map((item) => item.id).join(",") }, (res) => { that.G.Get(that.api.get_job_QRcode, { storeJobIds: that.checkedList.map((item) => item.id).join(",") }, (res) => {
console.log(res); console.log("get_job_QRcode", res);
that.currCode = res.qrcode; that.currCode = res.qrcode;
resolve(); resolve();
}); });
@ -586,7 +578,7 @@ export default {
return new Promise((resolve) => { return new Promise((resolve) => {
var mycenter = 0; // var mycenter = 0; //
var myheight = 0; // var myheight = 0; //
const query = wx.createSelectorQuery(); const query = uni.createSelectorQuery();
query query
.select("#canvasId") .select("#canvasId")
.fields({ node: true, size: true }) .fields({ node: true, size: true })
@ -596,7 +588,7 @@ export default {
const ctx = canvas.getContext("2d"); const ctx = canvas.getContext("2d");
new Promise(function (resolve) { new Promise(function (resolve) {
// //
wx.getImageInfo({ uni.getImageInfo({
src: sharelImg, // src: sharelImg, //
success(res) { success(res) {
console.log(res); console.log(res);
@ -637,7 +629,7 @@ export default {
n = i; n = i;
} }
initHeight = lh * r; initHeight = lh * r;
// wx.setStorageSync("initHeight", initHeight); // uni.setStorageSync("initHeight", initHeight);
}; };
const roundRect = (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r) => { const roundRect = (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r) => {
// //
@ -679,15 +671,15 @@ export default {
if (type == "setJob") { if (type == "setJob") {
this.setShareJobImg(ctx, canvas, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak }) this.setShareJobImg(ctx, canvas, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak })
.then(function (canvas1) { .then(function (canvas1) {
wx.canvasToTempFilePath({ uni.canvasToTempFilePath({
canvas: canvas1, canvas: canvas1,
success(res) { success(res) {
console.log(res); console.log(res);
resolve(res); resolve(res);
}, },
fail(res) { fail(res) {
wx.hideLoading(); uni.hideLoading();
wx.showToast({ uni.showToast({
title: res.errMsg, title: res.errMsg,
icon: "error", icon: "error",
}); });
@ -696,23 +688,23 @@ export default {
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
wx.hideLoading(); uni.hideLoading();
wx.showToast({ uni.showToast({
title: "生成失败,请重试", title: "生成失败,请重试",
}); });
}); });
} else if (type == "setShare") { } else if (type == "setShare") {
this.setShareImg(ctx, canvas, mycenter, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak }) this.setShareImg(ctx, canvas, mycenter, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak })
.then(function (canvas1) { .then(function (canvas1) {
wx.canvasToTempFilePath({ uni.canvasToTempFilePath({
canvas: canvas1, canvas: canvas1,
success(res) { success(res) {
console.log(res); console.log(res);
resolve(res); resolve(res);
}, },
fail(res) { fail(res) {
wx.hideLoading(); uni.hideLoading();
wx.showToast({ uni.showToast({
title: res.errMsg, title: res.errMsg,
icon: "error", icon: "error",
}); });
@ -721,8 +713,8 @@ export default {
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
wx.hideLoading(); uni.hideLoading();
wx.showToast({ uni.showToast({
title: "生成失败,请重试", title: "生成失败,请重试",
}); });
}); });
@ -768,7 +760,7 @@ export default {
markTop = 2 * 115; markTop = 2 * 115;
console.log(123); console.log(123);
console.log("https://daotian.matripe.com.cn" + that.currCode); console.log("https://daotian.matripe.com.cn" + that.currCode);
wx.getImageInfo({ uni.getImageInfo({
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //, // src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //,
src: "https://daotian.matripe.com.cn" + that.currCode, src: "https://daotian.matripe.com.cn" + that.currCode,
success(res) { success(res) {
@ -798,7 +790,7 @@ export default {
} }
}); });
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 500 * 2, 20, "#333", titleSize, "600"); // _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"); // _G.fillTextLineBreak(ctx, item.salaryClassifyValue, logoLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", titleSize - 4, "600"); //
@ -822,7 +814,7 @@ export default {
} }
imgres(canvas); imgres(canvas);
//logo //logo
// wx.getImageInfo({ // uni.getImageInfo({
// src: item.logo, //, // src: item.logo, //,
// success(res) { // success(res) {
// // console.log(res); // // console.log(res);
@ -883,7 +875,7 @@ export default {
let labelLeft = 0; let labelLeft = 0;
console.log("item1", item); console.log("item1", item);
_G.roundRect1(ctx, 32, baseTop - 60 + baseMiddle * index, 776, roundRectHeight, 24, "#fff"); _G.roundRect1(ctx, 32, baseTop - 60 + baseMiddle * index, 776, roundRectHeight, 24, "#fff");
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 500, 20, "#333", titleSize, "500"); // _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, salaryClassifyValueLeft + 500, baseTop - 10 + salaryClassifyValueTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); //
// setTimeout(() => { // setTimeout(() => {
// _G.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 , 20, "#ff4400", monthlyPaySize, "400"); // // _G.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 , 20, "#ff4400", monthlyPaySize, "400"); //

@ -1,6 +1,6 @@
<template> <template>
<view class="p-root-detail-apply g_w_all g_bg_f_5 g_kuaishou g_pt_10"> <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" /> <g-list-job from="shareList" class="g_flex_1" :recordStatus="userRole.recordStatus" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" />
</view> </view>
</template> </template>
@ -9,7 +9,7 @@ export default {
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
}, },
onShareAppMessage() { onShareAppMessage1() {
return this.G.shareFun(); return this.G.shareFun();
}, },
data() { data() {
@ -17,6 +17,8 @@ export default {
cdnBaseImg: this.G.store().cdnBaseImg, cdnBaseImg: this.G.store().cdnBaseImg,
agencyId: uni.getStorageSync("apply-agencyId"), agencyId: uni.getStorageSync("apply-agencyId"),
isAdmin: uni.getStorageSync("apply-userinfo").admin, isAdmin: uni.getStorageSync("apply-userinfo").admin,
userRole: {},
shareUserInfo: {},
isCreator: false, // isCreator: false, //
speed: -1, speed: -1,
query: { query: {
@ -27,7 +29,7 @@ export default {
ujc: 0, // 0 1 ujc: 0, // 0 1
}, },
isLogin: true, isLogin: true,
loading:false loading: false,
}; };
}, },
onLoad(options) { onLoad(options) {
@ -40,9 +42,17 @@ export default {
var sceneJson = this.G.sceneToJson(sceneStr); var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
this.sceneStoreJobId = sceneJson.i; this.sceneStoreJobId = sceneJson.i;
let u = sceneJson.u.split("_");
this.shareUserInfo = {
agencyId: u[0],
agencyUserId: u[1],
};
// this.sceneStoreJobId = sceneJson.u;
uni.setStorageSync("AGENCY_USER_ID", sceneJson.u); uni.setStorageSync("AGENCY_USER_ID", sceneJson.u);
// app.globalData.sceneStoreJobId = sceneJson.ids // app.globalData.sceneStoreJobId = sceneJson.ids
this.getList(); this.getUserRole().then(() => {
this.getList();
});
} }
if (uni.getStorageSync("apply-userinfo")) { if (uni.getStorageSync("apply-userinfo")) {
this.isLogin = true; this.isLogin = true;
@ -52,6 +62,16 @@ export default {
}, },
onShow() {}, onShow() {},
methods: { methods: {
getUserRole() {
let that = this;
return new Promise((resolve, reject) => {
this.G.Get(this.api.order_getAgencyByIdForApply, { agencyId: that.shareUserInfo.agencyId, inviteUserId: this.shareUserInfo.agencyUserId }, (res) => {
console.log("resresresresresres++++++++++++++", res);
that.userRole = res;
resolve();
});
});
},
getList($type = "init") { getList($type = "init") {
let that = this; let that = this;
that.G.Get( that.G.Get(
@ -73,11 +93,19 @@ export default {
that.query.list = res.list.map((item, index) => { that.query.list = res.list.map((item, index) => {
return { return {
...item, ...item,
collected: item.collected ? true : false, title: item.jobName,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪", address: item.district + item.age,
salaryClassifyValue: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : "月薪", price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
// jobDesp: item.jobDesp.replaceAll("*****", "").split("")[0], logo: item.agencyLogo,
gender: that.G.getGenderByMinAge(item), time: that.G.setDeadLine(item.updateTime, "jiaofu"),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item),
leafCateId: item.id,
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
}; };
}); });
} else { } else {
@ -85,11 +113,19 @@ export default {
res.list.map((item, index) => { res.list.map((item, index) => {
return { return {
...item, ...item,
collected: item.collected ? true : false, title: item.jobName,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪", address: item.district + item.age,
salaryClassifyValue: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : "月薪", price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
// jobDesp: item.jobDesp.replaceAll("*****", "").split("")[0], logo: item.agencyLogo,
time: that.G.setDeadLine(item.updateTime, "jiaofu"),
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
gender: that.G.getGenderByMinAge(item), gender: that.G.getGenderByMinAge(item),
leafCateId: item.id,
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
}; };
}) })
); );
@ -101,11 +137,12 @@ export default {
console.log("前往详情页", $item); console.log("前往详情页", $item);
if (this.isLogin) { if (this.isLogin) {
uni.navigateTo({ uni.navigateTo({
url: "/root/detail/work?id=" + $item.id, // id___
url: `/root/detail/job?scene=id%3D${$item.id}_${$item.agencyId}_${this.shareUserInfo.agencyUserId}_${this.shareUserInfo.agencyId}`,
}); });
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: "/root/login/index", url: "/root/person/loginIndex",
}); });
} }
}, },

@ -1,79 +1,81 @@
<template> <template>
<div class="g_bg_page g_pl_10 g_pr_10"> <div class="g_bg_page g_pl_10 g_pr_10">
<div class="g_h_10"></div> <div class="g_h_10"></div>
<div class="r_box g_text_c" style="padding:48px 0 40px;"> <div class="r_box g_text_c" style="padding: 48px 0 40px">
<div> <div>
<i class="icon-time-circle-fill iconfont g_c_10a" style="font-size: 84px"></i> <i class="icon-check-1 iconfont g_c_main" style="font-size: 84px"></i>
</div> </div>
<div class="g_mt_20 g_fs_18">已提交申请</div> <div class="g_mt_20 g_fs_18">关注成功</div>
</div> <div class="g_mt_8 g_fs_14 g_c_main" style="text-decoration: underline" @click="goHome('/pages/home/index')"></div>
<div class="r_box g_text_c g_h_56 g_mt_10 g_flex_row_between flex_center g_fs_16 g_pl_10 g_pr_10"> </div>
<div class="g_fw_600">我的团队</div> <div class="r_box g_text_c g_h_56 g_mt_10 g_flex_row_between flex_center g_fs_16 g_pl_10 g_pr_10">
<div class="g_c_9">{{ agencyInfo.fullName || agencyInfo.userName }}{{agencyNum > 0 ? `${agencyNum}人)`:''}}</div> <div class="g_fw_600">我的团队</div>
</div> <div class="g_c_9">{{ agencyInfo.fullName || agencyInfo.userName }}{{ agencyNum > 0 ? `${agencyNum}人)` : "" }}</div>
<div class="r_box g_pl_10 g_pr_10 g_mt_10 g_pb_40"> </div>
<div class="g_text_c g_fs_18 g_fw_600 g_pt_12 g_pb_12" style="border-bottom: 1rpx dotted #eee">添加团队成员</div> <div class="r_box g_pl_10 g_pr_10 g_mt_10 g_pb_40">
<div class="g_pt_12 g_c_3 g_fs_14"> <div class="g_text_c g_fs_18 g_fw_600 g_pt_12 g_pb_12" style="border-bottom: 1rpx dotted #eee">添加团队成员</div>
<p class="g_mb_10 g_fw_600">为什么要添加成员到团队?</p> <div class="g_pt_12 g_c_3 g_fs_14">
<div class="g_pl_20 g_c_6"> <p class="g_mb_10 g_fw_600">为什么要添加成员到团队?</p>
<p>1.发单号是以团队为单位进行发单和关注的</p> <div class="g_pl_20 g_c_6">
<p>2.创建人关注发单号后内部成员均可报名</p> <p>1.发单号是以团队为单位进行发单和关注的</p>
<p>3.团队成员无需再次关注共享报名权限</p> <p>2.创建人关注发单号后内部成员均可报名</p>
<p>4.系统自动完成团队内部数据汇总与统计</p> <p>3.团队成员无需再次关注共享报名权限</p>
</div> <p>4.系统自动完成团队内部数据汇总与统计</p>
</div> </div>
<div class="g_mt_40 g_flex_row_center"> </div>
<div class="g_w_160"> <div class="g_mt_40 g_flex_row_center">
<g-button btnText="去添加" size="auto" type="primary" @clickBtn="goPage('/root/person/teamManage')"></g-button> <div class="g_flex_1">
<!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> --> <g-button btnText="去添加" size="auto" type="primary" @clickBtn="goPage('/root/person/teamManage')"></g-button>
</div> <!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> -->
<div class="g_w_160 g_ml_12"> </div>
<g-button btnText="回首页" size="auto" type="default" @clickBtn="goHome('/pages/home/index')"></g-button> <div class="g_flex_1 g_ml_12">
<!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> --> <g-button btnText="回首页" size="auto" type="default" @clickBtn="goHome('/pages/home/index')"></g-button>
</div> <!-- <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> -->
<!-- <div class="g_w_120"> </div>
<!-- <div class="g_w_120">
<g-button btnText="微信邀请" size="auto" type="primary" class="" @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button> <g-button btnText="微信邀请" size="auto" type="primary" class="" @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div>--> </div>-->
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
ing: false, ing: false,
agencyNum: 0, agencyNum: 0,
agencyInfo: uni.getStorageSync('agencyInfo'), agencyInfo: uni.getStorageSync("agencyInfo"),
} };
}, },
onLoad(options) { onLoad(options) {
console.log(options) console.log(options);
this.getNum() this.getNum();
}, },
created() {}, created() {},
methods: { methods: {
getNum() { // getNum() {
let that = this // let that = this;
this.G.Get(this.api.bind_getAgencyCorpUsersNum, '', (res) => { // this.G.Get(this.api.bind_getAgencyCorpUsersNum, "", (res) => {
console.log('res', res) // console.log("res", res);
that.agencyNum = res // that.agencyNum = res;
}) // });
}, // },
goPage(url) { goPage(url) {
uni.navigateTo({ uni.navigateTo({
url, url,
}) });
}, },
goHome(url){ goHome(url) {
uni.switchTab({ uni.$emit("updateJobList");
url uni.switchTab({
}); url,
} });
}, },
} },
};
</script> </script>
<style></style> <style></style>

@ -127,31 +127,31 @@ export default {
}; };
}, },
onLoad() { onLoad() {
console.log('企业资料 load') console.log("企业资料 load");
}, },
onShow() { onShow() {
console.log('企业资料 show') console.log("企业资料 show");
}, },
created() { created() {
var that = this; var that = this;
console.log('企业资料 created') console.log("企业资料 created");
uni.$on("changeCompanyDesp", function (data) { uni.$on("changeCompanyDesp", function (data) {
console.log("data", data); console.log("data", data);
console.log("changeCompanyDespchangeCompanyDespchangeCompanyDespchangeCompanyDesp"); console.log("changeCompanyDespchangeCompanyDespchangeCompanyDespchangeCompanyDesp");
that.getAgencyInfo(); that.getAgencyInfo();
}); });
uni.$on("getBossAvatar", function (data) { uni.$on("getBossAvatar", function (data) {
console.log("接收到 getBossAvatar 事件", data); console.log("接收到 getBossAvatar 事件", data);
// //
// that.info.logo = data.avatarUrl; // that.info.logo = data.avatarUrl;
that.getAgencyInfo(); // that.getAgencyInfo(); //
}); });
uni.$on("getBossAddress", function (data) { uni.$on("getBossAddress", function (data) {
console.log("接收到 getBossAddress 事件", data); console.log("接收到 getBossAddress 事件", data);
// //
// that.info.logo = data.avatarUrl; // that.info.logo = data.avatarUrl;
that.getAgencyInfo(); // that.getAgencyInfo(); //
}); });
that.resetInfo(); that.resetInfo();
that.getTeamList(); that.getTeamList();
@ -369,6 +369,7 @@ export default {
uni.setStorageSync("apply-agencyId", $item.id); uni.setStorageSync("apply-agencyId", $item.id);
console.log(res); console.log(res);
that.G.checkTokenNew().then(() => { that.G.checkTokenNew().then(() => {
uni.$emit("updateJobList");
uni.showToast({ uni.showToast({
title: "切换成功", title: "切换成功",
icon: "success", icon: "success",

Loading…
Cancel
Save