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
linweijiong
jinfa-platform
Commits
19a60cea
Commit
19a60cea
authored
Sep 29, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:清除默认临时库存
parent
aeaf3f64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+3
-3
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
19a60cea
...
...
@@ -63,7 +63,7 @@ const CommodityDetail = (props) => {
const
[
commodityDetail
,
setCommodityDetail
]
=
useState
<
GetSearchShopStoreGetCommodityDetailResponse
>
()
const
[
attrAndValList
,
setAttrAndValList
]
=
useState
<
any
>
({})
const
[
selectAttrVal
,
setSelectAttrVal
]
=
useState
<
selectAttrValType
[]
>
([])
const
[
stockCount
,
setStockCount
]
=
useState
<
number
>
(
100
0
)
const
[
stockCount
,
setStockCount
]
=
useState
<
number
>
(
0
)
const
[
commodityImgList
,
setCommodityImgList
]
=
useState
<
imgItemType
[]
>
([])
const
[
commodityPriceInfo
,
setCommodityPriceInfo
]
=
useState
([])
const
[
parameter
,
setParameter
]
=
useState
<
number
>
()
// 权益参数
...
...
@@ -221,7 +221,7 @@ const CommodityDetail = (props) => {
setCurrentPriceRange
(
sortUnitPrice
(
item
.
unitPrice
))
setAttrAndValList
(
item
)
setStockCount
(
item
.
stockCount
||
1000
)
setStockCount
(
item
.
stockCount
)
}
}
}
...
...
@@ -454,7 +454,7 @@ const CommodityDetail = (props) => {
}
}
setCurrentPriceRange
(
sortUnitPrice
(
unitPricePicList
[
0
].
unitPrice
))
setStockCount
(
unitPricePicList
[
0
].
stockCount
||
1000
)
setStockCount
(
unitPricePicList
[
0
].
stockCount
)
setCommodityImgList
(
tempImgList
)
setAttributeList
(
tempAttrList
)
}
...
...
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