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