feat:改回去

This commit is contained in:
2026-06-04 09:08:05 +08:00
parent c3cf6f2f12
commit cf0bfd1fae

View File

@@ -1,60 +1,38 @@
<template> <template>
<view v-if="shouldRenderField" class="parsed-value"> <view v-if="shouldRenderField" class="parsed-value">
<template v-for="entry in renderFieldEntries" :key="entry.key"> <template v-for="entry in renderFieldEntries" :key="entry.key">
<template v-if="entry.type === 'text'"> <view v-if="entry.type === 'text'" class="content-body-text">
<image v-if="entry.key === LONG_TEXT_KEYS.contentImage"
class="content-body-image"
:src="entry.value"
mode="widthFix"
@click="handlePreviewClick(entry.value)"
/>
<view v-else class="content-body-text">
{{ entry.value }} {{ entry.value }}
</view> </view>
</template>
<view v-else-if="entry.type === 'image'" class="content-body-image-card"> <view v-else-if="entry.type === 'image'" class="content-body-image-card">
<image <image class="content-body-image" :src="entry.value.image_id" mode="widthFix"
class="content-body-image" @click="handlePreviewClick(entry.value.image_id)" />
:src="entry.value.image_id"
mode="widthFix"
@click="handlePreviewClick(entry.value.image_id)"
/>
<view v-if="entry.value.caption" class="content-body-image-caption"> <view v-if="entry.value.caption" class="content-body-image-caption">
{{ entry.value.caption }} {{ entry.value.caption }}
</view> </view>
</view> </view>
<template v-else-if="entry.type === 'list'">
<template v-if="entry.key === LONG_TEXT_KEYS.questionSuggest">
<view class="detail-action-label">继续追问</view>
<view class="detail-faq-wrap">
<view
v-for="question in entry.value"
:key="question"
class="detail-faq-chip"
@click="sendReply(question)"
>
{{ question }}
</view>
</view>
</template>
<view v-else <view v-else-if="entry.type === 'list'" class="content-body-list-card" :style="contentBodyListCardStyle">
class="content-body-list-card" <view v-for="(item, index) in entry.value" :key="index" class="content-body-list-item">
:style="contentBodyListCardStyle"
>
<view v-for="(item, index) in entry.value"
:key="index"
class="content-body-list-item"
>
<view class="content-body-list-text" :style="contentBodyListTextStyle"> <view class="content-body-list-text" :style="contentBodyListTextStyle">
{{ formatLeafValue(item) }} {{ formatLeafValue(item) }}
</view> </view>
</view> </view>
</view> </view>
<!-- <template v-if="entry.key === LONG_TEXT_KEYS.questionSuggest">
<view class="detail-action-label">继续追问</view>
<view class="detail-faq-wrap">
<view v-for="question in entry.value" :key="question" class="detail-faq-chip" @click="sendReply(question)">
{{ question }}
</view>
</view>
</template> </template>
<template v-else-if="entry.type === 'object'"> <image v-if="entry.key === LONG_TEXT_KEYS.contentImage" class="content-body-image" :src="entry.value"
mode="widthFix" @click="handlePreviewClick(entry.value)" />
<template v-if="entry.key === LONG_TEXT_KEYS.spotLocate"> <template v-if="entry.key === LONG_TEXT_KEYS.spotLocate">
<view class="detail-action-zone"> <view class="detail-action-zone">
<view class="detail-action-label">查看景点详情</view> <view class="detail-action-label">查看景点详情</view>
@@ -67,10 +45,9 @@
</view> </view>
</view> </view>
</view> </view>
</template> </template> -->
</template> </template>
</template>
</view> </view>
</template> </template>