Commit 35bef8da by wangzhihui

招聘需求开发

1 parent 4fffecf9
...@@ -350,6 +350,7 @@ Page({ ...@@ -350,6 +350,7 @@ Page({
}, },
// 获取简历详情 // 获取简历详情
getDetail(id) { getDetail(id) {
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
// 标记为已加载,避免重复调用 // 标记为已加载,避免重复调用
this.setData({ this.setData({
detailLoaded: true detailLoaded: true
...@@ -389,7 +390,9 @@ Page({ ...@@ -389,7 +390,9 @@ Page({
} }
// 格式化 trialOnboardingPlans 中的 onboardingDate // 格式化 trialOnboardingPlans 中的 onboardingDate
if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) { if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) {
trialOnboardingPlans = trialOnboardingPlans.map(item => ({ trialOnboardingPlans = trialOnboardingPlans.filter(item=>{
return item.createdPhone == userInfo.phone
}).map(item => ({
...item, ...item,
onboardingDate: this.formatDate(item.trialTime) onboardingDate: this.formatDate(item.trialTime)
})) }))
...@@ -849,7 +852,7 @@ showTrialTimePicker() { ...@@ -849,7 +852,7 @@ showTrialTimePicker() {
if (!trialFormData.personName.trim()) { if (!trialFormData.personName.trim()) {
return wx.showToast({ title: '请输入人员姓名', icon: 'none' }) return wx.showToast({ title: '请输入人员姓名', icon: 'none' })
} }
if (!/^1\d{10}$/.test(trialFormData.phoneNumber)) { if (!/^(13\d|15\d|16\d|17\d|18\d|19\d|14\d)\d{8}$/.test(trialFormData.phoneNumber)) {
return wx.showToast({ title: '请输入正确的11位手机号', icon: 'none' }) return wx.showToast({ title: '请输入正确的11位手机号', icon: 'none' })
} }
if (!trialFormData.channelType) { if (!trialFormData.channelType) {
...@@ -896,7 +899,7 @@ showTrialTimePicker() { ...@@ -896,7 +899,7 @@ showTrialTimePicker() {
content: '确认删除该试岗计划吗?', content: '确认删除该试岗计划吗?',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
deleteTrialPlanAPI({ id }).then(res => { deleteTrialPlanAPI({ id,demandId:this.curDataId }).then(res => {
if (res.code == 0) { if (res.code == 0) {
wx.showToast({ title: '删除成功', icon: 'success' }) wx.showToast({ title: '删除成功', icon: 'success' })
this.getDetail(this.curDataId) this.getDetail(this.curDataId)
......
...@@ -365,24 +365,24 @@ page { ...@@ -365,24 +365,24 @@ page {
} }
} }
.card_content { // .card_content {
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: space-between; // justify-content: space-between;
} // }
.btn_group { .btn_group {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: var(--fontSize24); gap: var(--fontSize16);
.btn { .btn {
border-radius: var(--fontSize532); border-radius: var(--fontSize532);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: var(--fontSize26); font-size: var(--fontSize26);
cursor: pointer; cursor: pointer;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
...@@ -393,7 +393,8 @@ page { ...@@ -393,7 +393,8 @@ page {
} }
.btn_outline { .btn_outline {
width: var(--fontSize180); flex:1;
// width: var(--fontSize180);
height: var(--fontSize64); height: var(--fontSize64);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
background: #2C66F71a; background: #2C66F71a;
...@@ -401,7 +402,8 @@ page { ...@@ -401,7 +402,8 @@ page {
} }
.btn_primary { .btn_primary {
width: var(--fontSize180); flex:1;
// width: var(--fontSize180);
height: var(--fontSize64); height: var(--fontSize64);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
background: #2c66f7; background: #2c66f7;
......
...@@ -135,7 +135,7 @@ Page({ ...@@ -135,7 +135,7 @@ Page({
const province = value[0] || '' const province = value[0] || ''
const city = value[1] || '' const city = value[1] || ''
const formList = this.data.formList const formList = this.data.formList
const addressStr = `${province} ${city}` const addressStr = `${province}${city}`
const addreddCode = code.join('/') const addreddCode = code.join('/')
formList[FORM_FIELDS.ADDRESS].value = addreddCode formList[FORM_FIELDS.ADDRESS].value = addreddCode
formList[FORM_FIELDS.ADDRESS].displayValue = addressStr formList[FORM_FIELDS.ADDRESS].displayValue = addressStr
...@@ -194,7 +194,7 @@ Page({ ...@@ -194,7 +194,7 @@ Page({
// 如果已有选中值,标记为选中 // 如果已有选中值,标记为选中
if (item.value && item.displayValue) { if (item.value && item.displayValue) {
if (item.multi) { if (item.multi) {
const selectedValues = Array.isArray(item.value) ? item.value : item.value.split(',') const selectedValues = Array.isArray(item.value) ? item.value : item.value.split('/')
options = options.map(option => { options = options.map(option => {
if (selectedValues.includes(String(option.value))) { if (selectedValues.includes(String(option.value))) {
option.checked = true option.checked = true
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<text wx:if="{{ item.label !== '需求描述' }}" class="required">*</text> <text wx:if="{{ item.label !== '需求描述' }}" class="required">*</text>
</view> </view>
<view class="value" wx:if="{{ item.label === '门店名称' && bySystemMerchant }}"> <view class="value" wx:if="{{ item.label === '门店名称' && bySystemMerchant }}">
<input class="store-input" type="text" placeholder="请输入门店名称" placeholder-style="color: #BBBBBB;font-size:var(--fontSize28);text-align:right;" value="{{ item.displayValue }}" bindinput="onStoreNameInput" maxlength="50" /> <input class="number-input" type="text" placeholder="请输入门店名称" placeholder-style="color: #BBBBBB;font-size:var(--fontSize28);text-align:right;" value="{{ item.displayValue }}" bindinput="onStoreNameInput" maxlength="50" />
</view> </view>
<view class="value" wx:elif="{{ item.label === '门店名称' && !bySystemMerchant }}"> <view class="value" wx:elif="{{ item.label === '门店名称' && !bySystemMerchant }}">
<text class="display_value" wx:if="{{ item.displayValue }}">{{item.displayValue}}</text> <text class="display_value" wx:if="{{ item.displayValue }}">{{item.displayValue}}</text>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!