Commit 6d2b2132 authored by GuanHua's avatar GuanHua

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

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