Commit f4bb8988 authored by GuanHua's avatar GuanHua

fix:商品详情相同品类商品推荐显示

parent 0a2eaffd
...@@ -57,7 +57,7 @@ const integralPayWay = [ ...@@ -57,7 +57,7 @@ const integralPayWay = [
const CommodityDetail = (props) => { const CommodityDetail = (props) => {
const { query: { id } } = props.location const { query: { id } } = props.location
const { shopInfo = {}, layoutType, memberId, shopUrlParam } = props const { shopInfo = {}, shopId, layoutType, memberId, shopUrlParam } = props
const OrderStore = useLocalStore(() => store.OrderStore) const OrderStore = useLocalStore(() => store.OrderStore)
const { updateOrderInfo } = OrderStore const { updateOrderInfo } = OrderStore
const [addSuccessVisible, setAddSuccessVisible] = useState<boolean>(false) const [addSuccessVisible, setAddSuccessVisible] = useState<boolean>(false)
...@@ -98,6 +98,7 @@ const CommodityDetail = (props) => { ...@@ -98,6 +98,7 @@ const CommodityDetail = (props) => {
case LAYOUT_TYPE.shop: case LAYOUT_TYPE.shop:
switch (priceType) { switch (priceType) {
case COMMODITY_TYPE.prompt: case COMMODITY_TYPE.prompt:
param.storeId = shopId
getListFn = PublicApi.postSearchShopStoreGetCommodityList getListFn = PublicApi.postSearchShopStoreGetCommodityList
break break
case COMMODITY_TYPE.inquiry: case COMMODITY_TYPE.inquiry:
......
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