职位分享

cyl/master-0804
wangxia 4 months ago
parent 500610d43f
commit 265eb8cb1a

@ -7,7 +7,7 @@
<g-loading /> <g-loading />
</div> </div>
<div v-if="speed == 1"> <div v-if="speed == 1">
<view class="r_box" v-if="true"> <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">
@ -31,7 +31,7 @@
</view> </view>
<!-- 基本信息 --> <!-- 基本信息 -->
<view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_mt_10 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">
<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>
@ -556,7 +556,8 @@ export default {
let that = this; let that = this;
let path; let path;
console.log("that.loginInfo", that.loginInfo); console.log("that.loginInfo", that.loginInfo);
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.loginInfo.user.id}_${1}`; // id___
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.jobDetail.agencyId}_${that.shareUserId || that.loginInfo.user.id}_${that.sharreUserAgencyId || that.loginInfo.agencyId}`;
return { return {
promise: new Promise((resolve, reject) => { promise: new Promise((resolve, reject) => {
uni.showLoading({ uni.showLoading({
@ -586,8 +587,10 @@ export default {
globalData: getApp().globalData, globalData: getApp().globalData,
videoContextTemp: {}, videoContextTemp: {},
isSharePage: false, // isSharePage: false, //
isFans: false,
shareUserId: null, // id shareUserId: null, // id
shareJobAgencyId: null, // id
shareUserAgencyId: null, // id
corpUserFlag: false, corpUserFlag: false,
agreeRadio: ["agree"], agreeRadio: ["agree"],
isPerson: false, isPerson: false,
@ -675,25 +678,30 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log("详情", options); console.log("详情", options);
if (options.id) { if (options.id) {
this.uid = options.id; this.uid = options.id;
} else if (options.scene) { } else if (options.scene) {
var sceneStr = decodeURIComponent(options.scene); var sceneStr = decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr); var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
// id___
this.uid = sceneJson.id.split("_")[0]; //id this.uid = sceneJson.id.split("_")[0]; //id
this.shareUserId = sceneJson.id.split("_")[1]; //id this.shareJobAgencyId = sceneJson.id.split("_")[1]; //id
this.shareUserId = sceneJson.id.split("_")[2]; //id
this.shareUserAgencyId = sceneJson.id.split("_")[3]; //id
this.isSharePage = true; this.isSharePage = true;
this.checkIsFans(this.shareUserId);
} }
this.from = options.from || "home"; this.from = options.from || "home";
if (!uni.getStorageSync("apply-token")) { if (!uni.getStorageSync("apply-token")) {
console.log("apply-token"); console.log("apply-token");
uni.navigateTo({ uni.reLaunch({
url: "/root/person/loginIndex?type=detail&path=/root/detail/job&scene=" + options.scene, url: "/root/person/loginIndex?type=detail&path=/root/detail/job&scene=" + options.scene,
}); });
return; return;
} }
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.loginInfo = uni.getStorageSync("apply-userinfo"); this.loginInfo = uni.getStorageSync("apply-userinfo");
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) { // if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST"); // this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST");
@ -749,7 +757,9 @@ export default {
num1++; num1++;
} }
}); });
this.toKnowInfo(res.agencyId); that.speed = 1;
that.attention = true;
// this.toKnowInfo(res.agencyId);
}); });
} }
uni.getSystemInfo({ uni.getSystemInfo({
@ -968,8 +978,9 @@ export default {
if (!this.attention) { if (!this.attention) {
return false; return false;
} }
// isfans 1 0
uni.navigateTo({ uni.navigateTo({
url: "/root/home/quickApplication?jobId=" + this.jobDetail.id + "&jobName=" + this.jobDetail.jobName + "&title=报名&type=" + that.jobDetail.jobType + "&agencyId=" + that.jobDetail.agencyId, url: `/root/home/quickApplication?jobId=${this.jobDetail.id}&jobName=${this.jobDetail.jobName}&title=报名&type=${that.jobDetail.jobType}&agencyId=${that.jobDetail.agencyId}${that.isFans === false ? '' : `&isFans=${that.isFans }`}`,
}); });
// if (this.jobDetail.recruitment == 1) { // if (this.jobDetail.recruitment == 1) {
// this.formInfo = { // this.formInfo = {
@ -1463,7 +1474,8 @@ export default {
checkIsFans(upAgencyId) { checkIsFans(upAgencyId) {
let that = this; let that = this;
that.G.Post("/assistant/circle/agency/checkUserTypeForAssistant", { upAgencyId }, (res) => { that.G.Post("/assistant/circle/agency/checkUserTypeForAssistant", { upAgencyId }, (res) => {
console.log(res); console.log("isFans", res);
that.isFans = res;
}); });
}, },
}, },

@ -5,8 +5,7 @@
<view class=""> <view class="">
<view class="card-tip g_pt_12 g_pb_8 g_pl_20 g_c_6">老乡信息</view> <view class="card-tip g_pt_12 g_pb_8 g_pl_20 g_c_6">老乡信息</view>
<view> <view>
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_10 g_ml_10 g_mr_10 g_radius_8 g_mb_12" <view class="g_bg_f g_pl_15 g_pr_15 g_pt_10 g_ml_10 g_mr_10 g_radius_8 g_mb_12" v-for="(item, index) in persenInfo" :key="index" style="margin-bottom: 12px">
v-for="(item, index) in persenInfo" :key="index" style="margin-bottom: 12px;">
<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">
@ -19,8 +18,7 @@
</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" <view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f0fff8; border-radius: 17px">
style="background-color: #f0fff8; border-radius: 17px">
<view class="g_flex_row_end" @click="goFellow(item, index)"> <view class="g_flex_row_end" @click="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>
@ -46,8 +44,7 @@
</view> </view>
</view> </view>
<view class="g_pb_17 g_flex_row_start"> <view class="g_pb_17 g_flex_row_start">
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" <g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
@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" />
@ -56,9 +53,7 @@
</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.length <= 5">
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.length <= 5">
<!-- <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>
@ -68,18 +63,13 @@
<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="getInviteTime" @changeAddress="changeAddress" @chooseAddress="chooseAddress"> </g-panel-form-slot>
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getInviteTime"
@changeAddress="changeAddress" @chooseAddress="chooseAddress"> </g-panel-form-slot>
</view> </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="g_flex_row_center g_p_10 g_pt_16 g_ml_10 g_mr_10 g_bg_f g_radius_8" <view class="g_flex_row_center g_p_10 g_pt_16 g_ml_10 g_mr_10 g_bg_f g_radius_8" style="width: calc(100vw- 20px)">
style="width: calc(100vw- 20px)"> <textarea class="weui-input g_flex_1 g_fs_16" placeholder="请输入报名备注" v-model="updateInfo.desp" placeholder-style="color:#999" :maxlength="-1" auto-height style="min-height: 137px; width: 100%; z-index: 0"></textarea>
<textarea class="weui-input g_flex_1 g_fs_16" placeholder="请输入报名备注" v-model="updateInfo.desp"
placeholder-style="color:#999" :maxlength="-1" auto-height
style="min-height: 137px; width: 100%; z-index: 0"></textarea>
</view> </view>
</view> </view>
<view class="g_mt_12"> <view class="g_mt_12">
@ -99,8 +89,7 @@
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
<view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99"> <view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99">
<view class="g_fs_16 g_c_6 g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16" hover-class="thover" <view class="g_fs_16 g_c_6 g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16" hover-class="thover" @click="goReturn"></view>
@click="goReturn">取消</view>
<g-button btnText="立即报名" type="primary" @clickBtn="submitForm" /> <g-button btnText="立即报名" type="primary" @clickBtn="submitForm" />
</view> </view>
</slot> </slot>
@ -110,14 +99,12 @@
</view> </view>
</template> </template>
<script> <script>
import { import { nationlist } from "../../utils/nation.js";
nationlist
} from "../../utils/nation.js";
import dateUtil from "../../utils/dateUtil.js"; import dateUtil from "../../utils/dateUtil.js";
import AiApply from "./components/AiApply.vue" import AiApply from "./components/AiApply.vue";
export default { export default {
components: { components: {
AiApply AiApply,
}, },
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
@ -127,14 +114,14 @@
if (that.persenInfo.length == 0) { if (that.persenInfo.length == 0) {
that.persenInfo[0] = { that.persenInfo[0] = {
...data.info, ...data.info,
index: that.persenInfo.length index: that.persenInfo.length,
}; };
} else if (data.info.index || data.info.index === 0) { } else if (data.info.index || data.info.index === 0) {
that.persenInfo[data.info.index] = data.info; that.persenInfo[data.info.index] = data.info;
} else { } else {
that.persenInfo[that.persenInfo.length] = { that.persenInfo[that.persenInfo.length] = {
...data.info, ...data.info,
index: that.persenInfo.length index: that.persenInfo.length,
}; };
} }
console.log("that.persenInfo", that.persenInfo); console.log("that.persenInfo", that.persenInfo);
@ -174,6 +161,7 @@
if (options.agencyId) { if (options.agencyId) {
that.updateInfo.upAgencyId = options.agencyId; that.updateInfo.upAgencyId = options.agencyId;
} }
options.isFans && (that.isFans = options.isFans);
this.updateInfo.interviewTimeStr = ""; this.updateInfo.interviewTimeStr = "";
setTimeout(() => { setTimeout(() => {
that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
@ -182,87 +170,30 @@
// //
let hour = new Date().getHours(); let hour = new Date().getHours();
if (hour < 20 && hour >= 6) { if (hour < 20 && hour >= 6) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " " + (hour + 1) + ":00";
" " + (hour + 1) + ":00";
} else if (hour >= 20) { } else if (hour >= 20) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 19:30";
" 19:30";
} else if (hour < 6) { } else if (hour < 6) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 6:00";
" 6:00";
} }
// that.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 06:00"; // that.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 06:00";
that.jobData = [{
icon: "",
label: "报名职位",
result: 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: 12,
},
{
icon: '',
label: '面试地址',
result: '',
value: that.updateInfo['interviewAddress'],
path: '',
addressDetail: {
latitude: that.updateInfo['interviewLat'],
longitude: that.updateInfo['interviewLng'],
},
tip: 'slot-choose&input-address',
placeholder: '请选择面试地址',
type: 'slot',
fontSize: '16px',
pColumn: 5,
pRow: 12,
require: false,
suffix: 'icon-dizhi1',
},
{
icon: "",
label: "面试时间",
result: "",
path: "",
value: that.updateInfo.interviewTimeStr,
tip: "slot-time",
require: true,
customRequire: true,
type: "slot",
pColumn: 12,
from: "reservation-time",
},
{
icon: "",
label: "财务结算",
result: "",
path: "",
value: "-",
tip: "slot-caiwu",
require: false,
customRequire: false,
type: "slot",
pColumn: 12,
from: "slot-caiwu",
},
];
that.$forceUpdate(); that.$forceUpdate();
if (that.updateInfo.jobId) { if (that.updateInfo.jobId) {
that.setFormList();
that.getJobDetail({ that.getJobDetail({
leafCateId: that.updateInfo.jobId, leafCateId: that.updateInfo.jobId,
}); });
} else {
that.setFormList();
} }
}, 1); }, 1);
}, },
data() { data() {
return { return {
IS_CREATOR: false, IS_CREATOR: false,
jobType: 2, jobType: 2,
isFans: 2,
cdnBaseImg: this.G.store().cdnBaseImg, cdnBaseImg: this.G.store().cdnBaseImg,
nation: nationlist.map((item, index) => { nation: nationlist.map((item, index) => {
return item.name; return item.name;
@ -287,36 +218,44 @@
agreeRadio: ["agree"], agreeRadio: ["agree"],
jobData: [], jobData: [],
zhengceTextList: [], zhengceTextList: [],
btnLaoding: false btnLaoding: false,
}; };
}, },
onShow() { onShow() {
let that = this; let that = this;
that.pageSpeed = -1; that.pageSpeed = -1;
}, },
methods: { methods: {
getTownsManInfo(info) { getTownsManInfo(info) {
console.log('info', info); console.log("info", info);
uni.$emit('getTownsman', { uni.$emit("getTownsman", {
info info,
}) });
}, },
getJobDetail($data) { getJobDetail($data) {
let that = this; let that = this;
that.G.Get( that.G.Get(
that.api.job_personDetail + "/" + $data.leafCateId, { that.api.job_personDetail + "/" + $data.leafCateId,
{
id: $data.leafCateId, id: $data.leafCateId,
}, },
(res) => { (res) => {
let policyStr = "1. 佣金:" + (res.record.returnFeeType !== "" ? that.G.setReturnFee(res.record let policyStr;
.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 佣金详情:" + (res.record if (that.isFans == 2) {
.returnFeeDesp || "详询客服") + " \n\n" + "3. 薪资待遇:" + (res.record.salaryDetail || policyStr = "1. 佣金:" + (res.record.returnFeeType !== "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 佣金详情:" + (res.record.returnFeeDesp || "详询客服") + " \n\n" + "3. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
"详询客服") + "\n\n"; } else {
policyStr = "薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
}
console.log("政策列表:", res); console.log("政策列表:", res);
that.setFormList() that.setFormList(policyStr);
that.jobData = [{ }
);
},
setFormList(policyStr) {
let that = this;
if (that.isFans == 2) {
that.jobData = [
{
icon: "", icon: "",
label: "报名职位", label: "报名职位",
result: that.updateInfo.jobName, result: that.updateInfo.jobName,
@ -328,25 +267,6 @@
customRequire: true, customRequire: true,
pColumn: 12, pColumn: 12,
}, },
{
icon: '',
label: '面试地址',
result: '',
value: that.updateInfo['interviewAddress'],
path: '',
addressDetail: {
latitude: that.updateInfo['interviewLat'],
longitude: that.updateInfo['interviewLng'],
},
tip: 'slot-choose&input-address',
placeholder: '请选择面试地址',
type: 'slot',
fontSize: '16px',
pColumn: 5,
pRow: 12,
require: false,
suffix: 'icon-dizhi1',
},
{ {
icon: "", icon: "",
label: "面试时间", label: "面试时间",
@ -360,12 +280,32 @@
pColumn: 12, pColumn: 12,
from: "reservation-time", from: "reservation-time",
}, },
{
icon: "",
label: "面试地址",
result: "",
value: that.updateInfo["interviewAddress"],
path: "",
addressDetail: {
latitude: that.updateInfo["interviewLat"],
longitude: that.updateInfo["interviewLng"],
},
tip: "slot-choose&input-address",
placeholder: "请选择面试地址",
type: "slot",
fontSize: "16px",
pColumn: 5,
pRow: 12,
require: false,
suffix: "icon-dizhi1",
},
{ {
icon: "", icon: "",
label: "财务结算", label: "财务结算",
result: "", result: "",
path: "", path: "",
value: policyStr, value: policyStr || "-",
tip: "slot-caiwu", tip: "slot-caiwu",
require: false, require: false,
customRequire: false, customRequire: false,
@ -374,11 +314,9 @@
from: "slot-caiwu", from: "slot-caiwu",
}, },
]; ];
} } else {
); that.jobData = [
}, {
setFormList(){
that.jobData = [{
icon: "", icon: "",
label: "报名职位", label: "报名职位",
result: that.updateInfo.jobName, result: that.updateInfo.jobName,
@ -390,25 +328,6 @@
customRequire: true, customRequire: true,
pColumn: 12, pColumn: 12,
}, },
{
icon: '',
label: '面试地址',
result: '',
value: that.updateInfo['interviewAddress'],
path: '',
addressDetail: {
latitude: that.updateInfo['interviewLat'],
longitude: that.updateInfo['interviewLng'],
},
tip: 'slot-choose&input-address',
placeholder: '请选择面试地址',
type: 'slot',
fontSize: '16px',
pColumn: 5,
pRow: 12,
require: false,
suffix: 'icon-dizhi1',
},
{ {
icon: "", icon: "",
label: "面试时间", label: "面试时间",
@ -427,7 +346,7 @@
label: "财务结算", label: "财务结算",
result: "", result: "",
path: "", path: "",
value: "-", value: policyStr || "-",
tip: "slot-caiwu", tip: "slot-caiwu",
require: false, require: false,
customRequire: false, customRequire: false,
@ -436,6 +355,8 @@
from: "slot-caiwu", from: "slot-caiwu",
}, },
]; ];
}
that.$forceUpdate(); that.$forceUpdate();
}, },
handleClickIDcard(e) { handleClickIDcard(e) {
@ -454,27 +375,25 @@
console.log("获取预约面试时间:", e); console.log("获取预约面试时间:", e);
this.updateInfo.interviewTimeStr = e; this.updateInfo.interviewTimeStr = e;
}, },
updateDom() { updateDom() {},
},
chooseAddress(e) { chooseAddress(e) {
let that = this; let that = this;
console.log(e); console.log(e);
this.updateInfo.interviewLat = e.lat; this.updateInfo.interviewLat = e.lat;
this.updateInfo.interviewLng = e.lng; this.updateInfo.interviewLng = e.lng;
this.updateInfo.interviewAddress = e.address; this.updateInfo.interviewAddress = e.address;
this.jobData[1].value = this.updateInfo.interviewAddress this.jobData[1].value = this.updateInfo.interviewAddress;
// billForm.value.storeAddr = e.address; // billForm.value.storeAddr = e.address;
console.log('this.updateInfo', this.updateInfo); console.log("this.updateInfo", this.updateInfo);
console.log('e', e); console.log("e", e);
this.$forceUpdate() this.$forceUpdate();
}, },
changeAddress(e) { changeAddress(e) {
this.updateInfo.interviewAddress = e; this.updateInfo.interviewAddress = e;
console.log('this.updateInfo', this.updateInfo); console.log("this.updateInfo", this.updateInfo);
console.log('e', e); console.log("e", e);
// this.info.address = e; // this.info.address = e;
this.$forceUpdate() this.$forceUpdate();
}, },
radioGroupChange(e) {}, radioGroupChange(e) {},
goReturn() { goReturn() {
@ -513,7 +432,7 @@
index: $index, index: $index,
}; };
} }
console.log('params', params); console.log("params", params);
if (info) { if (info) {
uni.navigateTo({ uni.navigateTo({
url: "/root/home/editTownsman?" + that.G.objToStr(params), url: "/root/home/editTownsman?" + that.G.objToStr(params),
@ -549,13 +468,13 @@
return false; return false;
} }
if (that.btnLaoding) { if (that.btnLaoding) {
return false return false;
} }
that.btnLaoding = true that.btnLaoding = true;
let submitInfo = { let submitInfo = {
...that.updateInfo, ...that.updateInfo,
} };
submitInfo.applyUserJson = JSON.stringify( submitInfo.applyUserJson = JSON.stringify(
that.persenInfo.map((item) => { that.persenInfo.map((item) => {
return { return {
@ -569,22 +488,23 @@
nation: item.nation, nation: item.nation,
tel: item.tel, tel: item.tel,
address: item.address, address: item.address,
userApplyOrderFiles: item.imgs && item.imgs.length > 0 ? userApplyOrderFiles:
item.imgs item.imgs && item.imgs.length > 0
? item.imgs
.map((itm) => { .map((itm) => {
return itm return itm;
}) })
.join(',') : .join(",")
'', : "",
// desp: item.desp, // desp: item.desp,
// policyIdx: item.policyIdx, // policyIdx: item.policyIdx,
// pickerStr: item.pickerStr, // pickerStr: item.pickerStr,
} };
}) })
) );
console.log('submitInfo', submitInfo); console.log("submitInfo", submitInfo);
// return // return
that.G.Post('/yishoudan/common/order/addBatch', submitInfo, (res) => { that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => {
// uni.hideLoading(); // uni.hideLoading();
uni.showToast({ uni.showToast({
icon: "success", icon: "success",
@ -592,7 +512,7 @@
duration: 2000, duration: 2000,
}); });
// that.persenInfo = []; // that.persenInfo = [];
that.btnLaoding = false that.btnLaoding = false;
// that.$forceUpdate(); // that.$forceUpdate();
setTimeout(() => { setTimeout(() => {

@ -306,9 +306,9 @@ export default {
uni.reLaunch({ uni.reLaunch({
url: `${that.path}?scene=${that.currentId}`, url: `${that.path}?scene=${that.currentId}`,
}) })
uni.navigateBack({ // uni.navigateBack({
delta: 1, // delta: 1,
}) // })
return return
} else { } else {
// //

@ -1,5 +1,5 @@
// let ajaxUrl = "http://192.168.3.83:8001"; let ajaxUrl = "http://192.168.3.83:8001";
let ajaxUrl = "https://daotian.matripe.com.cn"; // let ajaxUrl = "https://daotian.matripe.com.cn";
let data = { let data = {
ajaxUrl: ajaxUrl, ajaxUrl: ajaxUrl,
Get ($url = '', $parmas = {}, callback = () => { }, failback = () => { }) { Get ($url = '', $parmas = {}, callback = () => { }, failback = () => { }) {

Loading…
Cancel
Save