cyl/master-0804
wangxia 3 months ago
parent 44fc0f0c17
commit 9e9e7ff9c2

@ -0,0 +1,5 @@
let commonInfo = {
common_getQRCode:"/qrcode/params/get",// 获取邀请码
}
export default commonInfo;

@ -5,6 +5,7 @@ import jobInfo from './job.js';
import orderInfo from './order.js'; import orderInfo from './order.js';
import personInfo from './person.js'; import personInfo from './person.js';
import wyyxInfo from './wyyx.js'; import wyyxInfo from './wyyx.js';
import commonInfo from './common.js';
let testInfo = {// 测试接口 let testInfo = {// 测试接口
testUrl:"/overall/store/job/list",// 来源:稻田 小程序首页列表 testUrl:"/overall/store/job/list",// 来源:稻田 小程序首页列表
@ -18,4 +19,4 @@ let baseInfo = {// 公共接口
getConfig:"/yishoudan/weixin/config/getConfig", getConfig:"/yishoudan/weixin/config/getConfig",
} }
export default Object.assign(testInfo,baseInfo,loginInfo,userInfo,bindInfo,jobInfo,orderInfo,personInfo,wyyxInfo); export default Object.assign(testInfo,baseInfo,loginInfo,userInfo,bindInfo,jobInfo,orderInfo,personInfo,commonInfo,wyyxInfo);

