Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
integralMall
integral-mall
Commits
14def6ae
Commit
14def6ae
authored
Dec 06, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 删除礼品和优惠券的gif图片上传
parent
101e4f20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
info.vue
src/views/goods/coupon/info.vue
+2
-2
info.vue
src/views/goods/gift/info.vue
+3
-3
No files found.
src/views/goods/coupon/info.vue
View file @
14def6ae
...
...
@@ -1071,8 +1071,8 @@ export default {
this
.
$message
.
error
(
'请上传小于2MB的图片'
);
return
false
;
}
if
(
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/jpg'
&&
file
.
type
!==
'image/gif'
)
{
this
.
$message
.
error
(
'请上传jpg,png
,gif
格式的图片'
);
if
(
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/jpg'
)
{
this
.
$message
.
error
(
'请上传jpg,png格式的图片'
);
return
false
;
}
if
(
localStorage
.
getItem
(
'sign'
))
{
...
...
src/views/goods/gift/info.vue
View file @
14def6ae
...
...
@@ -41,7 +41,7 @@
<i
class=
"el-icon-plus"
></i>
</el-upload>
</div>
<p
style=
"font-size: 12px; color: rgb(144, 147, 153);line-height:18px;margin-top:10px;"
>
图片建议尺寸 800*800px,格式 jpg/png
/gif
,大小 1M 以内,你可以拖拽图片调整顺序,最多上传 5 张。
</p>
<p
style=
"font-size: 12px; color: rgb(144, 147, 153);line-height:18px;margin-top:10px;"
>
图片建议尺寸 800*800px,格式 jpg/png,大小 1M 以内,你可以拖拽图片调整顺序,最多上传 5 张。
</p>
<el-dialog
:visible
.
sync=
"dialogVisibleImg"
>
<img
width=
"100%"
:src=
"dialogEnlargeImageUrl"
alt
/>
</el-dialog>
...
...
@@ -1543,8 +1543,8 @@ export default {
return
false
;
}
/*eslint-disable*/
if
(
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/jpg'
&&
file
.
type
!==
'image/gif'
)
{
this
.
$message
.
error
(
'请上传jpg,png
,gif
格式的图片'
);
if
(
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/jpg'
)
{
this
.
$message
.
error
(
'请上传jpg,png格式的图片'
);
return
false
;
}
if
(
localStorage
.
getItem
(
'sign'
))
{
...
...
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