职位报名

cyl/master
wangxia 8 months ago
parent c986085cf0
commit 90eb5e5916

@ -94,7 +94,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxe431e0b3abd9ae0b",
"appid" : "wxb0dea4d11428c6a5",
"requiredPrivateInfos" : [ "getLocation", "chooseLocation", "chooseAddress" ],
"setting" : {
"urlCheck" : true,

@ -411,7 +411,7 @@ export default {
miniAppInfo: uni.getStorageSync("miniApp-info"), //
serviceShow: false, //
currentStore: {},
isServicePriceShow: false, //
isServicePriceShow: true, //
tabInfo: {
list: [
{
@ -1401,6 +1401,8 @@ export default {
console.log("e", e);
this.isLogin = true;
this.handleOpenApplyPopup();
this.userInfo= uni.getStorageSync("apply-userinfo") //
},
tobeAgencyToast() {
uni.showModal({

@ -1,24 +1,6 @@
<template>
<view class="p-root-detail-fellow g_w_all g_h_all g_bg_f_5 g_kuaishou">
<view>
<view class="g_h_10"></view>
<g-panel-form-slot
:list="[
{
icon: '',
label: '老乡电话',
result: '',
path: '',
value: info.tel,
tip: 'slot-mobile',
placeholder: '请输入联系电话',
type: 'slot',
pColumn: 8,
require: true,
},
]"
@changeMobile="handleClickMobile"
></g-panel-form-slot>
<view class="g_h_10"></view>
<g-panel-form-slot
:list="[
@ -29,7 +11,7 @@
value: info.name,
path: '',
tip: 'slot-upID',
img:info.idCardImageUrl,
img: info.idCardImageUrl,
placeholder: '手动输入或拍照自动识别 → ',
type: 'slot',
pColumn: 8,
@ -57,7 +39,7 @@
type: 'slot',
pColumn: 12,
require: true,
customRequire:true
customRequire: true,
},
{
icon: '',
@ -81,8 +63,8 @@
tip: 'slot-nation',
pColumn: 12,
require: false,
type:'slot',
customRequire:true
type: 'slot',
customRequire: true,
},
{
icon: '',
@ -95,7 +77,7 @@
type: 'slot',
pColumn: 8,
},
{
icon: '',
label: '上传附件',
@ -124,6 +106,24 @@
</view>
</template>
</g-panel-form-slot>
<view class="g_h_10"></view>
<g-panel-form-slot
:list="[
{
icon: '',
label: '老乡电话',
result: '',
path: '',
value: info.tel,
tip: 'slot-mobile',
placeholder: '请输入联系电话',
type: 'slot',
pColumn: 8,
require: true,
},
]"
@changeMobile="handleClickMobile"
></g-panel-form-slot>
<g-panel-fixed>
<slot>
<view class="g_pl_12 g_pr_12">
@ -148,9 +148,9 @@ export default {
data() {
return {
cdnBaseImg: this.G.store().cdnBaseImg,
info: {
nation: "汉族",
},
// info: {
// nation: "",
// },
nation: nationlist.map((item, index) => {
return item.name;
}),
@ -158,6 +158,12 @@ export default {
imgList: [],
};
},
props: {
info: {
type: Object,
default: {},
},
},
onLoad(options) {
let that = this;
console.log("快速报名:", options);
@ -172,10 +178,10 @@ export default {
} else {
options.nation = "汉族";
}
this.info = options;
if (this.info.imgs) {
this.imgList = this.info.imgs.split(",");
}
// this.info = options;
// if (this.info.imgs) {
// this.imgList = this.info.imgs.split(",");
// }
}
console.log("获取老乡信息:", options);
},
@ -198,15 +204,19 @@ export default {
methods: {
handleClickName(e) {
this.info.name = this.info.userName = e;
this.changeInfo();
},
handleClickSex(e) {
this.info.sex = e;
this.changeInfo();
},
handleClickAge(e) {
this.info.age = e;
this.changeInfo();
},
handleClickMobile(e) {
this.info.tel = e;
this.changeInfo();
},
handleClickNation(e) {
let that = this;
@ -219,6 +229,10 @@ export default {
that.nationIndex = index;
}
});
this.changeInfo();
},
changeInfo() {
this.$emit("changeInfo", this.info);
},
/**
* 获取上传的身份信息
@ -243,6 +257,7 @@ export default {
that.nationIndex = index;
}
});
this.changeInfo();
console.log("that.info", that.info);
console.log("that.nationIndex", that.nationIndex);
that.$forceUpdate();
@ -259,6 +274,8 @@ export default {
let that = this;
if (that.imgList.length < 4) {
that.imgList.push(e);
that.info.imgs = that.imgList;
that.changeInfo();
uni.hideLoading();
} else {
uni.showToast({
@ -275,10 +292,12 @@ export default {
this.info.sex = info.sex ? (info.sex == "男" ? 1 : 2) : "";
this.$forceUpdate();
}
this.changeInfo();
// console.log(this.G.getInfoByIDcard(this.info.idCard));
},
handleClickAddress(e) {
this.info.address = e;
this.changeInfo();
},
goReturn() {
uni.navigateBack();

@ -1,98 +1,77 @@
<template>
<view class="p-root-home-quick g_w_all g_bg_f_5 g_kuaishou">
<view class="card-tip g_pt_24 g_pl_20 g_c_6">老乡信息</view>
<tosmanPart :info="info" @changeInfo="changeInfo"></tosmanPart>
<view class="">
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">老乡信息</view>
<view>
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_15 g_ml_10 g_mr_10 g_radius_8" v-for="(item, index) in persenInfo" :key="index" @click="goFellow('')">
<view class="g_pb_2 g_flex_row_between">
<view class="g_flex_1 g_flex_column_center g_mr_10">
<view class="g_flex_row_start g_fs_16 g_fw_bold">
<view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view>
<view v-if="!item.sex">/</view>
<view v-if="item.sex == 1">/</view>
<view v-if="item.sex == 2">/</view>
<view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view>
<view> {{ item.nation ? item.nation : "民族" }} </view>
<view class="" v-if="false" hover-class="none" hover-stop-propagation="false">
<view>
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_15 g_ml_10 g_mr_10 g_radius_8" v-for="(item, index) in persenInfo" :key="index" @click="goFellow('')">
<view class="g_pb_2 g_flex_row_between">
<view class="g_flex_1 g_flex_column_center g_mr_10">
<view class="g_flex_row_start g_fs_16 g_fw_bold">
<view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view>
<view v-if="!item.sex">/</view>
<view v-if="item.sex == 1">/</view>
<view v-if="item.sex == 2">/</view>
<view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view>
<view> {{ item.nation ? item.nation : "民族" }} </view>
</view>
</view>
</view>
<view class="g_flex_none g_flex_row_end">
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f5f5f5; border-radius: 17px">
<view class="g_flex_row_end" @click.stop="goFellow(item, index)">
<view class="g_flex_column_center">
<i class="iconfont icon-bianji g_c_3"></i>
<view class="g_flex_none g_flex_row_end">
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f5f5f5; border-radius: 17px">
<view class="g_flex_row_end" @click.stop="goFellow(item, index)">
<view class="g_flex_column_center">
<i class="iconfont icon-bianji g_c_3"></i>
</view>
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
</view>
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
</view>
</view>
</view>
</view>
<view class="g_pb_8 g_c_6 g_flex_row_start flex_center">
<div style="background-color: #efefff" class="g_flex_row_center flex_center g_w_24 g_h_24 g_mr_4 g_radius_12">
<image src="../../static/image/address.svg" class="g_w_14 g_h_14"></image>
</div>
{{ item.address ? item.address : "家庭住址" }}
</view>
<view class="g_flex_row_start g_pb_15">
<view class="g_flex_row_start g_mr_14">
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
<image src="../../static/image/id_card.svg" class="g_w_24 g_h_24"></image>
</view>
<view class="g_flex_column_center g_c_6">{{ item.idCard ? item.idCard : "身份证号" }}</view>
<view class="g_pb_8 g_c_6 g_flex_row_start flex_center">
<div style="background-color: #efefff" class="g_flex_row_center flex_center g_w_24 g_h_24 g_mr_4 g_radius_12">
<image src="../../static/image/address.svg" class="g_w_14 g_h_14"></image>
</div>
{{ item.address ? item.address : "家庭住址" }}
</view>
<view class="g_flex_row_start">
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
<image src="../../static/image/call.svg" class="g_w_24 g_h_24"></image>
<view class="g_flex_row_start g_pb_15">
<view class="g_flex_row_start g_mr_14">
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
<image src="../../static/image/id_card.svg" class="g_w_24 g_h_24"></image>
</view>
<view class="g_flex_column_center g_c_6">{{ item.idCard ? item.idCard : "身份证号" }}</view>
</view>
<view class="g_flex_row_start">
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
<image src="../../static/image/call.svg" class="g_w_24 g_h_24"></image>
</view>
<view class="g_flex_column_center g_c_6">{{ item.tel ? item.tel : "手机号" }}</view>
</view>
<view class="g_flex_column_center g_c_6">{{ item.tel ? item.tel : "手机号" }}</view>
</view>
</view>
<view class="g_pb_17 g_flex_row_start" v-if="item.idCardImageUrl || item.imgs">
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
<view v-if="item.imgs" class="g_flex_row_start">
<view v-for="i in item.imgs" class="g_ml_10">
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
<view class="g_pb_17 g_flex_row_start" v-if="item.idCardImageUrl || item.imgs">
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
<view v-if="item.imgs" class="g_flex_row_start">
<view v-for="i in item.imgs" class="g_ml_10">
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
</view>
</view>
</view>
</view>
</view>
</view>
<view class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8" @click="goFellow('')" v-if="!persenInfo[0]">
<!-- <view class="g_w_18 g_h_18 g_mr_6 g_text_c g_radius_20 g_border_main g_fsi_18" style="line-height: 13px">+</view> -->
<view class="g_flex_column_center">
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
<view class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8" @click="goFellow('')" v-if="!persenInfo[0]">
<!-- <view class="g_w_18 g_h_18 g_mr_6 g_text_c g_radius_20 g_border_main g_fsi_18" style="line-height: 13px">+</view> -->
<view class="g_flex_column_center">
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
</view>
<view class="">添加老乡</view>
</view>
<view class="">添加老乡</view>
</view>
<view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">职位信息</view>
<view class="fs_top text-wrap">
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getTime"> </g-panel-form-slot>
</view>
<view class="fs_bottom">
<g-panel-form-slot
:list="[
{
radius: 'no_top',
icon: '',
label: '政策模式',
result: '',
path: '',
value: zhengceSelect.text,
tip: 'slot-zhengce',
require: true,
customRequire: true,
type: 'slot-zhengce',
pColumn: 18,
from: 'slot-zhengce',
},
]"
:defaultOption="zhengceTextList"
:jobInfo="updateInfo.jobId"
@updateZhengce="changeZhengce"
>
</g-panel-form-slot>
</view>
</view>
<view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">报名备注</view>
@ -129,8 +108,12 @@
<script>
import { nationlist } from "../../utils/nation.js";
import dateUtil from "../../utils/dateUtil.js";
import tosmanPart from "../other/editTownsman.vue";
export default {
components: {
tosmanPart,
},
onReady() {
this.G.setNavStyle();
let that = this;
@ -158,15 +141,6 @@ export default {
that.updateInfo.jobName = data.info.jobName;
that.jobType = data.info.jobType;
console.log("data.info", data.info);
if (that.jobType == 1) {
that.templateId = data.info.templateId;
that.getPolicyByJobId({
id: data.info.id,
templateId: data.info.templateId,
});
} else {
that.getPolicyById(data.info);
}
that.getJobDetail(data.info);
that.$forceUpdate();
});
@ -180,21 +154,21 @@ export default {
onShareAppMessage() {
return this.G.shareFun();
},
watch: {
info: {
handler(newVal, oldVal) {
console.log("newVal", newVal);
},
deep: true,
},
},
onLoad(options) {
let that = this;
console.log("options.jobId", options);
if (options.jobId) {
this.updateInfo.jobId = options.jobId;
this.updateInfo.jobName = options.jobName;
}
if (options.id) {
that.G.Post(that.api.resume_detail_new + "/" + options.id, {}, (res) => {
console.log(res);
that.updateInfo.jobId = res.resume.jobId;
that.updateInfo.jobName = res.resume.jobName;
that.getJobDetail({ id: res.resume.jobId });
that.getPolicyById({ id: res.resume.jobId });
});
that.getJobDetail({ id: options.jobId });
}
uni.setNavigationBarTitle({
title: options.title ? options.title : "报名",
@ -245,168 +219,26 @@ export default {
persenInfo: [],
agreeRadio: ["agree"],
jobData: [],
zhengceTextList: [],
zhengceSelect: {
text: "政策一",
id: 1,
},
};
},
onShow() {
let that = this;
console.log("this.updateInfo.", this.updateInfo);
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
this.jobData = [
{
radius: "no_bottom",
icon: "",
label: "报名职位",
result: that.updateInfo.jobId ? that.updateInfo.jobName : "请选择报名职位",
path: "/root/other/search?from=record",
placeholder: "请选择报名职位",
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
tip: "applia-job",
require: true,
customRequire: true,
pColumn: 18,
},
{
icon: "",
label: "预约面试时间",
result: "",
path: "",
value: that.updateInfo.interviewTimeStr,
tip: "slot-time",
require: true,
customRequire: true,
type: "slot",
pColumn: 18,
from: "reservation-time",
},
{
icon: "",
label: "财务结算",
result: "",
path: "",
value: "-",
tip: "slot-caiwu",
require: false,
customRequire: false,
type: "slot",
pColumn: 18,
from: "slot-caiwu",
},
];
if (that.jobType == 1) {
that.getPolicyByJobId({
id: that.updateInfo.jobId,
templateId: that.templateId,
});
} else {
if (that.updateInfo.jobId) {
that.getPolicyById({
id: that.updateInfo.jobId,
});
}
// that.getPolicyById({
// id: that.updateInfo.jobId,
// });
}
if (that.updateInfo.jobId) {
that.getJobDetail({
id: that.updateInfo.jobId,
});
}
},
methods: {
getPolicyByJobId($data) {
let that = this,
classify = 0;
if (that.IS_CREATOR) {
classify = 3;
} else {
classify = 2;
}
console.log("$data", $data);
let config = {
storeJobId: $data.templateId,
customJobId: $data.id,
classify,
};
that.G.Get(that.api.job_getPolicyShare, config, (res) => {
console.log("job_getPolicyShare res", res);
that.jobData = [
{
radius: "no_bottom",
icon: "",
label: "报名职位",
result: that.updateInfo.jobId ? that.updateInfo.jobName : "请选择报名职位",
path: "/root/other/search?from=record",
placeholder: "请选择报名职位",
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
tip: "applia-job",
require: true,
customRequire: true,
pColumn: 18,
},
{
icon: "",
label: "预约面试时间",
result: "",
path: "",
value: that.updateInfo.interviewTimeStr,
tip: "slot-time",
require: true,
customRequire: true,
type: "slot",
pColumn: 18,
from: "reservation-time",
},
{
icon: "",
label: "财务结算",
result: "",
path: "",
value: res,
tip: "slot-caiwu",
require: false,
customRequire: false,
type: "slot",
pColumn: 18,
from: "slot-caiwu",
},
];
});
},
getPolicyById($data) {
getJobDetail($data) {
let that = this;
console.log("自有政策:", $data);
console.log($data);
that.G.Get(
that.api.job_getPolicyPerson + "/" + $data.id,
that.api.job_personDetail + "/" + $data.id,
{
id: $data.id,
},
(res) => {
let policyStr = "";
console.log("resres", res);
let sta = "";
if (res.jobInfo) {
sta = res.jobInfo.replaceAll("\n\n", "\n");
}
let a = "",
b = "",
c = "";
a = "员工薪资:" + (sta || "-") + "\n\n";
if (that.IS_CREATOR) {
b = "服务费:" + (res.returnFeeType ? that.G.setReturnFee(res.returnFee, res.returnFeeType) : "-") + " \n" + "服务费详情:" + (res.returnFeeDesp || "-") + "\n\n";
}
c = "代理费:" + (that.G.setReturnFee(res.agencyReturnFee, res.agencyReturnFeeType) || "-") + "\n" + "代理费详情:" + (res.agencyReturnFeeDesp || "-");
policyStr = a + b + c;
// else {
// policyStr = "";
// }
policyStr = "1. 服务费:" + (res.record.returnFeeType != "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
that.jobData = [
{
@ -452,39 +284,6 @@ export default {
}
);
},
getJobDetail($data) {
let that = this;
console.log($data);
that.G.Get(
that.api.job_personDetail + "/" + $data.id,
{
id: $data.id,
},
(res) => {
console.log("政策列表:", res);
let policyNum;
if (res.storeJobDetail) {
policyNum = res.storeJobDetail.policyNum;
} else {
policyNum = res.record.policyNum;
}
if (policyNum == "" || policyNum == 0) {
policyNum = 1;
}
let list = [];
for (let i = 0; i < policyNum; i++) {
let pickerStr = that.G.policyNumToHanZi(i + 1);
list[i] = {
value: i + 1,
name: pickerStr,
id: i + 1,
isSelected: false,
};
}
that.zhengceTextList = list;
}
);
},
changeZhengce(e) {
let that = this;
console.log("选择政策:", e);
@ -553,12 +352,11 @@ export default {
uni.navigateTo({
url: "/root/other/editTownsman?" + that.G.objToStr(params),
});
} else {
uni.navigateTo({
url: "/root/other/editTownsman",
});
}
// else {
// uni.navigateTo({
// url: "/root/other/editTownsmanList",
// });
// }
},
handleClickMobile() {},
submitForm() {
@ -578,44 +376,44 @@ export default {
});
return false;
}
if (that.persenInfo.length == 0) {
uni.showToast({
icon: "none",
title: "请输入老乡信息",
});
return false;
}
if (!that.persenInfo[0].userName) {
// if (that.persenInfo.length == 0) {
// uni.showToast({
// icon: "none",
// title: "",
// });
// return false;
// }
if (!that.info.userName) {
uni.showToast({
icon: "none",
title: "请填写老乡姓名",
});
return false;
}
if (!that.persenInfo[0].tel) {
if (!that.info.tel) {
uni.showToast({
icon: "none",
title: "请填写老乡手机号",
});
return false;
}
if (!that.persenInfo[0].idCard) {
if (!that.info.idCard) {
uni.showToast({
icon: "none",
title: "请填写老乡身份证号",
});
return false;
}
if (that.persenInfo[0].sex == 0) {
if (that.info.sex == 0) {
uni.showToast({
icon: "none",
title: "请选择老乡性别",
});
return false;
}
that.persenInfo.forEach((item) => {
that.submitFormSub(item);
});
// that.persenInfo.forEach((item) => {
that.submitFormSub(that.info);
// });
},
submitFormSub($item) {
let that = this;
@ -640,31 +438,28 @@ export default {
uni.showLoading({
title: "提交中",
});
if (that.jobType == 1) {
submitInfo.policyIdx = that.zhengceSelect.id;
}
// submitInfo.sex = submitInfo.sex == "" ? 1 : 2;
if (submitInfo.imgs && submitInfo.imgs.length > 0) {
submitInfo.imgs = submitInfo.imgs.join(",");
}
submitInfo.resumeId = $item.id;
submitInfo.userApplyClueId = $item.id;
// submitInfo.resumeId = $item.id;
// submitInfo.userApplyClueId = $item.id;
console.log("submitInfo", submitInfo);
that.G.Post(that.api.resume_recordJob, submitInfo, (res) => {
that.G.Post(that.api.job_recordJob, submitInfo, (res) => {
// uni.hideLoading();
uni.showToast({
icon: "success",
title: "报名成功",
duration: 2000,
});
that.persenInfo = [];
that.info = {};
// uni.navigateBack();
//
setTimeout(() => {
uni.switchTab({
url: "/pages/resume/index",
url: "/pages/home/index",
});
uni.$emit("goNew", 2);
// uni.$emit("goNew", 2);
}, 1000);
// that.$forceUpdate();
@ -678,6 +473,11 @@ export default {
// });
// }, 500);
},
changeInfo(e) {
console.log("e", e);
console.log("info", this.info);
this.info = e;
},
},
};
</script>

@ -4,11 +4,7 @@
<u-search class="g_flex_1" :focus="true" @btnSearch="getSearch" height="40" v-model="keyword" :placeholder="placeholder" bg-color="#f5f5f5" :show-action="false" @change="getSearch" @clear="getSearch" @custom="getSearch" @search="getSearch" search-icon-color="#999999" :maxlength="20"></u-search>
<view class="g_ml_8 g_fs_16" style="color: #576b95" hover-class="thover" @click="backPrev"></view>
</view>
<g-yi-list-job :from="whichPage" class="g_h_all" :list="query.list"
@clickCard="goDetail" :loading="loading" :speed="speed" :query="query"
emptyText="暂无数据"
pt="0"
/>
<g-yi-list-job :from="whichPage" class="g_h_all" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" emptyText="暂无数据" pt="0" />
</view>
</template>
@ -48,8 +44,8 @@ export default {
//
data() {
return {
isUseNewJob:getApp().globalData.isUseNewJob,
appid:getApp().globalData.appId,
isUseNewJob: getApp().globalData.isUseNewJob,
appid: getApp().globalData.appId,
whichPage: "",
keyword: "",
loading: false,
@ -108,33 +104,21 @@ export default {
},
getList($type = "init") {
let that = this;
let _url = ''
console.log(that.appid,that.isUseNewJob,'---------------',getApp().globalData)
if(that.appid == 'wxb0c590fd696b79be' && that.isUseNewJob){
//
_url = that.api.new_job_list;
}else{
//
_url = that.api.yi_job_list;
}
let _url = that.api.new_job_list;
console.log(that.appid, that.isUseNewJob, "---------------", getApp().globalData);
that.G.Post(
_url, {
_url,
{
pageNum: that.query.page,
pageSize: that.query.size,
keys: that.keyword,
},
(res) => {
let resData = {}
if(that.appid == 'wxb0c590fd696b79be' && that.isUseNewJob){
//
resData = res;
}else{
//
resData = res.pageBean;
}
console.log('一才职位列表:', resData)
let resData = {};
resData = res;
console.log("一才职位列表:", resData);
that.computeCode = 1;
if (resData.recordCount == 0) {
that.loading = false;
@ -143,33 +127,40 @@ export default {
}
that.speed = resData.recordCount;
that.query.isFinish = resData.recordList.length;
if(resData.recordList && resData.recordList.length > 0){
if (resData.recordList && resData.recordList.length > 0) {
resData.recordList = that.G.toGetAddress(resData.recordList);
resData.recordList = that.G.toGetAge(resData.recordList);
resData.recordList = that.G.yijobCopy(resData.recordList);
resData.recordList.forEach(ita => {
ita.addss = that.G.setJobInfoPositionv3(ita.storeAddr)
})
resData.recordList.forEach((ita) => {
ita.addss = that.G.setJobInfoPositionv3(ita.storeAddr);
});
}
if ($type == "init") {
that.query.list = [];
that.query.list = resData.recordList && resData.recordList.length > 0 ? resData.recordList.map((item,index)=>{
return {
...item,
collected:item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪',
gender: that.G.getGenderByMinAge(item),
}
}) : [];
that.query.list =
resData.recordList && resData.recordList.length > 0
? resData.recordList.map((item, index) => {
return {
...item,
collected: item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
gender: that.G.getGenderByMinAge(item),
};
})
: [];
} else {
that.query.list = that.query.list.concat(resData.recordList && resData.recordList.length > 0 ? resData.recordList.map((item,index)=>{
return {
...item,
collected:item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪',
gender: that.G.getGenderByMinAge(item),
}
}) : []);
that.query.list = that.query.list.concat(
resData.recordList && resData.recordList.length > 0
? resData.recordList.map((item, index) => {
return {
...item,
collected: item.collected ? true : false,
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
gender: that.G.getGenderByMinAge(item),
};
})
: []
);
}
}
);

Loading…
Cancel
Save