update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
<view v-if="details.is_use === 0" class="goods-bh">
|
||||
<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">
|
||||
接受任务
|
||||
|
||||
Reference in New Issue
Block a user