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
c3d034e7
Commit
c3d034e7
authored
May 17, 2022
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goodsManage' into 'master'
Fix/goods manage See merge request
!34
parents
c3fe8eab
64fa1779
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
15 deletions
+31
-15
env.config.js
config/env.config.js
+7
-7
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+20
-8
style.less
src/pages/GoodsManage/style.less
+4
-0
No files found.
config/env.config.js
View file @
c3d034e7
...
@@ -2,15 +2,15 @@ const isProduction = process.env.NODE_ENV === 'production';
...
@@ -2,15 +2,15 @@ const isProduction = process.env.NODE_ENV === 'production';
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
envAPi
=
{
const
envAPi
=
{
api
:
'
//backstms-test
9
.liangkebang.net
'
,
api
:
'
//backstms-test
4
.liangkebang.net
'
,
kdspOpApi
:
'
https://kdsp-operation-test
9
.liangkebang.net
'
,
kdspOpApi
:
'
https://kdsp-operation-test
4
.liangkebang.net
'
,
kdspApi
:
'
https://sc-op-api-test
9
.liangkebang.net
'
,
kdspApi
:
'
https://sc-op-api-test
4
.liangkebang.net
'
,
goodsApi
:
'
https://sc-op-api-test
9
.liangkebang.net
'
,
goodsApi
:
'
https://sc-op-api-test
4
.liangkebang.net
'
,
querysApi
:
'
https://sc-settlement-api-test
9
.liangkebang.net
'
,
querysApi
:
'
https://sc-settlement-api-test
4
.liangkebang.net
'
,
// goodsApi: '//192.168.188.111:7000',
// goodsApi: '//192.168.188.111:7000',
prologueDomain
:
'
https://mall-test
9
.liangkebang.net
'
,
prologueDomain
:
'
https://mall-test
4
.liangkebang.net
'
,
qiniuHost
:
'
https://appsync.lkbang.net
'
,
qiniuHost
:
'
https://appsync.lkbang.net
'
,
opapiHost
:
'
https://opapi-test
9
.liangkebang.net
'
,
opapiHost
:
'
https://opapi-test
4
.liangkebang.net
'
,
};
};
const
prodApi
=
{
const
prodApi
=
{
...
...
src/pages/GoodsManage/createModal/index.jsx
View file @
c3d034e7
...
@@ -408,7 +408,6 @@ class goodsManage extends Component {
...
@@ -408,7 +408,6 @@ class goodsManage extends Component {
initCascader
:
null
,
initCascader
:
null
,
});
});
this
.
props
.
form
.
resetFields
();
this
.
props
.
form
.
resetFields
();
console
.
log
(
this
.
BatchSetting
);
return
;
return
;
}
}
this
.
onCancel
();
this
.
onCancel
();
...
@@ -645,11 +644,17 @@ class goodsManage extends Component {
...
@@ -645,11 +644,17 @@ class goodsManage extends Component {
<
FormItem
label=
"商品卖点:"
labelCol=
{
{
span
:
2
}
}
>
<
FormItem
label=
"商品卖点:"
labelCol=
{
{
span
:
2
}
}
>
{
getFieldDecorator
(
'
character
'
,
{
{
getFieldDecorator
(
'
character
'
,
{
initialValue
:
initData
.
character
,
initialValue
:
initData
.
character
,
rules
:
[
{
required
:
true
,
message
:
'
请输入商品卖点
'
,
},
],
})(
})(
<
Input
<
Input
style=
{
{
width
:
690
}
}
style=
{
{
width
:
690
}
}
maxLength=
{
50
}
maxLength=
{
50
}
placeholder=
"
好的卖点信息有利于提高商品转化,限50字
"
placeholder=
"
卖点最优可填写3个词,12个字。前后用空格加竖杠分隔,例: 莹莹剔透 | 粒粒优选 | 易煮易熟
"
allowClear
allowClear
/>,
/>,
)
}
)
}
...
@@ -840,7 +845,7 @@ class goodsManage extends Component {
...
@@ -840,7 +845,7 @@ class goodsManage extends Component {
<
Row
>
<
Row
>
<
Table
<
Table
bordered
bordered
rowKey=
{
r
=>
r
.
thirdSkuNo
}
//
rowKey={r => r.thirdSkuNo}
pagination=
{
false
}
pagination=
{
false
}
scroll=
{
{
y
:
300
,
x
:
1200
}
}
scroll=
{
{
y
:
300
,
x
:
1200
}
}
dataSource=
{
this
.
state
.
editData
}
dataSource=
{
this
.
state
.
editData
}
...
@@ -881,7 +886,10 @@ class goodsManage extends Component {
...
@@ -881,7 +886,10 @@ class goodsManage extends Component {
></
Checkbox
>
></
Checkbox
>
</
Col
>
</
Col
>
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
p
className=
{
styles
.
ptop
}
>
公共滑动图:
</
p
>
<
p
className=
{
styles
.
ptop
}
>
公共滑动图:
<
span
className=
{
styles
.
sizeTitle
}
>
(图片最大上传2M)
</
span
>
</
p
>
<
FormItem
>
<
FormItem
>
{
getFieldDecorator
(
'
commonImageList
'
,
{
{
getFieldDecorator
(
'
commonImageList
'
,
{
initialValue
:
this
.
state
.
initForm
.
commonImageList
,
initialValue
:
this
.
state
.
initForm
.
commonImageList
,
...
@@ -904,9 +912,10 @@ class goodsManage extends Component {
...
@@ -904,9 +912,10 @@ class goodsManage extends Component {
></
Checkbox
>
></
Checkbox
>
</
Col
>,
</
Col
>,
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
p
className=
{
styles
.
ptop
}
>
{
`滑动图${
<
p
className=
{
styles
.
ptop
}
>
color === 'null' ? '' : `
(
$
{
color
})
`
{
`滑动图${color === 'null' ? '' : `
(
$
{
color
})
`}:`
}
}:`
}
</
p
>
<
span
className=
{
styles
.
sizeTitle
}
>
(图片最大上传2M)
</
span
>
</
p
>
<
FormItem
key=
{
color
}
>
<
FormItem
key=
{
color
}
>
{
getFieldDecorator
(
`imageList[${color}]`
,
{
{
getFieldDecorator
(
`imageList[${color}]`
,
{
initialValue
:
initialValue
:
...
@@ -943,7 +952,10 @@ class goodsManage extends Component {
...
@@ -943,7 +952,10 @@ class goodsManage extends Component {
></
Checkbox
>
></
Checkbox
>
</
Col
>
</
Col
>
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
Col
span=
{
23
}
className=
{
styles
.
imgBorder
}
>
<
p
className=
{
styles
.
ptop
}
>
详情图:
</
p
>
<
p
className=
{
styles
.
ptop
}
>
详情图:
<
span
className=
{
styles
.
sizeTitle
}
>
(图片最大上传2M)
</
span
>
</
p
>
<
FormItem
>
<
FormItem
>
{
getFieldDecorator
(
'
detailImageList
'
,
{
{
getFieldDecorator
(
'
detailImageList
'
,
{
initialValue
:
this
.
state
.
initForm
.
detailImageList
,
initialValue
:
this
.
state
.
initForm
.
detailImageList
,
...
...
src/pages/GoodsManage/style.less
View file @
c3d034e7
...
@@ -95,3 +95,7 @@
...
@@ -95,3 +95,7 @@
.iptNumRight {
.iptNumRight {
margin-right: 0 !important;
margin-right: 0 !important;
}
}
.sizeTitle {
font-size: 12px;
}
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