Commit b5139e88 authored by GuanHua's avatar GuanHua

fix: 修改渠道商城跳转链接

parent 0d800e1f
......@@ -305,13 +305,13 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
let url = ''
switch (option.type) {
case 3:
url = `${CHANNEL_CENTER_URL}/m${shopInfo.memberId}`
url = `${CHANNEL_CENTER_URL}/${shopInfo.memberId}`
break
case 4:
url = `${ICHANNEL_CENTER_URL}/m${shopInfo.memberId}`
url = `${ICHANNEL_CENTER_URL}/${shopInfo.memberId}`
break
case 5:
url = `${CHANNEL_CENTER_URL}/m${shopInfo.memberId}/integral`
url = `${CHANNEL_CENTER_URL}/${shopInfo.memberId}/integral`
break
}
setResUrl(url)
......
......@@ -159,7 +159,7 @@ const ViewDriectChannel: React.FC<{}> = () => {
href={
channelDetails?.channelCommodity?.source === 1
?
`${CHANNEL_CENTER_URL}/m${channelDetails?.channelCommodity?.parentMemberId}/commodity/detail/${channelDetails?.channelCommodity?.commodity?.id}`
`${CHANNEL_CENTER_URL}/${channelDetails?.channelCommodity?.parentMemberId}/commodity/detail/${channelDetails?.channelCommodity?.commodity?.id}`
:
`/memberCenter/commodityAbility/commodity/products/detail?id=${channelDetails?.channelCommodity?.commodity?.id}`
}
......
......@@ -50,10 +50,10 @@ const Commodity: React.FC = () => {
switch (detail.commodity.priceType) {
case 1:
case 2:
el.href = `${mallUrl}/m${detail.channelMemberId}/commodity/detail/${detail.commodity.id}`;
el.href = `${mallUrl}/${detail.channelMemberId}/commodity/detail/${detail.commodity.id}`;
break
case 3:
el.href = `${mallUrl}/m${detail.channelMemberId}/integral/detail/${detail.commodity.id}`;
el.href = `${mallUrl}/${detail.channelMemberId}/integral/detail/${detail.commodity.id}`;
break
}
} else {
......
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