@ -11,7 +11,7 @@ let jobInfo = {
job_getDetailInList: "/assistant/custom/job/v2/getInfo",// 职位列表获取职位详情 job_getDetailInList: "/assistant/custom/job/v2/getInfo",// 职位列表获取职位详情
get_job_QRcode: "/yishoudan/custom/job/batchqrcodeUniForAssistant", // 分享多个职位的海报二维码 get_job_QRcode: "/yishoudan/custom/job/batchqrcodeUniForAssistant", // 分享多个职位的海报二维码
get_sharejob_list: "/yishoudan/custom/job/getShareJobs", // 获取分享职位的列表 get_sharejob_list: "/yishoudan/custom/job/getShareJobs", // 获取分享职位的列表
get_getJobText: "/yishoudan/custom/job/getJobText", // 获取分享职位的通告
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',// 获取自有职位政策

@ -124,7 +124,9 @@ export default {
}, },
methods: { methods: {
handleClick() { handleClick() {
this.$emit("clickBtn"); if (!this.loading) {
this.$emit("clickBtn");
}
}, },
getphonenumber(e) { getphonenumber(e) {
this.$emit("clickTel", e); this.$emit("clickTel", e);

@ -39,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: 230px"> <view class="g_ell_1" style="max-width: calc(100vw - 40px)">
<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">

@ -101,10 +101,10 @@
<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" 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"> <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">
<div class="g_mb_3" style="line-height:1;">分享</div> <div class="g_mb_3" style="line-height:1;">分享</div>
<div class="" style="line-height:1;">职位</div> <div class="" style="line-height:1;">职位</div>
</div> --> </div>
<g-filter :show.sync="whichOneShow" @hideDrawer="(e) => (whichOneShow = e)" ref="filterChild" top="101px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter> <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">

@ -80,14 +80,14 @@
</div> </div>
<div style="width: calc(100vw - 40px)" v-else-if="(info.recordStatus == 3 || info.recordStatus == 4) && !isSelf"> <div style="width: calc(100vw - 40px)" v-else-if="(info.recordStatus == 3 || info.recordStatus == 4) && !isSelf">
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button> <g-button btnText="申请关注" size="auto" :loading="btnLoading" type="primary" class @clickBtn="handleSubmit"></g-button>
</div> </div>
<!-- --> <!-- -->
<div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 5"> <div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 5">
<g-button btnText="申请中" icon="icon-time-circle g_mr_4" size="auto" type="disabled" class></g-button> <g-button btnText="申请中" icon="icon-time-circle g_mr_4" size="auto" type="disabled" class></g-button>
</div> </div>
<div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 6 && !isSelf"> <div style="width: calc(100vw - 40px)" v-else-if="info.recordStatus == 6 && !isSelf">
<g-button btnText="申请关注" size="auto" type="primary" class @clickBtn="handleSubmit"></g-button> <g-button btnText="申请关注" size="auto" type="primary" :loading="btnLoading" class @clickBtn="handleSubmit"></g-button>
</div> </div>
</div> </div>
</div> </div>
@ -187,6 +187,7 @@ export default {
numSlot: [], numSlot: [],
showPage: false, showPage: false,
fromShare: false, fromShare: false,
btnLoading: false,
background: { background: {
backgroundColor: "transparent", backgroundColor: "transparent",
}, },
@ -245,6 +246,7 @@ export default {
}, },
], ],
from: "", from: "",
fromQRCode: false, //
jobDetailShow: true, jobDetailShow: true,
loginInfo: {}, loginInfo: {},
isSelf: false, // isSelf: false, //
@ -307,6 +309,7 @@ export default {
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
this.inviteUserId = sceneJson.id.split("_")[1]; //id this.inviteUserId = sceneJson.id.split("_")[1]; //id
this.uid = sceneJson.id.split("_")[0]; // id this.uid = sceneJson.id.split("_")[0]; // id
this.fromQRCode = true; // id
} else { } else {
this.uid = options.id; this.uid = options.id;
this.isShowMore = options.isShowMore ? true : false; this.isShowMore = options.isShowMore ? true : false;
@ -331,7 +334,7 @@ export default {
// //
that.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => { that.getAgencyById().then(() => {
if (that.from !== "apply") { if (that.fromQRCode) {
if (that.info.recordStatus == 1) { if (that.info.recordStatus == 1) {
uni.switchTab({ uni.switchTab({
url: "/pages/home/index", url: "/pages/home/index",
@ -772,6 +775,10 @@ export default {
_code = 1; // _code = 1; //
} }
} }
if (that.btnLoading) {
return;
}
that.btnLoading = true;
this.G.Get(this.api.bind_subscribeSubmit + "/" + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: " " }, (res) => { this.G.Get(this.api.bind_subscribeSubmit + "/" + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: " " }, (res) => {
that.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => { that.getAgencyById().then(() => {
@ -782,6 +789,7 @@ export default {
title: "申请成功", title: "申请成功",
icon: "none", icon: "none",
}); });
that.btnLoading = false;
that.submitConfirm = false; that.submitConfirm = false;
uni.navigateTo({ uni.navigateTo({
url: "/root/person/inviteFollowSuccess", url: "/root/person/inviteFollowSuccess",
@ -872,7 +880,17 @@ export default {
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
if (that.loginInfo.agencyId) { if (that.loginInfo.agencyId) {
that.submitConfirm = true; // that.submitConfirm = true;
that.G.handleConfirm({
confirmText: "确认",
title: "是否确认关注该发单号?",
content: "关注发单号后可浏览职位详情及工单报名",
success: (res) => {
if (res.confirm) {
this.finallySubmit();
}
},
});
} else { } else {
that.G.handleConfirm({ that.G.handleConfirm({
cancelText: "创建团队", cancelText: "创建团队",

@ -90,7 +90,7 @@
<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" @click="goReturn"></view> <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>
<g-button btnText="立即报名" type="primary" @clickBtn="submitForm" /> <g-button btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
</view> </view>
</slot> </slot>
</g-panel-fixed> </g-panel-fixed>
@ -219,7 +219,7 @@ export default {
agreeRadio: ["agree"], agreeRadio: ["agree"],
jobData: [], jobData: [],
zhengceTextList: [], zhengceTextList: [],
btnLaoding: false, btnLoading: false,
}; };
}, },
onShow() { onShow() {
@ -468,10 +468,10 @@ export default {
}); });
return false; return false;
} }
if (that.btnLaoding) { if (that.btnLoading) {
return false; return false;
} }
that.btnLaoding = true; that.btnLoading = true;
let submitInfo = { let submitInfo = {
...that.updateInfo, ...that.updateInfo,
@ -513,7 +513,7 @@ export default {
duration: 2000, duration: 2000,
}); });
// that.persenInfo = []; // that.persenInfo = [];
that.btnLaoding = false; that.btnLoading = false;
// that.$forceUpdate(); // that.$forceUpdate();
setTimeout(() => { setTimeout(() => {

@ -96,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> -->
@ -138,7 +138,7 @@ export default {
console.log(res); console.log(res);
uni.hideLoading(); uni.hideLoading();
resolve({ resolve({
title: "你想找的厂都有,立即查看??", title: "你想找的厂都有,立即查看",
imageUrl: res.tempFilePath, imageUrl: res.tempFilePath,
path: `/root/home/shareList?scene=i=${arr.join("_")},u=${this.userInfo.agencyId}_${this.userInfo.id}`, path: `/root/home/shareList?scene=i=${arr.join("_")},u=${this.userInfo.agencyId}_${this.userInfo.id}`,
// path: '/pages/shareList/index' // path: '/pages/shareList/index'
@ -352,12 +352,11 @@ export default {
...that.getFilterData, ...that.getFilterData,
pageNum: that.query.page, pageNum: that.query.page,
pageSize: that.query.size, pageSize: that.query.size,
agencyId: that.tabInfo.active == 2 ? uni.getStorageSync("apply-agencyId") : "", agencyId: that.tabInfo.active == 1 ? uni.getStorageSync("apply-agencyId") : "",
classify: that.tabInfo.list[that.tabInfo.active].classify, classify: that.tabInfo.list[that.tabInfo.active].classify,
sortTag: that.query.sortTag, sortTag: that.query.sortTag,
keys: that.keyword, keys: that.keyword,
cityName: that.selectedCity == "全国" ? "" : that.selectedCity, cityName: that.selectedCity == "全国" ? "" : that.selectedCity,
tip: that.tabInfo.list[that.tabInfo.active].tip,
}; };
if (that.tabInfo.list[that.tabInfo.active].classify == 1) { if (that.tabInfo.list[that.tabInfo.active].classify == 1) {
params.jobType = 2; params.jobType = 2;
@ -495,36 +494,29 @@ export default {
* 复制转发选中职位的通告信息 * 复制转发选中职位的通告信息
*/ */
copyTrans() { copyTrans() {
var that = this;
if (this.checkedList.length > 0) { if (this.checkedList.length > 0) {
let str = ""; let ids = "";
this.checkedList.forEach((item, index) => { ids = this.checkedList.map((item) => item.id).join("_");
console.log(item); that.G.Get(that.api.get_getJobText, { storeJobIds: ids }, (res) => {
// console.log(item.jobDesp); console.log(res);
let subStr; let str = "";
if (item.jobInfoWithoutReturnFee) { res.forEach((item, index) => {
// , console.log(item);
// if (item.jobInfo.indexOf(item.jobName) > -1) { if (item.jobInfoWithoutReturnFee) {
// subStr = item.jobInfo + (this.userInfo.agencyStatus == 1 ? (this.userInfo.noticeEndStr ? this.userInfo.noticeEndStr : "\n\n" + this.userInfo.tel) : "\n\n" + (this.serviceInfo.userName || "") + (this.serviceInfo.workPhone || "-")) + (index < this.checkedList.length - 1 ? "\n\n\n" : ""); str += item.jobInfoWithoutReturnFee + "\n";
// } else { }
subStr = item.jobInfoWithoutReturnFee; });
// } uni.setClipboardData({
} data: str,
str += subStr; success(res) {
}); uni.showToast({
uni.setClipboardData({ title: "通告内容已复制",
data: str, icon: "none",
success(res) { duration: 1500,
uni.getClipboardData({ });
success(res) { },
console.log(res.data); // data });
uni.showToast({
title: "通告内容已复制",
icon: "none",
duration: 1500,
});
},
});
},
}); });
} }
}, },
@ -556,6 +548,8 @@ export default {
}, },
getCode() { getCode() {
var that = this; var that = this;
let _env = uni.getAccountInfoSync().miniProgram.envVersion;
console.log('_env',_env);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// if (this.checkedList.length == 1) { // if (this.checkedList.length == 1) {
// that.G.Get(that.api.get_singlejob_QRcode + `/${that.checkedList[0].id}`, {}, (res) => { // that.G.Get(that.api.get_singlejob_QRcode + `/${that.checkedList[0].id}`, {}, (res) => {
@ -564,7 +558,7 @@ export default {
// resolve(); // resolve();
// }); // });
// } 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(","), env: _env }, (res) => {
console.log("get_job_QRcode", res); console.log("get_job_QRcode", res);
that.currCode = res.qrcode; that.currCode = res.qrcode;
resolve(); resolve();

@ -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-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" /> <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>
@ -30,9 +30,12 @@ export default {
}, },
isLogin: true, isLogin: true,
loading: false, loading: false,
QRCodeId: null,
}; };
}, },
onLoad(options) { onLoad(options) {
let that = this;
console.log("options", options); console.log("options", options);
if (options.scene) { if (options.scene) {
console.log("XXXXXXXXXXXX"); console.log("XXXXXXXXXXXX");
@ -41,24 +44,47 @@ export default {
console.log(sceneStr); console.log(sceneStr);
var sceneJson = this.G.sceneToJson(sceneStr); var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);
this.sceneStoreJobId = sceneJson.i; that.G.Get("/checkUserLogin", {}, (res) => {
let u = sceneJson.u.split("_"); console.log("checkUserLogin", res);
this.shareUserInfo = { if (res) {
agencyId: u[0], //
agencyUserId: u[1], if (sceneJson.i) {
}; that.sceneStoreJobId = sceneJson.i;
let u = sceneJson.u.split("_");
that.shareUserInfo = {
agencyId: u[0],
agencyUserId: u[1],
};
that.getUserRole().then(() => {
that.getList();
});
} else {
that.QRCodeId = sceneJson.id;
that.getId().then(() => {
that.getUserRole().then(() => {
that.getList();
});
});
}
} else {
uni.reLaunch({
url: `/root/person/loginIndex?type=shareList&path=/root/home/shareList&scene=${JSON.stringify(sceneJson)}`,
});
}
});
// this.sceneStoreJobId = sceneJson.i;
// let u = sceneJson.u.split("_");
// this.sceneStoreJobId = sceneJson.u; // 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.getUserRole().then(() => {
this.getList();
});
}
if (uni.getStorageSync("apply-userinfo")) {
this.isLogin = true;
} else {
this.isLogin = false;
} }
// if (uni.getStorageSync("apply-userinfo")) {
// this.isLogin = true;
// } else {
// this.isLogin = false;
// }
}, },
onShow() {}, onShow() {},
methods: { methods: {
@ -72,6 +98,21 @@ export default {
}); });
}); });
}, },
getId() {
let that = this;
return new Promise((resolve, reject) => {
this.G.Get(this.api.common_getQRCode, { id: that.QRCodeId }, (res) => {
console.log("resresresresresres++++++++++++++", res);
let params = JSON.parse(res.params);
that.sceneStoreJobId = params.storeJobIds;
that.shareUserInfo = {
agencyId: params.agencyId,
agencyUserId: params.userId,
};
resolve();
});
});
},
getList($type = "init") { getList($type = "init") {
let that = this; let that = this;
that.G.Get( that.G.Get(

@ -127,7 +127,7 @@ export default {
setOptions(options) { setOptions(options) {
console.log("options", options); console.log("options", options);
this.fromPageType = options.type; this.fromPageType = options.type;
if (options.type == "detail") { if (options.type == "detail" || options.type == "shareList") {
this.currentId = `id%3D${JSON.parse(options.scene).id}`; this.currentId = `id%3D${JSON.parse(options.scene).id}`;
console.log('this.currentId',this.currentId); console.log('this.currentId',this.currentId);
} }
@ -306,7 +306,7 @@ export default {
uni.switchTab({ uni.switchTab({
url: "/pages/home/index", url: "/pages/home/index",
}); });
} else if (that.fromPageType == "detail") { } else if (that.fromPageType == "detail" || that.fromPageType == "shareList") {
uni.reLaunch({ uni.reLaunch({
url: `${that.path}?scene=${that.currentId}`, url: `${that.path}?scene=${that.currentId}`,
}); });

Loading…
Cancel
Save