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
65278b2a
Commit
65278b2a
authored
Feb 23, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品交易记录添加商城id的传参
parent
918740b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
index.tsx
...nents/ProductDescription/components/TradeRecord/index.tsx
+4
-2
index.tsx
...l/commodityDetail/components/ProductDescription/index.tsx
+11
-2
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+1
-1
No files found.
src/pages/lxMall/commodityDetail/components/ProductDescription/components/TradeRecord/index.tsx
View file @
65278b2a
...
...
@@ -8,11 +8,12 @@ import styles from './index.less'
interface
TradeRecordPropsType
{
productIds
:
number
[],
setCount
:
Function
setCount
:
Function
,
storeId
:
number
,
}
const
TradeRecord
:
React
.
FC
<
TradeRecordPropsType
>
=
(
props
)
=>
{
const
{
productIds
,
setCount
}
=
props
const
{
productIds
,
setCount
,
storeId
}
=
props
const
[
current
,
setCurrent
]
=
useState
<
number
>
(
1
)
const
[
pageSize
]
=
useState
<
number
>
(
10
)
const
[
totalCount
,
setTotalCount
]
=
useState
<
number
>
(
0
)
...
...
@@ -28,6 +29,7 @@ const TradeRecord: React.FC<TradeRecordPropsType> = (props) => {
const
param
:
any
=
{
current
,
pageSize
,
shopId
:
storeId
,
productIds
:
productIds
.
toString
()
// '2339'
}
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
View file @
65278b2a
/*
* @Author: your name
* @Date: 2021-01-18 16:40:59
* @LastEditTime: 2021-02-23 14:31:36
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
Anchor
,
BackTop
}
from
'antd'
import
Comment
from
'./components/Comment'
...
...
@@ -14,10 +22,11 @@ const { Link } = Anchor
interface
ProductDescriptionPropsType
{
commodityDetail
:
GetSearchShopStoreGetCommodityDetailResponse
,
dataList
:
any
,
storeId
:
number
,
}
const
ProductDescription
:
React
.
FC
<
ProductDescriptionPropsType
>
=
(
props
)
=>
{
const
{
commodityDetail
,
dataList
}
=
props
const
{
commodityDetail
,
dataList
,
storeId
}
=
props
const
[
currentAnchor
,
setCurrentAnchor
]
=
useState
<
string
>
(
"#introduction"
)
const
[
productIds
,
setProductIds
]
=
useState
<
number
[]
>
([])
const
[
tradeRecordCount
,
setTradeRecordCount
]
=
useState
<
number
>
(
0
)
...
...
@@ -69,7 +78,7 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
</
BackTop
>
</
Anchor
>
<
Introduction
commodityDetail=
{
commodityDetail
}
/>
<
TradeRecord
productIds=
{
productIds
}
setCount=
{
(
count
)
=>
setTradeRecordCount
(
count
)
}
/>
<
TradeRecord
productIds=
{
productIds
}
s
toreId=
{
storeId
}
s
etCount=
{
(
count
)
=>
setTradeRecordCount
(
count
)
}
/>
<
Comment
productIds=
{
productIds
}
setCount=
{
(
count
)
=>
setCommentCount
(
count
)
}
/>
<
Recommand
dataList=
{
dataList
}
{
...
props
}
/>
</
div
>
...
...
src/pages/lxMall/commodityDetail/index.tsx
View file @
65278b2a
...
...
@@ -1173,7 +1173,7 @@ const CommodityDetail = (props) => {
<
Interested
priceType=
{
commodityDetail
?.
priceType
}
shopInfo=
{
shopInfo
}
{
...
props
}
/>
</
div
>
<
div
className=
{
styles
.
commodity_detail_body_right
}
>
<
ProductDescription
commodityDetail=
{
commodityDetail
}
dataList=
{
commonCategoryCommodityList
}
{
...
props
}
/>
<
ProductDescription
storeId=
{
storeId
}
commodityDetail=
{
commodityDetail
}
dataList=
{
commonCategoryCommodityList
}
{
...
props
}
/>
</
div
>
</
div
>
</
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