Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a89eff5f
authored
Nov 27, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片尺寸提示
parent
b223e2e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/Admin/Controllers/DoctorController.php
+1
-1
app/Admin/Controllers/PharmacistController.php
+1
-1
No files found.
app/Admin/Controllers/DoctorController.php
View file @
a89eff5f
...
@@ -140,7 +140,7 @@ protected function form()
...
@@ -140,7 +140,7 @@ protected function form()
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'id_card_front_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'id_card_front_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'id_card_back_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'id_card_back_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
);
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
help
(
"<span style='color:red;'>图片尺寸要求:600x400,即3:2的比例</span>"
)
;
});
});
$form
->
saving
(
function
(
Form
$form
)
{
$form
->
saving
(
function
(
Form
$form
)
{
...
...
app/Admin/Controllers/PharmacistController.php
View file @
a89eff5f
...
@@ -186,7 +186,7 @@ protected function form()
...
@@ -186,7 +186,7 @@ protected function form()
$form
->
column
(
6
,
function
(
Form
$form
)
{
$form
->
column
(
6
,
function
(
Form
$form
)
{
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
);
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
help
(
"<span style='color:red;'>图片尺寸要求:600x400,即3:2的比例</span>"
)
;
});
});
$form
->
saving
(
function
(
Form
$form
)
{
$form
->
saving
(
function
(
Form
$form
)
{
...
...
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