This commit is contained in:
2025-06-12 20:56:58 +08:00
parent 2915645a92
commit 9cc71494f0
4 changed files with 17 additions and 11 deletions

View File

@@ -115,7 +115,8 @@ const success = async () => {
@click="v.is_use !== 0 && po.status === 0 ? selected = v.id : null"
v-for="(v, index) in vo"
class="!flex items-center py-[22rpx]">
<radio :checked="selected === v.id" :disabled="v.is_use === 0 || po.status>0"></radio>
<radio :checked="selected === v.id"
:disabled="v.is_use === 0 || po.status>0"></radio>
<image class="!size-[80rpx] rounded-[50%] overflow-hidden !ml-[34rpx]"
:src="PlatformENUM[v.platform_id]"></image>
<view class="!flex flex-col !ml-[16rpx]">

View File

@@ -13,7 +13,7 @@ const {data} = defineProps({
</script>
<template>
<view class="rounded-[8rpx] bg-[#fff] !p-[24rpx]" @click="toPage(`/pages/taskDetails/index?id=${data.id}`)">
<view class="rounded-[8rpx] bg-[#fff] !p-[24rpx]" @click="toPage(`/pages/taskDetails/index?id=${data.id}&home=1`)">
<view class="!flex gap-[26rpx]">
<image class="!size-[88rpx] rounded-[50%] overflow-hidden" mode="aspectFill" :src="dy"></image>
<view class="!h-[88rpx] !flex flex-col justify-between">

View File

@@ -57,12 +57,12 @@ const {data} = defineProps({
{{ data.comment_arr.intro }}
</view>
<view v-for="(v, index) in data.comment_arr.children">
评论1:
评论{{ index + 2 }}:
<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 }}
{{ v.intro }}
</view>
</view>
</view>

View File

@@ -23,6 +23,7 @@ const ReviewCommunication = defineAsyncComponent(() => import('./components/Revi
// #endif
const details = ref(null);
const home = ref(false);
const mainDetailWidth = ref(0);
const currentTabs = ref(0);
const tabs = reactive([
@@ -50,7 +51,8 @@ const getData = async (id) => {
}
onLoad((options) => {
const {id} = options;
const {id, home: _home} = options;
home.value = _home === '1';
getData(id);
});
@@ -80,20 +82,23 @@ onMounted(() => {
<view class="flex-grow">
<view class="goods-title !w-full !flex items-center justify-between">
{{ details.goods_name }}
<view :class="['goods-state']" v-if="details.is_use !== 0">{{ details.status_text }}</view>
<view :class="['goods-state']" v-if="!home && details.is_use !== 0">{{
details.status_text
}}
</view>
<view v-if="details.is_use === 0" class="goods-bh">
</view>
<view v-if="home || details.is_use === 0" class="goods-bh">
{{ dayjs(details.end_time).format('YYYY-MM-DD HH:mm') }} 前可领取
</view>
<view v-else class="goods-bh">
任务编号{{ details.is_use === 0 ? details.code : details.children.uid }}
任务编号{{ !home && details.is_use === 0 ? details.code : details.children.uid }}
<x-link>复制</x-link>
</view>
</view>
</view>
<view
v-if="details.is_use !== 0"
v-if="!home && details.is_use !== 0"
class="bg-[#F7F8FA] px-[28rpx] py-[16rpx] rounded-[8rpx] !flex justify-around"
style="font-size: 24rpx">
<view>发布账号</view>
@@ -154,7 +159,7 @@ onMounted(() => {
<view id="mainDetailBox" class="rounded-[16rpx] bg-[#fff] main-details overflow-hidden">
<tui-tabs
v-if="mainDetailWidth && details.is_use !== 0"
v-if="mainDetailWidth && (!home && details.is_use !== 0)"
:tabs="tabs"
:currentTab="currentTabs"
:width="mainDetailWidth"
@@ -349,7 +354,7 @@ onMounted(() => {
</view>
</view>
<accept-assignment-modal v-if="details.is_use === 0" :details="details" @success="getData">
<accept-assignment-modal v-if="home || details.is_use === 0" :details="details" @success="getData">
<view
class="bg-[var(--primary-color)] rounded-[8rpx] py-[26rpx] text-[#fff] !flex justify-center items-center">
接受任务