master
Joe 2 years ago
parent 569b06cd13
commit 65a5ed19ef

@ -80,9 +80,9 @@ const Detail: React.FC<any> = () => {
authorization: localStorage.getItem('token') ?? '',
},
beforeUpload(file: RcFile) {
const isLt2M = file.size / 1024 / 1024 < 2;
const isLt2M = file.size / 1024 / 1024 < 10;
if (!isLt2M) {
message.error('图片大小不能超过2MB!');
message.error('图片大小不能超过10MB!');
}
return isLt2M;
},
@ -209,6 +209,7 @@ const Detail: React.FC<any> = () => {
pbcBusinessContact: info.pbcBusinessContact,
pbcBusinessContactMobile: info.pbcBusinessContactMobile,
pbcBusinessLevel: info.pbcBusinessLevel,
pbcBusinessEmail: info.pbcBusinessEmail,
pbcBusinessIntroduction: info.pbcBusinessIntroduction,
pbcBusinessLogo: info.pbcBusinessLogo ? [
{
@ -272,11 +273,16 @@ const Detail: React.FC<any> = () => {
valueType: "select",
fieldProps: { options: ['1级', '2级', '3级', '4级', '5级'] }
},
{
title: '邮箱',
key: 'pbcBusinessEmail',
dataIndex: 'pbcBusinessEmail',
},
{
title: '商户简介',
key: 'pbcBusinessIntroduction',
valueType: 'textarea',
span: 3,
span: 2,
dataIndex: 'pbcBusinessIntroduction'
},
{
@ -335,9 +341,9 @@ const Detail: React.FC<any> = () => {
authorization: localStorage.getItem('token') ?? '',
},
beforeUpload(file: RcFile) {
const isLt2M = file.size / 1024 / 1024 < 2;
const isLt2M = file.size / 1024 / 1024 < 10;
if (!isLt2M) {
message.error('图片大小不能超过2MB!');
message.error('图片大小不能超过10MB!');
}
return isLt2M;
},

@ -89,9 +89,9 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
authorization: localStorage.getItem('token') ?? '',
},
beforeUpload(file: RcFile) {
const isLt2M = file.size / 1024 / 1024 < 2;
const isLt2M = file.size / 1024 / 1024 < 10;
if (!isLt2M) {
message.error('图片大小不能超过2MB!');
message.error('图片大小不能超过10MB!');
}
return isLt2M;
},

Loading…
Cancel
Save