Commit 6290c082 authored by 涂伟's avatar 涂伟

fix: 'mobile配置图片上传交互逻辑优化'

parent a0916f88
Pipeline #71641 passed with stages
...@@ -46,6 +46,13 @@ ...@@ -46,6 +46,13 @@
cursor: pointer; cursor: pointer;
border-bottom: 1px solid #2f54eb; border-bottom: 1px solid #2f54eb;
} }
.picTic {
position: absolute;
left: 0;
bottom: -12px;
display: inline-block;
color: red;
}
.search { .search {
width: 50%; width: 50%;
margin: 10px 20px; margin: 10px 20px;
......
...@@ -58,6 +58,8 @@ interface PicturesWallType { ...@@ -58,6 +58,8 @@ interface PicturesWallType {
search: string, search: string,
actives: any, actives: any,
picType: any, picType: any,
picSize: any,
picStr: any,
} }
class PicturesWall extends React.Component<PicturesWallType> { class PicturesWall extends React.Component<PicturesWallType> {
...@@ -342,7 +344,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -342,7 +344,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
actives, actives,
curSelectedImg, curSelectedImg,
} = this.state; } = this.state;
console.log(imgBed,'imgBedddddddddddddddddddddd'); // console.log(imgBed,'imgBedddddddddddddddddddddd');
const { const {
action = `${window.location.origin}${PUBLISH_SERVICE}/FileCenter/UploadSingleFile`, action = `${window.location.origin}${PUBLISH_SERVICE}/FileCenter/UploadSingleFile`,
...@@ -354,6 +356,14 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -354,6 +356,14 @@ class PicturesWall extends React.Component<PicturesWallType> {
picType, picType,
} = this.props; } = this.props;
// 图片尺寸提示
const picSize = {
bootAnimation: '1125*2436',
loginPageImage: '1132*1194',
homePageImage: '1125*617'
}
const picStr = 'bootAnimation,loginPageImage,homePageImage'
const uploadButton = ( const uploadButton = (
<div> <div>
<PlusOutlined /> <PlusOutlined />
...@@ -445,6 +455,9 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -445,6 +455,9 @@ class PicturesWall extends React.Component<PicturesWallType> {
<div className={styles.wallBtn} onClick={this.handleWallShow}> <div className={styles.wallBtn} onClick={this.handleWallShow}>
从图片库选择 从图片库选择
</div> </div>
<div className={styles.picTic} style={{display: picStr.includes(picType) && !fileList.length?'block':'none'}}>
图片建议大小:{picSize[picType]}
</div>
<Modal <Modal
visible={previewVisible} visible={previewVisible}
// title={previewTitle} // title={previewTitle}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment