Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
shenshaokai
jinfa-admin
Commits
4d508118
Commit
4d508118
authored
Mar 09, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改活动页原价与活动价bug
parent
a8019e54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
editPanelForm.tsx
...ctivePage/fixtures/components/EditPanel/editPanelForm.tsx
+5
-1
index.tsx
...Management/activePage/fixtures/components/Price/index.tsx
+8
-4
No files found.
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/EditPanel/editPanelForm.tsx
View file @
4d508118
...
...
@@ -148,7 +148,11 @@ const EditPanelForm = () => {
const
isWithMinType
=
minTypeToOne
.
includes
(
componentType
)
?
1
:
minTypeToTwo
.
includes
(
componentType
)
?
2
:
null
// console.log(hotItem".substring(0, 1));
formActions
.
setFieldState
(
'product'
,
(
fieldState
)
=>
{
const
[,
parentKey
]
=
selectedInfo
.
parentKey
.
split
(
'-'
);
let
parentKeyString
=
selectedInfo
.
parentKey
if
(
!
parentKeyString
)
{
parentKeyString
=
selectedInfo
.
selectedKey
.
split
(
"-"
).
slice
(
0
,
-
1
).
join
(
"-"
)
}
const
[,
parentKey
]
=
parentKeyString
.
split
(
'-'
);
const
isCombination
=
componentType
===
'combinationItem'
;
/** 如果是组合促销, 要是已经选择了一个组合促销数据,那么搜索活动商品列表时需要添加当前活动id */
...
...
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/Price/index.tsx
View file @
4d508118
...
...
@@ -13,11 +13,15 @@ const Price: React.FC<Iprops> = (props: Iprops) => {
<
div
className=
{
styles
.
price
}
>
<
div
className=
{
styles
.
originalPrice
}
>
<
span
className=
{
styles
.
currency
}
>
¥
</
span
>
<
span
>
{
originalPrice
}
/
{
unit
}
</
span
>
</
div
>
<
div
className=
{
styles
.
discountPrice
}
>
¥
{
discountPrice
}
/
{
unit
}
<
span
>
{
discountPrice
||
originalPrice
}
/
{
unit
}
</
span
>
</
div
>
{
(
originalPrice
!==
discountPrice
||
!
originalPrice
)
&&
(
<
div
className=
{
styles
.
discountPrice
}
>
¥
{
originalPrice
}
/
{
unit
}
</
div
>
)
||
null
}
</
div
>
)
}
...
...
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