Commit b5139e88 authored by GuanHua's avatar GuanHua

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

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