From 65a5ed19eff176a7fd7e21c295b702a0f78354c8 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 2 Apr 2024 09:18:35 +0800 Subject: [PATCH] up --- src/pages/BusinessList/detail.tsx | 16 +++++++++++----- src/pages/ProductList/components/UpdateForm.tsx | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/pages/BusinessList/detail.tsx b/src/pages/BusinessList/detail.tsx index 6a95e52..6cb0218 100644 --- a/src/pages/BusinessList/detail.tsx +++ b/src/pages/BusinessList/detail.tsx @@ -80,9 +80,9 @@ const Detail: React.FC = () => { 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 = () => { 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 = () => { 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 = () => { 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; }, diff --git a/src/pages/ProductList/components/UpdateForm.tsx b/src/pages/ProductList/components/UpdateForm.tsx index ef82997..4c25a9a 100644 --- a/src/pages/ProductList/components/UpdateForm.tsx +++ b/src/pages/ProductList/components/UpdateForm.tsx @@ -89,9 +89,9 @@ const UpdateForm: React.FC = (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; },