Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
75b06ba7
提交
75b06ba7
authored
5月 25, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
cd6266bb
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+3
-3
没有找到文件。
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
75b06ba7
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<span
class=
"tip-span"
style=
"display: block;line-height: 34px;"
>
<span
class=
"tip-span"
style=
"display: block;line-height: 34px;"
>
<i
style=
"margin: 10px;"
>
{{
goodsImgFileList
.
length
}}
/ 7
</i>
<i
style=
"margin: 10px;"
>
{{
goodsImgFileList
.
length
}}
/ 7
</i>
商品图片最多上传7张,默认第一张为主图
商品图片最多上传7张,默认第一张为主图
<span
style=
"margin-left: 20px;"
>
主图要求为白底,
单张图片需限制在2M以内,
建议尺寸要求为800*800px,拖拽图片可进行排序
</span>
<span
style=
"margin-left: 20px;"
>
主图要求为白底,建议尺寸要求为800*800px,拖拽图片可进行排序
</span>
</span>
</span>
<draggable
:list=
"goodsImgFileList"
group=
"article"
class=
"dragArea"
@
end=
"handchange($event)"
>
<draggable
:list=
"goodsImgFileList"
group=
"article"
class=
"dragArea"
@
end=
"handchange($event)"
>
<div
v-for=
"(element,index) in goodsImgFileList"
:key=
"index"
class=
"list-complete-item"
<div
v-for=
"(element,index) in goodsImgFileList"
:key=
"index"
class=
"list-complete-item"
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
// 图片是否是正方形 宽高比为 1
// 图片是否是正方形 宽高比为 1
file
.
width
=
img
.
width
;
file
.
width
=
img
.
width
;
file
.
height
=
img
.
height
;
file
.
height
=
img
.
height
;
let
valid
=
(
img
.
width
===
800
)
&&
(
img
.
height
==
=
800
);
let
valid
=
(
img
.
width
>=
800
)
&&
(
img
.
height
>
=
800
);
valid
?
resolve
()
:
reject
();
valid
?
resolve
()
:
reject
();
}
}
img
.
src
=
_URL
.
createObjectURL
(
file
);
img
.
src
=
_URL
.
createObjectURL
(
file
);
...
@@ -546,7 +546,7 @@
...
@@ -546,7 +546,7 @@
return
file
;
return
file
;
},
()
=>
{
},
()
=>
{
this
.
$message
({
this
.
$message
({
message
:
'商品图片尺寸
必须为800 * 800像素,请重新选择
!'
,
message
:
'商品图片尺寸
为800 * 800px及以上,请重新选择!
!'
,
type
:
'warning'
type
:
'warning'
});
});
return
Promise
.
reject
();
return
Promise
.
reject
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论