feat: 增加攻略组件
This commit is contained in:
@@ -968,7 +968,8 @@ const isLongTextCard = (componentName) => {
|
||||
componentName === CompName.longTextCardSnap ||
|
||||
componentName === CompName.longTextCardRoute ||
|
||||
componentName === CompName.longTextCardScenicSpot ||
|
||||
componentName === CompName.longTextCardFullDoc
|
||||
componentName === CompName.longTextCardFullDoc ||
|
||||
componentName === CompName.longTextCardStrategy
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const DETAIL_ROUTE_BY_TYPE = {
|
||||
longTextCard: "/pages/ChatModule/LongTextGuideCardPreview/guide",
|
||||
longTextCardStrategy: "/pages/ChatModule/LongTextGuideCardPreview/guide",
|
||||
longTextCardScenicSpot: "/pages/ChatModule/LongTextGuideCardPreview/poi",
|
||||
longTextCardRoute: "/pages/ChatModule/LongTextGuideCardPreview/route",
|
||||
longTextCardSnap: "/pages/ChatModule/LongTextGuideCardPreview/photo",
|
||||
|
||||
@@ -30,12 +30,12 @@ import { getLongTextGuideDetailRoute } from "./detailRoutes.mjs";
|
||||
const props = defineProps({
|
||||
componentName: {
|
||||
type: String,
|
||||
default: 'longTextCard',
|
||||
default: 'longTextCardStrategy',
|
||||
},
|
||||
});
|
||||
|
||||
const longTextCard = {
|
||||
type: 'longTextCard',
|
||||
const longTextCardStrategy = {
|
||||
type: 'longTextCardStrategy',
|
||||
badge: "漂流攻略",
|
||||
badgeTone: "amber",
|
||||
title: "下水之前,先听小七唠两句",
|
||||
@@ -82,8 +82,8 @@ const longTextCardFullDoc = {
|
||||
|
||||
const item = computed(() => {
|
||||
switch (props.componentName) {
|
||||
case 'longTextCard':
|
||||
return longTextCard;
|
||||
case 'longTextCardStrategy':
|
||||
return longTextCardStrategy;
|
||||
case 'longTextCardSnap':
|
||||
return longTextCardSnap;
|
||||
case 'longTextCardRoute':
|
||||
@@ -93,7 +93,7 @@ const item = computed(() => {
|
||||
case 'longTextCardFullDoc':
|
||||
return longTextCardFullDoc;
|
||||
default:
|
||||
return longTextCard;
|
||||
return longTextCardStrategy;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user