This commit is contained in:
2025-07-02 18:12:58 +08:00
parent 369d123a9f
commit 14f64944a5
2 changed files with 27 additions and 6 deletions

View File

@@ -79,9 +79,16 @@ defineExpose({
</view>
</template>
<template v-else>
<image class="!size-full" :src="src" mode="aspectFit"></image>
<image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON"
mode="aspectFit"></image>
<template v-if="!src.endsWith('.mp4')">
<image class="!size-full" :src="src" mode="aspectFit"></image>
<image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON"
mode="aspectFit"></image>
</template>
<template>
<view class="!size-full !flex items-center" @click.stop>
<video class="!w-full" :src="src" :controls="true"></video>
</view>
</template>
</template>

View File

@@ -52,8 +52,8 @@ onLoad((options) => {
<view class="title">
话题
<view class="!ml-auto">
<x-image :src="detail.task_content[current].ts_images_arr[0]"
:list="detail.task_content[current].ts_images_arr">
<x-image :src="detail.video"
:list="[detail.video]">
<x-link show-description>查看引导</x-link>
</x-image>
</view>
@@ -92,7 +92,21 @@ onLoad((options) => {
</view>
<view v-for="(v, index) in detail.children?.material[current]?.comment" :key="v.id" class="block">
<view class="title">评论{{ index + 1 }}</view>
<view class="title">
<text>评论{{ index + 1 }}</text>
<view class="text-[var(--primary-color)] !ml-3" v-if="v.pid !== 0">
<image class="!size-[20rpx]" src="/static/icons/msgback.png"></image>
回复评论{{
detail.children?.material[current]?.comment.findIndex(k => k.pid === v.pid)
}}
</view>
<view class="!ml-auto" v-if="v.pid !== 0">
<x-image :src="detail.task_content[current].ts_images_arr[0]"
:list="detail.task_content[current].ts_images_arr">
<x-link show-description>查看引导</x-link>
</x-image>
</view>
</view>
<view class="info">
{{ v.intro }}