通告配置

cyl/master
wangxia 8 months ago
parent 7b10c8f86a
commit 4fd670ce80

@ -38,7 +38,7 @@ export default {
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png";
} else if (that.globalData.appId == "wxe431e0b3abd9ae0b") {
that.globalData.title = "伯才工作";
that.globalData.themeColor = "#ff4400";
that.globalData.themeColor = "#3578f6";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png";
} else if (that.globalData.appId == "wxb0c590fd696b79be") {
that.globalData.title = "稻田工作";

@ -41,6 +41,9 @@ let jobInfo = {
get_job_city: "/yishoudan/custom/job/getShareJobs" ,// 获取分享职位的列表
add_resume: "/yishoudan/user/applyClue/addRecord",// 简历报名
order_submitFellow: "/yishoudan/user/updateInfo",// 老乡编辑提交
get_contact_cfg:"/agency/getContactCfg", // 获取配置通告
update_contact_cfg:"/agency/updateContactCfg" // 获取配置通告
}
export default jobInfo;

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

@ -300,6 +300,24 @@
"style": {
"navigationBarTitleText": "个人信息"
}
},
{
"path": "configAnnunciate",
"style": {
"navigationBarTitleText": "配置通告",
"backgroundColor": "#f5f5f5",
"backgroundColorTop": "#f5f5f5",
"backgroundColorBottom": "#f5f5f5"
}
},
{
"path": "addContact",
"style": {
"navigationBarTitleText": "添加联系人",
"backgroundColor": "#f5f5f5",
"backgroundColorTop": "#f5f5f5",
"backgroundColorBottom": "#f5f5f5"
}
}
]
},

@ -59,7 +59,7 @@
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view>
<view class="g_mt_10">
<view class="g_mt_10" v-if="false">
<!-- 推广区 -->
<view class="g_ml_10 g_mr_10">
<image class="g_w_all g_h_70 g_radius_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-11-17/1a1df19f-89f5-4a8d-8888-3b050badb6c1_banner-02.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""> </image>

@ -0,0 +1,160 @@
<template>
<view class="container g_mt_16">
<view class="form">
<form class="form">
<view class="cellBox">
<view class="weui-cell g_border_e_b">
<view class="weui-cell__hd"> 引导语 </view>
<view class="weui-cell__bd">
<input class="weui-input" type name="title" data-type="userName" v-model="contactInfo.title" placeholder="例如:详情咨询" placeholder-class="g_c_9" />
</view>
</view>
<view class="weui-cell g_border_e_b">
<view class="weui-cell__hd"> 称呼 </view>
<view class="weui-cell__bd">
<input class="weui-input" type="" name="userName" data-type="tel" v-model="contactInfo.userName" placeholder="例如:张三" placeholder-class="g_c_9" />
</view>
</view>
<view class="weui-cell">
<view class="weui-cell__hd"> 手机号 </view>
<view class="weui-cell__bd">
<input class="weui-input" type="number" name="tel" data-type="tel" v-model="contactInfo.tel" placeholder="请输入手机号" placeholder-class="g_c_9" />
</view>
</view>
</view>
<view class="g_mt_120" hover-class="none" hover-stop-propagation="false">
<g-button btnText="保存" type="primary" @clickBtn="beforeFormSubmit"></g-button>
</view>
<view class="g_mt_16 g_fs_14" v-if="type == 'update'" @click="deleteContact" style="text-align: center; color: #576b95" hover-class="thover" hover-stop-propagation="false"></view>
</form>
</view>
</view>
</template>
<script>
export default {
data() {
return {
contactInfo: {},
type: "",
};
},
created() {},
onLoad(options) {
if (options.info) {
console.log(JSON.parse(options.info));
if (JSON.parse(options.info).title == "详情咨询" && !JSON.parse(options.info).index) {
this.contactInfo = JSON.parse(options.info);
this.type = "add";
} else {
this.contactInfo = JSON.parse(options.info);
this.type = "update";
}
} else {
this.type = "add";
}
},
methods: {
deleteContact() {
let that = this;
uni.showModal({
title: "",
content: "是否确认删除该联系人?",
confirmColor: "#1890ff",
success: function (res) {
console.log(res);
if (res.confirm) {
that.G.Post(that.api.update_contact_cfg, { sourceJson: JSON.stringify(that.contactInfo), targetJson: "", type: "update" }, (res) => {
uni.setStorageSync("apply-userinfo", { ...uni.getStorageSync("apply-userinfo"), noticeEndStr: res.noticeEndStr });
console.log(res);
uni.showToast({
title: "删除成功",
icon: "success",
duration: 1500,
});
setTimeout(() => {
uni.navigateBack({
delta: 1,
});
}, 1500);
});
}
},
});
},
beforeFormSubmit(e) {
console.log(e);
let v = this.contactInfo;
if (v.tel == "" || v.title == "" || v.userName == "") {
uni.showToast({
title: "请确保信息输入完整",
icon: "none",
});
} else {
console.log("full");
this.addContent(v);
}
},
addContent(value) {
let that = this;
let data, targetJson, sourceJson, type;
if (this.type == "add") {
targetJson = JSON.stringify(value);
sourceJson = "";
type = "add";
} else {
targetJson = JSON.stringify(value);
sourceJson = JSON.stringify(this.contactInfo);
type = "update";
}
data = {
targetJson,
sourceJson,
type,
};
that.G.Post(that.api.update_contact_cfg, data, (res) => {
uni.setStorageSync("apply-userinfo", { ...uni.getStorageSync("apply-userinfo"), noticeEndStr: res.noticeEndStr });
uni.showToast({
title: "保存成功",
icon: "success",
duration: 1500,
});
setTimeout(() => {
uni.navigateBack({
delta: 1,
});
}, 1500);
});
},
},
};
</script>
<style>
page {
background-color: #f5f5f5;
}
.container {
padding: 10px;
padding-top: 0;
}
.cellBox {
border-radius: 8px;
overflow: hidden;
padding: 0 10px;
background-color: #fff;
}
.weui-cell {
display: flex;
justify-content: space-between;
align-items: center;
height: 56px;
font-size: 16px;
padding-left: 0;
padding-right: 0;
}
.weui-cell__bd input {
text-align: right;
}
</style>

