Commit 833bf985 authored by GuanHua's avatar GuanHua

fix: 商品评价数不正确的问题

parent fe859a4c
...@@ -70,7 +70,7 @@ const Comment: React.FC<CommentPropsType> = (props) => { ...@@ -70,7 +70,7 @@ const Comment: React.FC<CommentPropsType> = (props) => {
} }
const fetchCommentSummary = () => { const fetchCommentSummary = () => {
PublicApi.getMemberCommentMallTradeSummary({ productIds: productIds.toString() }).then(res => { PublicApi.getMemberCommentMallTradeSummary({ productIds: productIds.toString(), shopId: String(storeId) }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setSummaryInfo(res.data) setSummaryInfo(res.data)
getCommentCountBySummary(res.data.rows) getCommentCountBySummary(res.data.rows)
......
...@@ -105,10 +105,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => { ...@@ -105,10 +105,10 @@ const PointsMall: React.FC<CommodityPropsType> = (props) => {
getFn(param, { headers }).then(res => { getFn(param, { headers }).then(res => {
setLoading(false) setLoading(false)
if (res.code === 1000) { if (res.code === 1000) {
message.destroy()
setCommodityList(res.data.data) setCommodityList(res.data.data)
setTotalCount(res.data.totalCount) setTotalCount(res.data.totalCount)
} }
message.destroy()
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment