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

View File

@@ -13,7 +13,7 @@ const {data} = defineProps({
</script> </script>
<template> <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]"> <view class="!flex gap-[26rpx]">
<image class="!size-[88rpx] rounded-[50%] overflow-hidden" mode="aspectFill" :src="dy"></image> <image class="!size-[88rpx] rounded-[50%] overflow-hidden" mode="aspectFill" :src="dy"></image>
<view class="!h-[88rpx] !flex flex-col justify-between"> <view class="!h-[88rpx] !flex flex-col justify-between">

View File

@@ -57,12 +57,12 @@ const {data} = defineProps({
{{ data.comment_arr.intro }} {{ data.comment_arr.intro }}
</view> </view>
<view v-for="(v, index) in data.comment_arr.children"> <view v-for="(v, index) in data.comment_arr.children">
评论1: 评论{{ index + 2 }}:
<text v-if="data.comment_arr.pid!==0" class="text-[#86909C]"> <text v-if="data.comment_arr.pid!==0" class="text-[#86909C]">
<image class="!size-[20rpx]" src="/static/icons/msgback.png"></image> <image class="!size-[20rpx]" src="/static/icons/msgback.png"></image>
回复1: 回复1:
</text> </text>
{{ data.comment_arr.intro }} {{ v.intro }}
</view> </view>
</view> </view>
</view> </view>

View File

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