@ -0,0 +1,181 @@
<template>
<view class="box">
<scroll-view scroll-view class="container g_mt_16 g_radius_8" scroll-x="false" scroll-y="true" upper-threshold="50" lower-threshold="50" scroll-top="0" scroll-left="0" scroll-into-view scroll-with-animation="false" enable-back-to-top="false" bindscrolltoupper bindscrolltolower bindscroll>
<view class="box" v-for="item in annunciateList" @click="editAnnunciate" data-info="{{item}}">
<view class="subset {{index != 0 ? 'bt1' : ''}}">
<view class="left">
<view class="name" style="min-width: 148px">
<view class="g_fs_16">{{ item.title }}</view>
</view>
<view class="tel g_c_6 g_fs_16">
{{ (item.userName || "") + (item.tel || "") }}
<i class="iconfont icon-gengduo11 g_fs_16 g_c_c g_ml_4"></i>
</view>
</view>
</view>
</view>
</scroll-view>
<view class="g_fs_14 g_c_6 g_ml_10 g_mt_8 g_c_9" v-if="noData"></view>
<view class="preview">
<!-- v-if="{{userInfo.noticeEndStr}}" -->
<view class="title g_border_e_b g_fw_600 g_pl_10">预览</view>
<view class="content">
<view class v-if="userInfo.noticeEndStr" style="white-space: pre-line">{{ userInfo.noticeEndStr }}</view>
<view class="g_fs_14 g_c_6" v-else>
<!-- 您目前没有配置通告联系人系统默认您为联系人 -->
<view class="g_mt_8 g_c_3 g_fw_500">{{ userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : "详情咨询:" + userInfo.tel) : "详情咨询:" + serviceInfo.userName + (serviceInfo.workPhone || "-") }}</view>
</view>
</view>
</view>
<view class="addMember g_mt_10 g_fw_600" hover-class="thover" @click="addContact">
<view class="add"> <view class="iconfont icon-tianjia" style="display: inline-block" />添加联系人 </view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
globalData: getApp().globalData,
userInfo: {}, //
serviceInfo: {},
annunciateList: [],
noData: false,
};
},
created() {},
onShow() {
let that = this;
setTimeout(() => {
that.userInfo = uni.getStorageSync("apply-userinfo");
that.getServiceInfo();
}, 100);
},
methods: {
/**
* 通告信息修改
*
*
*/
editAnnunciate(e) {
console.log(e);
wx.navigateTo({
url: `/root/detail/addContact?info=${JSON.stringify(e.currentTarget.dataset.info)}`,
});
},
addContact() {
wx.navigateTo({
url: `/root/detail/addContact`,
});
},
getList() {
let that = this;
that.G.Get(that.api.get_contact_cfg, "", (res) => {
console.log("res", res);
if (res && res.ContactCfgs) {
// console.log('ContactCfgs');
if (res.ContactCfgs.length > 0) {
res.ContactCfgs.forEach((item, index) => {
item.index = index + 1;
});
that.annunciateList = res.ContactCfgs;
that.noData = false;
} else {
that.annunciateList = [{ tel: that.userInfo.agencyStatus == 1 ? that.userInfo.tel : that.serviceInfo.workPhone ? that.serviceInfo.workPhone : "-", title: that.userInfo.agencyStatus == 1 ? (that.userInfo.noticeEndStr ? that.userInfo.noticeEndStr : "详情咨询") : "详情咨询", userName: that.userInfo.agencyStatus == 1 ? "" : that.serviceInfo.userName }];
that.noData = true;
}
} else {
that.annunciateList = [{ tel: that.userInfo.agencyStatus == 1 ? that.userInfo.tel : that.serviceInfo.workPhone ? that.serviceInfo.workPhone : "-", title: that.userInfo.agencyStatus == 1 ? (that.userInfo.noticeEndStr ? that.userInfo.noticeEndStr : "详情咨询") : "详情咨询", userName: that.userInfo.agencyStatus == 1 ? "" : that.serviceInfo.userName }];
that.noData = true;
}
});
},
getServiceInfo() {
let that = this;
that.G.Get(that.api.login_out, {}, (res) => {
console.log(res);
that.serviceInfo = res;
that.getList();
});
},
},
};
</script>
<style lang="less">
page {
background-color: #f5f5f5;
}
.box {
overflow: hidden;
padding: 0 10px;
}
.container {
background-color: #fff;
}
.subset {
display: flex;
justify-content: space-between;
/* padding: 16px 0px; */
height: 56px;
line-height: 56px;
/* border-bottom: 1px solid #0000000f; */
font-size: 14px;
.name {
display: flex;
align-items: center;
justify-content: start;
/* width: 222px; */
box-sizing: border-box;
min-width: 100px;
color: #333;
.t-icon {
width: 44px;
height: 16px;
background-repeat: no-repeat;
margin-right: 24px;
}
}
.tel {
display: flex;
/* align-items: center; */
color: #666;
}
.edit,
.delete {
color: #666;
text-decoration: underline;
}
}
.left {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.preview {
.title {
padding-top: 32px;
padding-bottom: 8px;
color: #000;
border-bottom-color: #ddd;
}
.content {
padding: 8px 10px 0;
}
}
.addMember {
display: flex;
justify-content: center;
border-radius: 8px;
height: 56px;
line-height: 56px;
padding: 0px;
margin-top: 120px;
color: #1890ff;
background-color: #fff;
}
</style>

@ -168,10 +168,15 @@
</view>
<!-- 职位描述富文本 -->
<view class="g_flex_column_center" v-if="tabInfo.active == 1">
<view class="g_fs_16">
<view class="g_fs_16 g_pb_32">
<view class="g_c_3 g_pt_16 pri">
<view @click="setCopy('new')" v-if="jobDetail.jobInfoWithoutReturnFee || jobDetail.jobInfo"> <span class="desp-copy g_c_main g_border_main"></span> </view>{{ jobDetail.jobInfoWithoutReturnFee || jobDetail.jobInfo || "-" }}</view
>
<view class="contactInfo" style="white-space: pre-line" hover-class="none" hover-stop-propagation="false">{{ userInfo.noticeEndStr ? userInfo.noticeEndStr : "详情咨询:" + userInfo.tel }}</view>
<view class="g_fs_14 g_text_c g_mt_16" v-if="userInfo.agencyStatus == 1">
以上联系人可以
<span class="g_fw_600" @click="changeContact" style="color: #576b95; text-decoration: underline">改成我的</span>
</view>
</view>
</view>
<view class="" v-if="tabInfo.active == 2" hover-class="none" hover-stop-propagation="false">
@ -232,8 +237,7 @@
<image class="g_w_40 g_h_40" :src="jobDetail.logo" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""> </image>
<view class="g_ml_8" hover-class="none" hover-stop-propagation="false">
<view class="g_c_f40 g_fs_16 g_mb_4" hover-class="none" hover-stop-propagation="false">
<span class="g_fw_600 g_mr_4" hover-class="none" hover-stop-propagation="false" v-html="jobDetail.priceStr">
</span>
<span class="g_fw_600 g_mr_4" hover-class="none" hover-stop-propagation="false" v-html="jobDetail.priceStr"> </span>
<span class="g_fs_14" hover-class="none" hover-stop-propagation="false">
{{ jobDetail.monthPay }}
</span>
@ -580,7 +584,7 @@ export default {
// res.ageStr = setData.age;
// res.priceStr = that.G.getSalaryClassifyValue(res.salaryClassify, res.salaryClassifyValue);
res.priceStr = that.G.getSalaryClassifyValueHtml(res.salaryClassify, res.salaryClassifyValue)
res.priceStr = that.G.getSalaryClassifyValueHtml(res.salaryClassify, res.salaryClassifyValue);
res.fuWuFei = that.G.setReturnFee(res.returnFee, res.returnFeeType);
res.monthPay = res.minMonthlyPay / 100 + "-" + res.maxMonthlyPay / 100;
res.updateTime = that.G.setDeadLine(res.updateTime, "jiaofu");
@ -611,7 +615,7 @@ export default {
}
// that.jobDetail.jobRequestLabelNamesList = that.jobDetail.jobRequestLabelNames.split(",");
// that.jobDetail.jobSpecialLabelNames = that.jobDetail.jobSpecialLabelNames.split(",");
console.log('that.jobDetail',that.jobDetail);
console.log("that.jobDetail", that.jobDetail);
// that.jobDetail.jobName = ''
that.jobDetail.logo = that.jobDetail.logo.indexOf("http:") > -1 ? that.jobDetail.logo.replace("http:", "https:") : that.jobDetail.logo;
setTimeout(() => {
@ -1055,30 +1059,30 @@ export default {
if (!this.attention) {
return false;
}
that.getCode((res) => {
uni.setStorageSync("apply-code", res);
console.log("是否执行");
});
that.applyPopup.isShow = true;
// uni.navigateTo({
// url: "/root/home/quickApplication?jobId=" + this.jobDetail.id + "&jobName=" + this.jobDetail.jobName + "&title=&type=" + that.jobDetail.jobType + "&tid=" + that.jobDetail.record.templateId,
// that.getCode((res) => {
// uni.setStorageSync("apply-code", res);
// console.log("");
// });
// if (this.jobDetail.recruitment == 1) {
// this.formInfo = {
// userName: "",
// idCard: "",
// tel: "",
// interTime: "",
// };
// that.applyPopup.isShow = true;
uni.navigateTo({
url: "/root/other/quickApplication?jobId=" + this.jobDetail.id + "&jobName=" + this.jobDetail.jobName + "&title=报名&type=" + that.jobDetail.jobType,
});
if (this.jobDetail.recruitment == 1) {
this.formInfo = {
userName: "",
idCard: "",
tel: "",
interTime: "",
};
// this.applyPopup = {
// isShow: true,
// };
// } else {
// uni.showToast({
// title: "",
// icon: "none",
// });
// }
} else {
uni.showToast({
title: "停招职位不能报名",
icon: "none",
});
}
},
handleToggleCollection() {
this.isCollection = !this.isCollection;
@ -1442,6 +1446,11 @@ export default {
toggleReturnFee() {
this.isServicePriceShow = !this.isServicePriceShow;
},
changeContact() {
wx.navigateTo({
url: `/root/detail/configAnnunciate`,
});
},
},
};
</script>

Loading…
Cancel
Save