Commit 38419113 authored by 张子雨's avatar 张子雨

feat: 修改样式问题

parent a2d6b627
...@@ -85,9 +85,6 @@ class goodsManage extends Component { ...@@ -85,9 +85,6 @@ class goodsManage extends Component {
inputChange = (value, key, index) => { inputChange = (value, key, index) => {
this.setState(prev => { this.setState(prev => {
if (key === 'third') {
prev.editData[index].thirdSkuNo = value;
}
prev.editData[index][key] = value; prev.editData[index][key] = value;
return { editData: prev.editData }; return { editData: prev.editData };
}); });
...@@ -884,7 +881,8 @@ class goodsManage extends Component { ...@@ -884,7 +881,8 @@ class goodsManage extends Component {
></Checkbox> ></Checkbox>
</Col> </Col>
<Col span={23} className={styles.imgBorder}> <Col span={23} className={styles.imgBorder}>
<FormItem label="公共滑动图"> <p className={styles.ptop}>公共滑动图:</p>
<FormItem>
{getFieldDecorator('commonImageList', { {getFieldDecorator('commonImageList', {
initialValue: this.state.initForm.commonImageList, initialValue: this.state.initForm.commonImageList,
valuePropName: 'fileList', valuePropName: 'fileList',
...@@ -906,10 +904,10 @@ class goodsManage extends Component { ...@@ -906,10 +904,10 @@ class goodsManage extends Component {
></Checkbox> ></Checkbox>
</Col>, </Col>,
<Col span={23} className={styles.imgBorder}> <Col span={23} className={styles.imgBorder}>
<FormItem <p className={styles.ptop}>{`滑动图${
key={color} color === 'null' ? '' : `(${color})`
label={`滑动图${color === 'null' ? '' : `(${color})`}:`} }:`}</p>
> <FormItem key={color}>
{getFieldDecorator(`imageList[${color}]`, { {getFieldDecorator(`imageList[${color}]`, {
initialValue: initialValue:
this.state.initForm.imageList && this.state.initForm.imageList[color], this.state.initForm.imageList && this.state.initForm.imageList[color],
...@@ -945,7 +943,8 @@ class goodsManage extends Component { ...@@ -945,7 +943,8 @@ class goodsManage extends Component {
></Checkbox> ></Checkbox>
</Col> </Col>
<Col span={23} className={styles.imgBorder}> <Col span={23} className={styles.imgBorder}>
<FormItem label="详情图"> <p className={styles.ptop}>详情图:</p>
<FormItem>
{getFieldDecorator('detailImageList', { {getFieldDecorator('detailImageList', {
initialValue: this.state.initForm.detailImageList, initialValue: this.state.initForm.detailImageList,
valuePropName: 'fileList', valuePropName: 'fileList',
......
...@@ -162,6 +162,7 @@ export function validateSpuInfo(values, initData, editData, productType) { ...@@ -162,6 +162,7 @@ export function validateSpuInfo(values, initData, editData, productType) {
const checkKey = Object.keys(newCheckObject); const checkKey = Object.keys(newCheckObject);
const checkString = []; const checkString = [];
editData.forEach((item, index) => { editData.forEach((item, index) => {
item.thirdSkuNo = item.third;
const rowCheckString = checkKey.reduce((checkMessage, val, ind) => { const rowCheckString = checkKey.reduce((checkMessage, val, ind) => {
const checkItem = item[val]; const checkItem = item[val];
if (checkItem === null || checkItem === undefined || checkItem === '') { if (checkItem === null || checkItem === undefined || checkItem === '') {
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
bottom: 20px; bottom: 20px;
left: 0; left: 0;
} }
.ptop {
margin-top: 5px;
}
.tabletop { .tabletop {
margin-top: 20px; margin-top: 20px;
...@@ -40,7 +43,7 @@ ...@@ -40,7 +43,7 @@
.pullBtn { .pullBtn {
position: absolute; position: absolute;
top: 30px; top: 30px;
right: -700px; left: 800px;
} }
.price { .price {
......
...@@ -197,7 +197,7 @@ class PicturesWall extends React.Component { ...@@ -197,7 +197,7 @@ class PicturesWall extends React.Component {
listType: 'picture-card', listType: 'picture-card',
}; };
return ( return (
<div className="clearfix"> <div className={styles.clearfix}>
<div className={styles.imgContent}> <div className={styles.imgContent}>
{fileList.length > 0 && ( {fileList.length > 0 && (
<ReactSortable list={fileList} setList={list => this.sortChange(list)}> <ReactSortable list={fileList} setList={list => this.sortChange(list)}>
......
...@@ -28,3 +28,7 @@ ...@@ -28,3 +28,7 @@
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
} }
.clearfix {
margin-right: 200px;
}
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