Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0c6ac8de
authored
Jul 08, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xiu'fu
1 parent
0d3cc0f0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
packageWorkspace/pages/recruitManage/recruitInsert/recruitInsert.js
packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml
View file @
0c6ac8d
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<view class="entry_plan">
<view class="entry_plan">
<view class="block_title" style="display: flex; justify-content: space-between; align-items: center;">
<view class="block_title" style="display: flex; justify-content: space-between; align-items: center;">
<text>试岗计划</text>
<text>试岗计划</text>
<view class="btn_add_trial" bindtap="showTrialPopup" data-type="add" style="color: #347bff; font-size: 26rpx; font-weight: normal; display: flex; align-items: center;">
<view
wx:if="{{recruitment.status!=2}}"
class="btn_add_trial" bindtap="showTrialPopup" data-type="add" style="color: #347bff; font-size: 26rpx; font-weight: normal; display: flex; align-items: center;">
<van-icon name="plus" style="margin-right: 4rpx;" /> 添加试岗
<van-icon name="plus" style="margin-right: 4rpx;" /> 添加试岗
</view>
</view>
</view>
</view>
...
...
packageWorkspace/pages/recruitManage/recruitInsert/recruitInsert.js
View file @
0c6ac8d
...
@@ -36,10 +36,6 @@ const VALIDATION_CONFIG = {
...
@@ -36,10 +36,6 @@ const VALIDATION_CONFIG = {
}
}
}
}
// 详细地址:仅支持大小写字母、数字、中文及 、,/[]【】(提交时校验)
const
ADDRESS_DETAIL_ALLOWED_REG
=
/^
[
a-zA-Z0-9
\u
4e00-
\u
9fa5、,
\/\[\]
【】
]
*$/
const
ADDRESS_DETAIL_FORMAT_TIP
=
'详细地址仅支持大小写字母、数字、中文及、,/[]【】符号'
Page
({
Page
({
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
...
@@ -599,18 +595,13 @@ Page({
...
@@ -599,18 +595,13 @@ Page({
},
},
// 表单验证
// 表单验证
validateForm
()
{
validateForm
()
{
const
{
formList
,
bySystemMerchant
}
=
this
.
data
const
{
formList
}
=
this
.
data
for
(
let
[
index
,
config
]
of
Object
.
entries
(
VALIDATION_CONFIG
))
{
for
(
let
[
index
,
config
]
of
Object
.
entries
(
VALIDATION_CONFIG
))
{
if
(
config
.
required
&&
!
formList
[
index
].
value
)
{
if
(
config
.
required
&&
!
formList
[
index
].
value
)
{
wx
.
showToast
({
title
:
config
.
tip
,
icon
:
'none'
,
duration
:
2000
})
wx
.
showToast
({
title
:
config
.
tip
,
icon
:
'none'
,
duration
:
2000
})
return
false
return
false
}
}
}
}
const
addressDetail
=
formList
[
FORM_FIELDS
.
ADDRESS_DETAIL
].
value
||
''
if
(
bySystemMerchant
&&
addressDetail
&&
!
ADDRESS_DETAIL_ALLOWED_REG
.
test
(
addressDetail
))
{
wx
.
showToast
({
title
:
ADDRESS_DETAIL_FORMAT_TIP
,
icon
:
'none'
,
duration
:
2000
})
return
false
}
return
true
return
true
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment