Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
51112fdd
Commit
51112fdd
authored
Sep 24, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复询价商品阶梯价格为空{}报错的问题
parent
21cef20b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
index.tsx
...ility/merchantCoupon/components/ApplicableGoods/index.tsx
+1
-1
index.tsx
...nUnsubmitted/components/ApplicableGoodsFormItem/index.tsx
+1
-1
index.tsx
...erchantCouponUnsubmitted/components/GoodsDrawer/index.tsx
+2
-2
No files found.
src/pages/transaction/marketingAbility/merchantCoupon/components/ApplicableGoods/index.tsx
View file @
51112fdd
...
@@ -97,7 +97,7 @@ const ApplicableGoods: React.FC<IProps> = (props) => {
...
@@ -97,7 +97,7 @@ const ApplicableGoods: React.FC<IProps> = (props) => {
render
:
(
text
)
=>
{
render
:
(
text
)
=>
{
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
start
=
unitPrice
[
0
]?.
price
;
const
start
=
unitPrice
[
0
]?.
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
].
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
]
?
.
price
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
},
},
},
},
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponUnsubmitted/components/ApplicableGoodsFormItem/index.tsx
View file @
51112fdd
...
@@ -71,7 +71,7 @@ const ApplicableGoodsFormItem = (props) => {
...
@@ -71,7 +71,7 @@ const ApplicableGoodsFormItem = (props) => {
render
:
(
text
)
=>
{
render
:
(
text
)
=>
{
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
start
=
unitPrice
[
0
]?.
price
;
const
start
=
unitPrice
[
0
]?.
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
].
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
]
?
.
price
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
},
},
},
},
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponUnsubmitted/components/GoodsDrawer/index.tsx
View file @
51112fdd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-24 16:11:55
* @Date: 2021-06-24 16:11:55
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
08 19:29:00
* @LastEditTime: 2021-09-
24 14:05:33
* @Description: 商品选择抽屉
* @Description: 商品选择抽屉
*/
*/
import
React
,
{
useEffect
}
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
...
@@ -181,7 +181,7 @@ const GoodsDrawer: React.FC<IProps> = (props) => {
...
@@ -181,7 +181,7 @@ const GoodsDrawer: React.FC<IProps> = (props) => {
render
:
(
text
)
=>
{
render
:
(
text
)
=>
{
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
unitPrice
=
normalizeUnitPrice
(
text
);
const
start
=
unitPrice
[
0
]?.
price
;
const
start
=
unitPrice
[
0
]?.
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
].
price
;
const
end
=
unitPrice
[
unitPrice
.
length
-
1
]
?
.
price
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
return
start
!==
end
?
`¥
${
start
}
~
${
end
}
`
:
`¥
${
start
}
`
;
},
},
},
},
...
...
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