Commit 5fb7da00 authored by GuanHua's avatar GuanHua

Merge branch 'dev' into test

parents 87cd4ea1 e64bef61
...@@ -99,7 +99,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => { ...@@ -99,7 +99,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
{ {
commodityList.map((item, index) => ( commodityList.map((item, index) => (
<div key={`commodity_list_item_column_${index}`} className={cx(styles.commodity_list_item, styles.column)}> <div key={`commodity_list_item_column_${index}`} className={cx(styles.commodity_list_item, styles.column)}>
<a href={`/${layoutType === LAYOUT_TYPE.channel ? 'channelmall' : 'shop'}/commodity/detail?id=${item.id}&type=${item.priceType}&shopId=${btoa(JSON.stringify({ shopId: item.storeId, memberId: item.memberId }))}`} target="_blank"> <a href={getCommodityDetailLink(item)} target="_blank">
<div className={styles.goods_img}> <div className={styles.goods_img}>
{ {
item.mainPic ? <img src={item.mainPic} /> : <Skeleton.Image style={{ width: 120, height: 120 }} /> item.mainPic ? <img src={item.mainPic} /> : <Skeleton.Image style={{ width: 120, height: 120 }} />
......
...@@ -326,13 +326,13 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -326,13 +326,13 @@ const Order: React.FC<OrderPropsType> = (props) => {
const linkToUrl = (path: string) => { const linkToUrl = (path: string) => {
switch(layoutType) { switch(layoutType) {
case LAYOUT_TYPE.channel: case LAYOUT_TYPE.channel:
history.replace(`${GlobalConfig.channelRootRoute}${path}?channelId=${shopUrlParam}`) history.replace(`${GlobalConfig.channelRootRoute}${path}&channelId=${shopUrlParam}`)
break break
case LAYOUT_TYPE.ichannel: case LAYOUT_TYPE.ichannel:
history.replace(`${GlobalConfig.ichannelRootRoute}${path}?channelId=${shopUrlParam}`) history.replace(`${GlobalConfig.ichannelRootRoute}${path}&channelId=${shopUrlParam}`)
break break
default: default:
history.replace(`${path}?channelId=${shopUrlParam}`) history.replace(`${path}`)
break break
} }
......
...@@ -89,7 +89,6 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => { ...@@ -89,7 +89,6 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => {
message.destroy() message.destroy()
message.success("支付成功") message.success("支付成功")
linkToUrl(`/pay/result?orderId=${orderId}`, layoutType, shopUrlParam ) linkToUrl(`/pay/result?orderId=${orderId}`, layoutType, shopUrlParam )
history.replace(`/pay/result?orderId=${orderId}`)
} else { } else {
setConfirmLoading(false) setConfirmLoading(false)
message.destroy() message.destroy()
......
...@@ -5,13 +5,13 @@ import { LAYOUT_TYPE } from '@/constants' ...@@ -5,13 +5,13 @@ import { LAYOUT_TYPE } from '@/constants'
export const linkToUrl = (path: string, layoutType, shopUrlParam) => { export const linkToUrl = (path: string, layoutType, shopUrlParam) => {
switch (layoutType) { switch (layoutType) {
case LAYOUT_TYPE.channel: case LAYOUT_TYPE.channel:
history.replace(`${GlobalConfig.channelRootRoute}${path}?channelId=${shopUrlParam}`) history.replace(`${GlobalConfig.channelRootRoute}${path}&channelId=${shopUrlParam}`)
break break
case LAYOUT_TYPE.ichannel: case LAYOUT_TYPE.ichannel:
history.replace(`${GlobalConfig.ichannelRootRoute}${path}?channelId=${shopUrlParam}`) history.replace(`${GlobalConfig.ichannelRootRoute}${path}&channelId=${shopUrlParam}`)
break break
default: default:
history.replace(`${path}?channelId=${shopUrlParam}`) history.replace(`${path}`)
break break
} }
......
...@@ -710,7 +710,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -710,7 +710,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
</div> </div>
<div className={cx(styles.order_list_item_item, styles.goods_info)}> <div className={cx(styles.order_list_item_item, styles.goods_info)}>
<div className={styles.order_list_item_item_imgbox}> <div className={styles.order_list_item_item_imgbox}>
<ImageBox width={80} height={80} imgUrl={childItem.commodityUnitPrice.commodityPic[0]} direction="column" /> {
childItem.commodityUnitPrice.commodityPic && <ImageBox width={80} height={80} imgUrl={childItem.commodityUnitPrice.commodityPic[0]} direction="column" />
}
</div> </div>
<div> <div>
<div className={styles.order_list_item_item_name}> <div className={styles.order_list_item_item_name}>
......
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