Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a4d055e2
authored
Aug 21, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增邮箱必填
parent
1fc52ba8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
app/Http/Validators/SupplierAccountValidator.php
resources/views/web/AddSupplierAccount.blade.php
resources/views/web/UpdateSupplierAccount.blade.php
app/Http/Validators/SupplierAccountValidator.php
View file @
a4d055e2
...
...
@@ -5,7 +5,7 @@ namespace App\Http\Validators;
use
App\Model\SupplierAccountModel
;
use
App\Model\SupplierChannelModel
;
use
Validator
;
use
Illuminate\Support\Facades\
Validator
;
class
SupplierAccountValidator
{
...
...
@@ -18,6 +18,7 @@ class SupplierAccountValidator
$rules
=
[
"supplier_code"
=>
"required"
,
"contacts_name"
=>
"required"
,
'email'
=>
'required|email'
,
"mobile"
=>
"required|regex:/^1[0-9][0-9]
{
9
}
$/"
,
"password_raw"
=>
"required"
,
"a_type"
=>
"required"
,
...
...
@@ -61,6 +62,8 @@ class SupplierAccountValidator
'mobile.required'
=>
'登录账号不能为空'
,
'mobile.regex'
=>
'账号格式必须为手机号'
,
'password_raw.required'
=>
'账号密码不能为空'
,
'email.required'
=>
'邮箱不能为空'
,
'email.email'
=>
'邮箱格式不对'
,
];
}
}
resources/views/web/AddSupplierAccount.blade.php
View file @
a4d055e2
...
...
@@ -23,7 +23,7 @@
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
邮箱 :
</label>
<label
class=
"layui-form-label"
>
<span
class=
"require"
>
*
</span>
邮箱 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"email"
id=
"email"
placeholder=
"请输入邮箱"
class=
"layui-input"
value=
"{{$account['email'] or ''}}"
>
</div>
...
...
resources/views/web/UpdateSupplierAccount.blade.php
View file @
a4d055e2
...
...
@@ -24,7 +24,7 @@
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
邮箱 :
</label>
<label
class=
"layui-form-label"
>
<span
class=
"require"
>
*
</span>
邮箱 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"email"
id=
"email"
placeholder=
"请输入邮箱"
class=
"layui-input"
value=
"{{$account['email'] or ''}}"
>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment