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> </view>
</template> </template>
<template v-else> <template v-else>
<image class="!size-full" :src="src" mode="aspectFit"></image> <template v-if="!src.endsWith('.mp4')">
<image v-if="sy" class="!size-full !absolute left-0 top-0" :src="SY_ICON" <image class="!size-full" :src="src" mode="aspectFit"></image>
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> </template>

View File

@@ -52,8 +52,8 @@ onLoad((options) => {
<view class="title"> <view class="title">
话题 话题
<view class="!ml-auto"> <view class="!ml-auto">
<x-image :src="detail.task_content[current].ts_images_arr[0]" <x-image :src="detail.video"
:list="detail.task_content[current].ts_images_arr"> :list="[detail.video]">
<x-link show-description>查看引导</x-link> <x-link show-description>查看引导</x-link>
</x-image> </x-image>
</view> </view>
@@ -92,7 +92,21 @@ onLoad((options) => {
</view> </view>
<view v-for="(v, index) in detail.children?.material[current]?.comment" :key="v.id" class="block"> <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"> <view class="info">
{{ v.intro }} {{ v.intro }}