feat: 增加区分预览版的模块

This commit is contained in:
2026-06-08 17:45:20 +08:00
parent fc1fd6a6d5
commit b4871d9cff
4 changed files with 58 additions and 32 deletions

View File

@@ -74,16 +74,16 @@
"
>
<AnswerComponent
v-if="isLongTextCard(item.componentName)"
v-if="isLongTextCard(item.componentName) && !isLongTextCardPreView(item.componentName)"
:content="item.componentMsg || ''"
:longTextData="item.longTextData"
:finish="item.finish"
/>
<!-- <LongTextGuideCardPreview
v-if="isLongTextCard(item.componentName) && (item.componentName !== CompName.longTextCard)"
<LongTextGuideCardPreview
v-if="isLongTextCardPreView(item.componentName)"
:componentName="item.componentName"
/> -->
/>
<QuickBookingComponent
v-if="
@@ -972,7 +972,22 @@ const isLongTextCard = (componentName) => {
componentName === CompName.longTextCardRoute ||
componentName === CompName.longTextCardScenicSpot ||
componentName === CompName.longTextCardFullDoc ||
componentName === CompName.longTextCardStrategy
componentName === CompName.longTextCardStrategy ||
componentName === CompName.longTextCardSnapPreview ||
componentName === CompName.longTextCardRoutePreview ||
componentName === CompName.longTextCardScenicSpotPreview ||
componentName === CompName.longTextCardFullDocPreview ||
componentName === CompName.longTextCardStrategyPreview
);
};
const isLongTextCardPreView = (componentName) => {
return (
componentName === CompName.longTextCardSnapPreview ||
componentName === CompName.longTextCardRoutePreview ||
componentName === CompName.longTextCardScenicSpotPreview ||
componentName === CompName.longTextCardFullDocPreview ||
componentName === CompName.longTextCardStrategyPreview
);
};