Commit 6d2b2132 authored by GuanHua's avatar GuanHua

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

parent 7ea08af3
/*
* 科技类商品描述模板
* @Author: ghua
* @Date: 2020-08-01 10:59:17
* @Author: ghua
* @Date: 2020-08-01 10:59:17
* @Last Modified by: ghua
* @Last Modified time: 2020-09-09 11:07:52
*/
......@@ -36,6 +36,7 @@ const ScienceTemplate: React.FC<ScienceTemplatePropsType> = (props) => {
</Player>
))
}
</div>
<div className="img_list">
{
......
......@@ -187,18 +187,31 @@ const CommodityDetail = (props) => {
commodityId: id
}
let headers = {}
console.log(layoutType, "layoutType")
switch (layoutType) {
case LAYOUT_TYPE.channel:
headers = {
type: 3
if(type === "3") {
headers = {
type: 5
}
} else {
headers = {
type: 3
}
}
params.channelMemberId = memberId
getDetailFn = PublicApi.getSearchShopChannelGetCommodityDetail
break
case LAYOUT_TYPE.ichannel:
headers = {
type: 4
if(type === "3") {
headers = {
type: 5
}
} else {
headers = {
type: 4
}
}
params.channelMemberId = memberId
getDetailFn = PublicApi.getSearchShopChannelGetCommodityDetail
......@@ -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