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

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

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