Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
38419113
Commit
38419113
authored
Apr 26, 2022
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改样式问题
parent
a2d6b627
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+8
-9
mixin.jsx
src/pages/GoodsManage/createModal/mixin.jsx
+1
-0
style.less
src/pages/GoodsManage/style.less
+4
-1
index.jsx
src/pages/components/sortablUpload/index.jsx
+1
-1
styles.less
src/pages/components/sortablUpload/styles.less
+4
-0
No files found.
src/pages/GoodsManage/createModal/index.jsx
View file @
38419113
...
@@ -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
'
,
...
...
src/pages/GoodsManage/createModal/mixin.jsx
View file @
38419113
...
@@ -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
===
''
)
{
...
...
src/pages/GoodsManage/style.less
View file @
38419113
...
@@ -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: -7
00px;
left: 8
00px;
}
}
.price {
.price {
...
...
src/pages/components/sortablUpload/index.jsx
View file @
38419113
...
@@ -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
)
}
>
...
...
src/pages/components/sortablUpload/styles.less
View file @
38419113
...
@@ -28,3 +28,7 @@
...
@@ -28,3 +28,7 @@
font-size: 16px;
font-size: 16px;
cursor: pointer;
cursor: pointer;
}
}
.clearfix {
margin-right: 200px;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment