职位报名

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

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

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

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

@ -1,98 +1,77 @@
<template> <template>
<view class="p-root-home-quick g_w_all g_bg_f_5 g_kuaishou"> <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="">
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">老乡信息</view> <view class="" v-if="false" hover-class="none" hover-stop-propagation="false">
<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_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_pb_2 g_flex_row_between">
<view class="g_flex_1 g_flex_column_center g_mr_10"> <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 class="g_flex_row_start g_fs_16 g_fw_bold">
<view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view> <view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view>
<view v-if="!item.sex">/</view> <view v-if="!item.sex">/</view>
<view v-if="item.sex == 1">/</view> <view v-if="item.sex == 1">/</view>
<view v-if="item.sex == 2">/</view> <view v-if="item.sex == 2">/</view>
<view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view> <view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view>
<view> {{ item.nation ? item.nation : "民族" }} </view> <view> {{ item.nation ? item.nation : "民族" }} </view>
</view>
</view> </view>
</view> <view class="g_flex_none g_flex_row_end">
<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 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_row_end" @click.stop="goFellow(item, index)"> <view class="g_flex_column_center">
<view class="g_flex_column_center"> <i class="iconfont icon-bianji g_c_3"></i>
<i class="iconfont icon-bianji g_c_3"></i> </view>
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
</view> </view>
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
</view> </view>
</view> </view>
</view> </view>
</view>
<view class="g_pb_8 g_c_6 g_flex_row_start flex_center"> <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"> <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> <image src="../../static/image/address.svg" class="g_w_14 g_h_14"></image>
</div> </div>
{{ item.address ? item.address : "家庭住址" }} {{ 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> </view>
<view class="g_flex_row_start"> <view class="g_flex_row_start g_pb_15">
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c"> <view class="g_flex_row_start g_mr_14">
<image src="../../static/image/call.svg" class="g_w_24 g_h_24"></image> <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>
<view class="g_flex_column_center g_c_6">{{ item.tel ? item.tel : "手机号" }}</view>
</view> </view>
</view> <view class="g_pb_17 g_flex_row_start" v-if="item.idCardImageUrl || item.imgs">
<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" />
<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-if="item.imgs" class="g_flex_row_start"> <view v-for="i in item.imgs" class="g_ml_10">
<view v-for="i in item.imgs" class="g_ml_10"> <g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" /> </view>
</view> </view>
</view> </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_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_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">
<view class="g_flex_column_center"> <i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i> </view>
<view class="">添加老乡</view>
</view> </view>
<view class="">添加老乡</view>
</view> </view>
<view> <view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">职位信息</view> <view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">职位信息</view>
<view class="fs_top text-wrap"> <view class="fs_top text-wrap">
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getTime"> </g-panel-form-slot> <g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getTime"> </g-panel-form-slot>
</view> </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> <view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">报名备注</view> <view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">报名备注</view>
@ -129,8 +108,12 @@
<script> <script>
import { nationlist } from "../../utils/nation.js"; import { nationlist } from "../../utils/nation.js";
import dateUtil from "../../utils/dateUtil.js"; import dateUtil from "../../utils/dateUtil.js";
import tosmanPart from "../other/editTownsman.vue";
export default { export default {
components: {
tosmanPart,
},
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
let that = this; let that = this;
@ -158,15 +141,6 @@ export default {
that.updateInfo.jobName = data.info.jobName; that.updateInfo.jobName = data.info.jobName;
that.jobType = data.info.jobType; that.jobType = data.info.jobType;
console.log("data.info", data.info); 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.getJobDetail(data.info);
that.$forceUpdate(); that.$forceUpdate();
}); });
@ -180,21 +154,21 @@ export default {
onShareAppMessage() { onShareAppMessage() {
return this.G.shareFun(); return this.G.shareFun();
}, },
watch: {
info: {
handler(newVal, oldVal) {
console.log("newVal", newVal);
},
deep: true,
},
},
onLoad(options) { onLoad(options) {
let that = this; let that = this;
console.log("options.jobId", options); console.log("options.jobId", options);
if (options.jobId) { if (options.jobId) {
this.updateInfo.jobId = options.jobId; this.updateInfo.jobId = options.jobId;
this.updateInfo.jobName = options.jobName; this.updateInfo.jobName = options.jobName;
} that.getJobDetail({ id: options.jobId });
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 });
});
} }
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: options.title ? options.title : "报名", title: options.title ? options.title : "报名",
@ -245,168 +219,26 @@ export default {
persenInfo: [], persenInfo: [],
agreeRadio: ["agree"], agreeRadio: ["agree"],
jobData: [], jobData: [],
zhengceTextList: [],
zhengceSelect: {
text: "政策一",
id: 1,
},
}; };
}, },
onShow() { onShow() {
let that = this; let that = this;
console.log("this.updateInfo.", this.updateInfo); console.log("this.updateInfo.", this.updateInfo);
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; 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: { methods: {
getPolicyByJobId($data) { getJobDetail($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) {
let that = this; let that = this;
console.log("自有政策:", $data); console.log($data);
that.G.Get( that.G.Get(
that.api.job_getPolicyPerson + "/" + $data.id, that.api.job_personDetail + "/" + $data.id,
{ {
id: $data.id, id: $data.id,
}, },
(res) => { (res) => {
let policyStr = ""; let policyStr = "";
console.log("resres", res); console.log("resres", res);
let sta = ""; policyStr = "1. 服务费:" + (res.record.returnFeeType != "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
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 = "";
// }
that.jobData = [ 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) { changeZhengce(e) {
let that = this; let that = this;
console.log("选择政策:", e); console.log("选择政策:", e);
@ -553,12 +352,11 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: "/root/other/editTownsman?" + that.G.objToStr(params), url: "/root/other/editTownsman?" + that.G.objToStr(params),
}); });
} else {
uni.navigateTo({
url: "/root/other/editTownsman",
});
} }
// else {
// uni.navigateTo({
// url: "/root/other/editTownsmanList",
// });
// }
}, },
handleClickMobile() {}, handleClickMobile() {},
submitForm() { submitForm() {
@ -578,44 +376,44 @@ export default {
}); });
return false; return false;
} }
if (that.persenInfo.length == 0) { // if (that.persenInfo.length == 0) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
title: "请输入老乡信息", // title: "",
}); // });
return false; // return false;
} // }
if (!that.persenInfo[0].userName) { if (!that.info.userName) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "请填写老乡姓名", title: "请填写老乡姓名",
}); });
return false; return false;
} }
if (!that.persenInfo[0].tel) { if (!that.info.tel) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "请填写老乡手机号", title: "请填写老乡手机号",
}); });
return false; return false;
} }
if (!that.persenInfo[0].idCard) { if (!that.info.idCard) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "请填写老乡身份证号", title: "请填写老乡身份证号",
}); });
return false; return false;
} }
if (that.persenInfo[0].sex == 0) { if (that.info.sex == 0) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "请选择老乡性别", title: "请选择老乡性别",
}); });
return false; return false;
} }
that.persenInfo.forEach((item) => { // that.persenInfo.forEach((item) => {
that.submitFormSub(item); that.submitFormSub(that.info);
}); // });
}, },
submitFormSub($item) { submitFormSub($item) {
let that = this; let that = this;
@ -640,31 +438,28 @@ export default {
uni.showLoading({ uni.showLoading({
title: "提交中", title: "提交中",
}); });
if (that.jobType == 1) {
submitInfo.policyIdx = that.zhengceSelect.id;
}
// submitInfo.sex = submitInfo.sex == "" ? 1 : 2; // submitInfo.sex = submitInfo.sex == "" ? 1 : 2;
if (submitInfo.imgs && submitInfo.imgs.length > 0) { if (submitInfo.imgs && submitInfo.imgs.length > 0) {
submitInfo.imgs = submitInfo.imgs.join(","); submitInfo.imgs = submitInfo.imgs.join(",");
} }
submitInfo.resumeId = $item.id; // submitInfo.resumeId = $item.id;
submitInfo.userApplyClueId = $item.id; // submitInfo.userApplyClueId = $item.id;
console.log("submitInfo", submitInfo); 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.hideLoading();
uni.showToast({ uni.showToast({
icon: "success", icon: "success",
title: "报名成功", title: "报名成功",
duration: 2000, duration: 2000,
}); });
that.persenInfo = []; that.info = {};
// uni.navigateBack(); // uni.navigateBack();
// //
setTimeout(() => { setTimeout(() => {
uni.switchTab({ uni.switchTab({
url: "/pages/resume/index", url: "/pages/home/index",
}); });
uni.$emit("goNew", 2); // uni.$emit("goNew", 2);
}, 1000); }, 1000);
// that.$forceUpdate(); // that.$forceUpdate();
@ -678,6 +473,11 @@ export default {
// }); // });
// }, 500); // }, 500);
}, },
changeInfo(e) {
console.log("e", e);
console.log("info", this.info);
this.info = e;
},
}, },
}; };
</script> </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> <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 class="g_ml_8 g_fs_16" style="color: #576b95" hover-class="thover" @click="backPrev"></view>
</view> </view>
<g-yi-list-job :from="whichPage" class="g_h_all" :list="query.list" <g-yi-list-job :from="whichPage" class="g_h_all" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" emptyText="暂无数据" pt="0" />
@clickCard="goDetail" :loading="loading" :speed="speed" :query="query"
emptyText="暂无数据"
pt="0"
/>
</view> </view>
</template> </template>
@ -48,8 +44,8 @@ export default {
// //
data() { data() {
return { return {
isUseNewJob:getApp().globalData.isUseNewJob, isUseNewJob: getApp().globalData.isUseNewJob,
appid:getApp().globalData.appId, appid: getApp().globalData.appId,
whichPage: "", whichPage: "",
keyword: "", keyword: "",
loading: false, loading: false,
@ -108,33 +104,21 @@ export default {
}, },
getList($type = "init") { getList($type = "init") {
let that = this; let that = this;
let _url = '' let _url = that.api.new_job_list;
console.log(that.appid,that.isUseNewJob,'---------------',getApp().globalData) 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;
}
that.G.Post( that.G.Post(
_url, { _url,
{
pageNum: that.query.page, pageNum: that.query.page,
pageSize: that.query.size, pageSize: that.query.size,
keys: that.keyword, keys: that.keyword,
}, },
(res) => { (res) => {
let resData = {} let resData = {};
if(that.appid == 'wxb0c590fd696b79be' && that.isUseNewJob){ resData = res;
//
resData = res;
}else{
//
resData = res.pageBean;
}
console.log('一才职位列表:', resData) console.log("一才职位列表:", resData);
that.computeCode = 1; that.computeCode = 1;
if (resData.recordCount == 0) { if (resData.recordCount == 0) {
that.loading = false; that.loading = false;
@ -143,33 +127,40 @@ export default {
} }
that.speed = resData.recordCount; that.speed = resData.recordCount;
that.query.isFinish = resData.recordList.length; 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.toGetAddress(resData.recordList);
resData.recordList = that.G.toGetAge(resData.recordList); resData.recordList = that.G.toGetAge(resData.recordList);
resData.recordList = that.G.yijobCopy(resData.recordList); resData.recordList = that.G.yijobCopy(resData.recordList);
resData.recordList.forEach(ita => { resData.recordList.forEach((ita) => {
ita.addss = that.G.setJobInfoPositionv3(ita.storeAddr) ita.addss = that.G.setJobInfoPositionv3(ita.storeAddr);
}) });
} }
if ($type == "init") { if ($type == "init") {
that.query.list = []; that.query.list = [];
that.query.list = resData.recordList && resData.recordList.length > 0 ? resData.recordList.map((item,index)=>{ that.query.list =
return { resData.recordList && resData.recordList.length > 0
...item, ? resData.recordList.map((item, index) => {
collected:item.collected ? true : false, return {
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪', ...item,
gender: that.G.getGenderByMinAge(item), collected: item.collected ? true : false,
} cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
}) : []; gender: that.G.getGenderByMinAge(item),
};
})
: [];
} else { } else {
that.query.list = that.query.list.concat(resData.recordList && resData.recordList.length > 0 ? resData.recordList.map((item,index)=>{ that.query.list = that.query.list.concat(
return { resData.recordList && resData.recordList.length > 0
...item, ? resData.recordList.map((item, index) => {
collected:item.collected ? true : false, return {
cus_price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : '月薪', ...item,
gender: that.G.getGenderByMinAge(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