Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
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 78fcf40e
authored
Dec 14, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
限制手机号
1 parent
2d3643da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
html/employee/add.html
html/employee/add.html
View file @
78fcf40
...
...
@@ -158,7 +158,7 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
登录手机号:
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"staffPhone"
maxlength=
"11"
required
lay-verify=
"required|phone"
<input
id=
"staffPhone"
type=
"text"
name=
"staffPhone"
maxlength=
"11"
required
lay-verify=
"required|phone"
placeholder=
"请输入您有效的手机号作为登录账户"
autocomplete=
"off"
class=
"layui-input"
/>
</div>
</div>
...
...
@@ -305,6 +305,7 @@
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
$
(
'#staffPhone'
).
removeAttr
(
'disabled'
)
}
else
{
// var str =
// '<div id="merchantSelect" class="hide"><select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select></div>'
...
...
@@ -317,9 +318,13 @@
$
(
'#merchantIdText'
).
text
(
qs
(
'merchantName'
))
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#staffPhone'
).
attr
(
'disabled'
,
true
)
getList
(
qs
(
'merchantId'
))
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
// $('#merchantNameSelect').addClass('hide')
$
(
'#merchantNameSelect'
).
remove
()
}
else
{
$
(
'#staffPhone'
).
removeAttr
(
'disabled'
)
}
findAllMerchant
(
function
(
result
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
...
...
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