feat: 增加区分预览版的模块
This commit is contained in:
@@ -30,12 +30,12 @@ import { getLongTextGuideDetailRoute } from "./detailRoutes.mjs";
|
||||
const props = defineProps({
|
||||
componentName: {
|
||||
type: String,
|
||||
default: 'longTextCardStrategy',
|
||||
default: 'longTextCardStrategyPreview',
|
||||
},
|
||||
});
|
||||
|
||||
const longTextCardStrategy = {
|
||||
type: 'longTextCardStrategy',
|
||||
const longTextCardStrategyPreview = {
|
||||
type: 'longTextCardStrategyPreview',
|
||||
badge: "漂流攻略",
|
||||
badgeTone: "amber",
|
||||
title: "下水之前,先听小七唠两句",
|
||||
@@ -43,8 +43,8 @@ const longTextCardStrategy = {
|
||||
footer: "点击查看完整攻略",
|
||||
}
|
||||
|
||||
const longTextCardScenicSpot = {
|
||||
type: 'longTextCardScenicSpot',
|
||||
const longTextCardScenicSpotPreview = {
|
||||
type: 'longTextCardScenicSpotPreview',
|
||||
badge: "景点故事",
|
||||
badgeTone: "green",
|
||||
title: "小七孔古桥 · 走了三百年的石拱",
|
||||
@@ -52,8 +52,8 @@ const longTextCardScenicSpot = {
|
||||
footer: "点击查看完整介绍",
|
||||
}
|
||||
|
||||
const longTextCardRoute = {
|
||||
type: 'longTextCardRoute',
|
||||
const longTextCardRoutePreview = {
|
||||
type: 'longTextCardRoutePreview',
|
||||
badge: "路线指引",
|
||||
badgeTone: "violet",
|
||||
title: "漂完卧龙潭,顺道去鸳鸯湖",
|
||||
@@ -61,8 +61,8 @@ const longTextCardRoute = {
|
||||
footer: "点击查看完整路线",
|
||||
}
|
||||
|
||||
const longTextCardSnap = {
|
||||
type: 'longTextCardSnap',
|
||||
const longTextCardSnapPreview = {
|
||||
type: 'longTextCardSnapPreview',
|
||||
badge: "拍照攻略",
|
||||
badgeTone: "blue",
|
||||
title: "鸳鸯湖玻璃船,这样拍才不亏",
|
||||
@@ -70,8 +70,8 @@ const longTextCardSnap = {
|
||||
footer: "点击查看完整攻略",
|
||||
}
|
||||
|
||||
const longTextCardFullDoc = {
|
||||
type: 'longTextCardFullDoc',
|
||||
const longTextCardFullDocPreview = {
|
||||
type: 'longTextCardFullDocPreview',
|
||||
badge: "初游攻略",
|
||||
badgeTone: "amber",
|
||||
title: "第一次来小七孔,照着这条线走就对了",
|
||||
@@ -82,18 +82,18 @@ const longTextCardFullDoc = {
|
||||
|
||||
const item = computed(() => {
|
||||
switch (props.componentName) {
|
||||
case 'longTextCardStrategy':
|
||||
return longTextCardStrategy;
|
||||
case 'longTextCardSnap':
|
||||
return longTextCardSnap;
|
||||
case 'longTextCardRoute':
|
||||
return longTextCardRoute;
|
||||
case 'longTextCardScenicSpot':
|
||||
return longTextCardScenicSpot;
|
||||
case 'longTextCardFullDoc':
|
||||
return longTextCardFullDoc;
|
||||
case 'longTextCardStrategyPreview':
|
||||
return longTextCardStrategyPreview;
|
||||
case 'longTextCardSnapPreview':
|
||||
return longTextCardSnapPreview;
|
||||
case 'longTextCardRoutePreview':
|
||||
return longTextCardRoutePreview;
|
||||
case 'longTextCardScenicSpotPreview':
|
||||
return longTextCardScenicSpotPreview;
|
||||
case 'longTextCardFullDocPreview':
|
||||
return longTextCardFullDocPreview;
|
||||
default:
|
||||
return longTextCardStrategy;
|
||||
return longTextCardStrategyPreview;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user