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
ff197365
Commit
ff197365
authored
Feb 25, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品评价添加shopId字段查询
parent
301e31ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
index.tsx
...omponents/ProductDescription/components/Comment/index.tsx
+5
-3
index.tsx
...l/commodityDetail/components/ProductDescription/index.tsx
+3
-3
No files found.
src/pages/lxMall/commodityDetail/components/ProductDescription/components/Comment/index.tsx
View file @
ff197365
...
...
@@ -12,11 +12,12 @@ import styles from './index.less'
interface
CommentPropsType
{
productIds
:
number
[],
setCount
:
Function
setCount
:
Function
,
storeId
:
number
,
}
const
Comment
:
React
.
FC
<
CommentPropsType
>
=
(
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
)
...
...
@@ -45,7 +46,8 @@ const Comment: React.FC<CommentPropsType> = (props) => {
const
param
:
any
=
{
current
,
pageSize
,
productIds
:
productIds
.
toString
()
// '2339'
productIds
:
productIds
.
toString
(),
// '2339'
shopId
:
storeId
,
}
if
(
type
===
'good'
)
{
param
.
starLevel
=
3
...
...
src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
View file @
ff197365
/*
* @Author: your name
* @Date: 2021-01-18 16:40:59
* @LastEditTime: 2021-02-2
3 14:31:36
* @LastEditors:
your name
* @LastEditTime: 2021-02-2
5 09:45:52
* @LastEditors:
Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /lingxi-business-paltform/src/pages/lxMall/commodityDetail/components/ProductDescription/index.tsx
*/
...
...
@@ -79,7 +79,7 @@ const ProductDescription: React.FC<ProductDescriptionPropsType> = (props) => {
</
Anchor
>
<
Introduction
commodityDetail=
{
commodityDetail
}
/>
<
TradeRecord
productIds=
{
productIds
}
storeId=
{
storeId
}
setCount=
{
(
count
)
=>
setTradeRecordCount
(
count
)
}
/>
<
Comment
productIds=
{
productIds
}
setCount=
{
(
count
)
=>
setCommentCount
(
count
)
}
/>
<
Comment
productIds=
{
productIds
}
s
toreId=
{
storeId
}
s
etCount=
{
(
count
)
=>
setCommentCount
(
count
)
}
/>
<
Recommand
dataList=
{
dataList
}
{
...
props
}
/>
</
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