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
shenshaokai
jinfa-platform
Commits
efaa63d7
Commit
efaa63d7
authored
Dec 02, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:店铺积分商品列表数据不对的问题
parent
ecc45c58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
index.tsx
src/components/InputNumber/index.tsx
+2
-1
index.tsx
src/pages/lxMall/pointsMall/index.tsx
+4
-0
No files found.
src/components/InputNumber/index.tsx
View file @
efaa63d7
...
@@ -49,6 +49,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
...
@@ -49,6 +49,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
const
handleChange
=
(
e
)
=>
{
const
handleChange
=
(
e
)
=>
{
const
{
value
}
=
e
.
target
;
const
{
value
}
=
e
.
target
;
const
reg
=
/^
\d
*
([
.
]?\d{0,3})
$/
const
reg
=
/^
\d
*
([
.
]?\d{0,3})
$/
// console.log(reg.test(value), value)
if
(
reg
.
test
(
value
))
{
if
(
reg
.
test
(
value
))
{
onChange
(
value
,
'change'
)
onChange
(
value
,
'change'
)
}
}
...
@@ -78,7 +79,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
...
@@ -78,7 +79,7 @@ const InputNumber: React.FC<InputNumberPropsType> = (props) => {
return
(
return
(
<
div
className=
{
styles
.
input_number
}
>
<
div
className=
{
styles
.
input_number
}
>
<
div
className=
{
cx
(
styles
.
input_number_item
,
styles
.
reduce
,
value
<=
minCount
?
styles
.
disable
:
''
)
}
onClick=
{
handleReduce
}
><
MinusOutlined
/></
div
>
<
div
className=
{
cx
(
styles
.
input_number_item
,
styles
.
reduce
,
value
<=
minCount
?
styles
.
disable
:
''
)
}
onClick=
{
handleReduce
}
><
MinusOutlined
/></
div
>
<
input
disabled=
{
disabled
}
maxLength=
{
8
}
className=
{
styles
.
input_number_input
}
value=
{
value
}
onChange=
{
handleChange
}
onBlur=
{
handleBlur
}
/>
<
input
disabled=
{
disabled
}
maxLength=
{
12
}
className=
{
styles
.
input_number_input
}
value=
{
value
}
onChange=
{
handleChange
}
onBlur=
{
handleBlur
}
/>
<
div
className=
{
cx
(
styles
.
input_number_item
,
styles
.
add
,
value
>=
maxCount
?
styles
.
disable
:
''
)
}
onClick=
{
handleAdd
}
><
PlusOutlined
/></
div
>
<
div
className=
{
cx
(
styles
.
input_number_item
,
styles
.
add
,
value
>=
maxCount
?
styles
.
disable
:
''
)
}
onClick=
{
handleAdd
}
><
PlusOutlined
/></
div
>
</
div
>
</
div
>
)
)
...
...
src/pages/lxMall/pointsMall/index.tsx
View file @
efaa63d7
...
@@ -93,6 +93,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => {
...
@@ -93,6 +93,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => {
param
.
priceType
=
3
param
.
priceType
=
3
getFn
=
PublicApi
.
postSearchShopChannelGetCommodityList
getFn
=
PublicApi
.
postSearchShopChannelGetCommodityList
break
break
case
LAYOUT_TYPE
.
shop
:
param
.
storeId
=
shopId
getFn
=
PublicApi
.
postSearchShopScoreGetCommodityList
break
default
:
default
:
getFn
=
PublicApi
.
postSearchShopScoreGetCommodityList
getFn
=
PublicApi
.
postSearchShopScoreGetCommodityList
break
break
...
...
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