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
c018bce5
Commit
c018bce5
authored
May 12, 2022
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化线上代码
parent
c12feea7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
env.config.js
config/env.config.js
+7
-7
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+13
-6
style.less
src/pages/GoodsManage/style.less
+4
-0
No files found.
config/env.config.js
View file @
c018bce5
...
@@ -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 @
c018bce5
...
@@ -846,7 +846,7 @@ class goodsManage extends Component {
...
@@ -846,7 +846,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
}
...
@@ -887,7 +887,10 @@ class goodsManage extends Component {
...
@@ -887,7 +887,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
,
...
@@ -910,9 +913,10 @@ class goodsManage extends Component {
...
@@ -910,9 +913,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
:
...
@@ -949,7 +953,10 @@ class goodsManage extends Component {
...
@@ -949,7 +953,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 @
c018bce5
...
@@ -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