Files
xl-mobile/src/pages/taskDetails/components/TaskDetails.vue

92 lines
2.5 KiB
Vue
Raw Normal View History

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-05-12 19:45:27 +08:00
const {data} = defineProps({
data: {
type: Object,
default: null,
}
});
2025-03-28 15:34:00 +08:00
</script>
<template>
<!--任务详情-->
<view class="w-full">
<view class="title">
案例概览
</view>
2025-03-28 17:14:19 +08:00
<view class="block items-center">
2025-03-28 15:34:00 +08:00
<view class="block-title">任务案例:</view>
<view class="block-info w-full overflow-hidden">
2025-05-12 19:45:27 +08:00
<view class="text-[#165DFF] !flex items-center gap-[10rpx]" v-if="data.case_url">
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-05-12 19:45:27 +08:00
<x-image
v-if="data.case_images_arr.length > 0"
class="!size-[160rpx]"
:src="data.case_images_arr[0]"
:list="data.case_images_arr"
:cur="0" mode="aspectFill"
:draggable="false">
</x-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>
<view>
</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>