Commit 94591427 authored by XieZhiXiong's avatar XieZhiXiong

chore: 平台优惠券跳转商品列表

parent ed78f259
......@@ -114,7 +114,12 @@ const CouponCard: React.FC<CouponCardProps> = (props: CouponCardProps) => {
message.warning('没有商城地址信息,无法进行跳转')
return;
}
const url = `${REQUEST_HEADER}${shop.url}.${TOP_DOMAIN}/makeUpList/${data.couponId}?belongType=${data.belongType}`;
let url = `${REQUEST_HEADER}${shop.url}.${TOP_DOMAIN}/makeUpList/${data.couponId}?belongType=${data.belongType}`;
if (data.belongType === 1) {
url = `${REQUEST_HEADER}${shop.url}.${TOP_DOMAIN}/commodity`;
}
window.open(url);
};
......
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