Commit 6d2b2132 authored by GuanHua's avatar GuanHua

fix: 渠道积分商品传参错误问题

parent 7ea08af3
......@@ -36,6 +36,7 @@ const ScienceTemplate: React.FC<ScienceTemplatePropsType> = (props) => {
</Player>
))
}
</div>
<div className="img_list">
{
......
......@@ -187,19 +187,32 @@ const CommodityDetail = (props) => {
commodityId: id
}
let headers = {}
console.log(layoutType, "layoutType")
switch (layoutType) {
case LAYOUT_TYPE.channel:
if(type === "3") {
headers = {
type: 5
}
} else {
headers = {
type: 3
}
}
params.channelMemberId = memberId
getDetailFn = PublicApi.getSearchShopChannelGetCommodityDetail
break
case LAYOUT_TYPE.ichannel:
if(type === "3") {
headers = {
type: 5
}
} else {
headers = {
type: 4
}
}
params.channelMemberId = memberId
getDetailFn = PublicApi.getSearchShopChannelGetCommodityDetail
break
......@@ -225,7 +238,7 @@ const CommodityDetail = (props) => {
getMemberCredit(res.data?.memberId, res.data?.memberRoleId)
}
} else {
message.info(res.message)
// message.info(res.message)
setErrorInfo(res.message)
}
setSpinLoading(false)
......
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