feat: 增加区分预览版的模块
This commit is contained in:
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user