Commit c5b0e03f authored by Bill's avatar Bill

feat: 添加自营商城品类导航页跳转

parent 811e1c0e
......@@ -79,6 +79,14 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
}
}
const handleCategoryJump = () => {
if (detailInfo?.environment === 1) {
message.info("暂不支持该类型模板装修")
return
}
window.location.href = `memberCenter/channelAbility/template/categoryNavigation?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}&isSelf=1`
}
return (
<DetailPage
title="查看模板"
......@@ -120,6 +128,10 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<LayoutOutlined />
<label>商城装修</label>
</div>
<div className={cx(styles.btn, styles.fit)} onClick={() => handleCategoryJump()}>
<LayoutOutlined />
<label>品类导航页装修</label>
</div>
<div className={cx(styles.btn, detailInfo?.use === 1 ? styles.use : '')} onClick={() => detailInfo?.use !== 1 ? setUseModalVisible(true) : {}}>
<PushpinOutlined />
<label>{detailInfo?.use === 1 ? '使用中' : '使用'}</label>
......
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