Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
90eff95f
Commit
90eff95f
authored
Jun 08, 2021
by
liyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a963d196
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
src/public/static/postcard/css/style.css
src/public/static/postcard/css/style.css
+1
-1
src/public/static/postcard/css/style.less
src/public/static/postcard/css/style.less
+2
-1
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+8
-8
No files found.
src/public/static/postcard/css/style.css
View file @
90eff95f
This diff is collapsed.
Click to expand it.
src/public/static/postcard/css/style.less
View file @
90eff95f
...
...
@@ -443,7 +443,8 @@
span {
padding-top: .2rem;
.fs(.32rem, #feee64);
.fs(.24rem, @baseColor);
font-weight: bold;
display: inline-block;
}
.img-container{
...
...
src/resources/views/card/card.blade.php
View file @
90eff95f
...
...
@@ -131,14 +131,14 @@
<div
class=
"ggsk-container"
>
<div
class=
"img-container"
>
@if($userImgStatus == -1)
<img
src=
"{{ asset('postcard/images/img_add.jpg') }}"
class=
"img img-add"
alt=
""
>
<input
type=
"file"
id=
"file"
>
@endif
<input
type=
"file"
id=
"file"
accept=
"image/jpg, image/jpeg, image/png"
>
@endif
@if($userImgStatus == 0)
<img
src=
"{{ asset('postcard/images/img_sh.jpg') }}"
class=
"img img-sh"
alt=
""
>
@endif
@if($userImgStatus == 1)
<img
src=
"{{ $userImg }}"
class=
"img img-sh"
alt=
""
>
@endif
@if($userImgStatus == 2)
<img
src=
"{{ asset('postcard/images/sh_fail.jpg') }}"
class=
"img img-sh"
alt=
""
>
<input
type=
"file"
id=
"file"
>
@endif
<input
type=
"file"
id=
"file"
accept=
"image/jpg, image/jpeg, image/png"
>
@endif
</div>
@if($userImgStatus != 1)
<span>
建议尺寸(710*414px)
</span>
<span>
建议尺寸(710*414px)
jpg,jpeg,png
</span>
@endif
</div>
...
...
@@ -210,11 +210,11 @@
var
acceptFileTypes
=
/^image
\/(
gif|jpe
?
g|png
)
$/i
;
var
roleId
=
getQueryString
(
'
roleId
'
);
var
serverId
=
getQueryString
(
'
serverId
'
);
//文件类型判断
if
(
file
.
type
.
length
&&
!
acceptFileTypes
.
test
(
file
.
type
))
{
alert
(
'
请上传gif、
jpg、jpeg或png格式的文件
'
);
return
false
;
}
//
//
文件类型判断
// if (file.type
&& !acceptFileTypes.test(file.type)) {
// alert('请上传
jpg、jpeg或png格式的文件');
//
return false;
//
}
//文件大小判断
if
(
file
.
size
>
(
2
*
1024
*
1024
))
{
alert
(
'
请上传不超过2M的文件
'
);
...
...
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