Commit eab065db authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 8617c758 17974c10
...@@ -179,7 +179,7 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => { ...@@ -179,7 +179,7 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
}; };
const res = await PublicApi.getManageMemberInformationListAdorn(param); const res = await PublicApi.getManageMemberInformationListAdorn(param);
message.destroy() message.destroy()
if (res.code === 1000 && res.data.data) { if (res.code === 1000 && res.data.data && res.data.data.length > 0) {
return res.data.data[0].title; return res.data.data[0].title;
} }
return ''; return '';
......
...@@ -61,7 +61,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => { ...@@ -61,7 +61,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
if(detailInfo?.environment === 1) { if(detailInfo?.environment === 1) {
// 自营商城装修 // 自营商城装修
window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}` window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}`
} else if(detailInfo?.environment === 4) { } else if(detailInfo?.environment === 4 || detailInfo?.environment === 3 || detailInfo?.environment === 2) {
// 自营商城装修 // 自营商城装修
window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/mobile/edit?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}` window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/mobile/edit?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}`
} else { } else {
...@@ -72,7 +72,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => { ...@@ -72,7 +72,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
const handleLinkPreview = () => { const handleLinkPreview = () => {
if(detailInfo?.environment === 1) { if(detailInfo?.environment === 1) {
window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/preview?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}` window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/preview?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}`
} else if(detailInfo?.environment === 4) { } else if(detailInfo?.environment === 4 || detailInfo?.environment === 3 || detailInfo?.environment === 2) {
window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/mobile/preview?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}` window.location.href = `/memberCenter/ownMallAbility/ownMallManager/template/mobile/preview?id=${detailInfo.id}&template=${detailInfo.fileName}&shopId=${detailInfo.shopId}`
} else { } else {
message.info("暂不支持该类型模板预览") message.info("暂不支持该类型模板预览")
......
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