feat:改回去
This commit is contained in:
@@ -1,75 +1,52 @@
|
||||
<template>
|
||||
<view v-if="shouldRenderField" class="parsed-value">
|
||||
<template v-for="entry in renderFieldEntries" :key="entry.key">
|
||||
<template v-if="entry.type === '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 }}
|
||||
</view>
|
||||
</template>
|
||||
<view v-if="entry.type === 'text'" class="content-body-text">
|
||||
{{ entry.value }}
|
||||
</view>
|
||||
|
||||
<view v-else-if="entry.type === 'image'" class="content-body-image-card">
|
||||
<image
|
||||
class="content-body-image"
|
||||
:src="entry.value.image_id"
|
||||
mode="widthFix"
|
||||
@click="handlePreviewClick(entry.value.image_id)"
|
||||
/>
|
||||
<image class="content-body-image" :src="entry.value.image_id" mode="widthFix"
|
||||
@click="handlePreviewClick(entry.value.image_id)" />
|
||||
<view v-if="entry.value.caption" class="content-body-image-caption">
|
||||
{{ entry.value.caption }}
|
||||
</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
|
||||
class="content-body-list-card"
|
||||
: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">
|
||||
{{ formatLeafValue(item) }}
|
||||
</view>
|
||||
<view v-else-if="entry.type === 'list'" class="content-body-list-card" :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">
|
||||
{{ formatLeafValue(item) }}
|
||||
</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 v-else-if="entry.type === 'object'">
|
||||
<template v-if="entry.key === LONG_TEXT_KEYS.spotLocate">
|
||||
<view class="detail-action-zone">
|
||||
<view class="detail-action-label">查看景点详情</view>
|
||||
<view class="detail-action-card is-raised">
|
||||
<view v-if="poiTag" class="poi-mini-tag">{{ entry.value.sopt_tag }}</view>
|
||||
<view class="poi-mini-body">
|
||||
<view class="poi-mini-title">{{ entry.value.sopt_name }}</view>
|
||||
<view class="poi-mini-desc">{{ entry.value.spot_description }}</view>
|
||||
<button class="detail-solid-button" @click.stop="openMap(entry.value)">带我去</button>
|
||||
</view>
|
||||
<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">
|
||||
<view class="detail-action-zone">
|
||||
<view class="detail-action-label">查看景点详情</view>
|
||||
<view class="detail-action-card is-raised">
|
||||
<view v-if="poiTag" class="poi-mini-tag">{{ entry.value.sopt_tag }}</view>
|
||||
<view class="poi-mini-body">
|
||||
<view class="poi-mini-title">{{ entry.value.sopt_name }}</view>
|
||||
<view class="poi-mini-desc">{{ entry.value.spot_description }}</view>
|
||||
<button class="detail-solid-button" @click.stop="openMap(entry.value)">带我去</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
</view>
|
||||
</template> -->
|
||||
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user