2025-03-28 15:34:00 +08:00
|
|
|
<script setup>
|
|
|
|
|
import fmt from "../../../static/images/fmt.png";
|
|
|
|
|
import linkIcon from '../../../static/icons/link.png';
|
2025-03-28 16:04:56 +08:00
|
|
|
import XImage from "../../../components/XImage.vue";
|
2025-06-20 21:21:58 +08:00
|
|
|
import XSquareCarouselImage from "../../../components/XSquareCarouselImage.vue";
|
2025-06-21 15:38:38 +08:00
|
|
|
import HF_ICON from "../../../static/icons/icon-wrapper.png";
|
2025-05-12 19:45:27 +08:00
|
|
|
|
2025-06-20 21:21:58 +08:00
|
|
|
const {data, home} = defineProps({
|
2025-05-12 19:45:27 +08:00
|
|
|
data: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: null,
|
2025-06-20 21:21:58 +08:00
|
|
|
},
|
|
|
|
|
home: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
2025-05-12 19:45:27 +08:00
|
|
|
}
|
|
|
|
|
});
|
2025-03-28 15:34:00 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<!--任务详情-->
|
|
|
|
|
<view class="w-full">
|
|
|
|
|
<view class="title">
|
|
|
|
|
案例概览
|
|
|
|
|
</view>
|
2025-05-19 19:03:53 +08:00
|
|
|
<view class="block items-center" v-if="data.case_url">
|
2025-03-28 15:34:00 +08:00
|
|
|
<view class="block-title">任务案例:</view>
|
|
|
|
|
<view class="block-info w-full overflow-hidden">
|
2025-05-19 19:03:53 +08:00
|
|
|
<view class="text-[#165DFF] !flex items-center gap-[10rpx]">
|
2025-03-28 15:34:00 +08:00
|
|
|
<image class="!size-[24rpx] flex-shrink-0" :src="linkIcon"></image>
|
|
|
|
|
<text class="ellipsis-1 flex-grow">
|
2025-05-12 19:45:27 +08:00
|
|
|
{{ data.case_url }}
|
2025-03-28 15:34:00 +08:00
|
|
|
</text>
|
2025-03-28 16:04:56 +08:00
|
|
|
<view class="nowrap flex-shrink !py-[7rpx] !px-[32rpx] rounded-full bg-[#E8F3FF]"
|
|
|
|
|
style="font-size: 24rpx">
|
2025-03-28 15:34:00 +08:00
|
|
|
复制
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="block">
|
2025-03-28 17:14:19 +08:00
|
|
|
<view class="block-title">素材案例:</view>
|
2025-03-28 15:34:00 +08:00
|
|
|
<view class="block-info !grid grid-cols-3 gap-[20rpx]">
|
2025-06-20 21:21:58 +08:00
|
|
|
<x-square-carousel-image
|
2025-05-12 19:45:27 +08:00
|
|
|
v-if="data.case_images_arr.length > 0"
|
|
|
|
|
:list="data.case_images_arr"
|
2025-06-20 21:21:58 +08:00
|
|
|
:show-s-y="home">
|
|
|
|
|
</x-square-carousel-image>
|
2025-03-28 15:34:00 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-03-28 17:14:19 +08:00
|
|
|
<view class="block">
|
|
|
|
|
<view class="block-title">评论区案例:</view>
|
2025-05-19 19:03:53 +08:00
|
|
|
<view class="test-24r text-[#4E5969]">
|
|
|
|
|
<view v-if="data.comment_arr">
|
|
|
|
|
评论1:
|
|
|
|
|
<text v-if="data.comment_arr.pid!==0" class="text-[#86909C]">
|
|
|
|
|
<image class="!size-[20rpx]" src="/static/icons/msgback.png"></image>
|
|
|
|
|
回复1:
|
|
|
|
|
</text>
|
|
|
|
|
{{ data.comment_arr.intro }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-for="(v, index) in data.comment_arr.children">
|
2025-06-12 20:56:58 +08:00
|
|
|
评论{{ index + 2 }}:
|
2025-06-21 15:38:38 +08:00
|
|
|
<text class="text-[#86909C]">
|
2025-05-19 19:03:53 +08:00
|
|
|
<image class="!size-[20rpx]" src="/static/icons/msgback.png"></image>
|
|
|
|
|
回复1:
|
|
|
|
|
</text>
|
2025-06-12 20:56:58 +08:00
|
|
|
{{ v.intro }}
|
2025-05-19 19:03:53 +08:00
|
|
|
</view>
|
2025-03-28 17:14:19 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
2025-03-28 15:34:00 +08:00
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.title {
|
|
|
|
|
color: rgb(29, 33, 41);
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
line-height: 140%;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
text-align: left;
|
|
|
|
|
margin-bottom: 32rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.block {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 20rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
|
|
|
|
|
.block-title {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
color: rgb(134, 144, 156);
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
line-height: 140%;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
text-align: left;
|
|
|
|
|
width: 130rpx;
|
|
|
|
|
}
|
2025-03-28 17:14:19 +08:00
|
|
|
|
|
|
|
|
.block-info {
|
|
|
|
|
color: rgb(78, 89, 105);
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
line-height: 140%;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
}
|
2025-03-28 15:34:00 +08:00
|
|
|
}
|
|
|
|
|
</style>
|