|
@@ -17,7 +17,6 @@ import {
|
|
|
getStudyTourSignups,
|
|
|
studyTourSignup,
|
|
|
} from '../../../../core/libs/requests'
|
|
|
-import { bell, map, rightFill } from '@designer-hub/assets/src/assets/svgs'
|
|
|
import dayjs from 'dayjs'
|
|
|
import BottomAppBar from '@/components/bottom-app-bar.vue'
|
|
|
import { useRouter } from '../../../../core/utils/router'
|
|
@@ -44,7 +43,7 @@ import ActivityAsOf from '../../components/activity-as-of.vue'
|
|
|
import images from '@designer-hub/assets/src/libs/assets/images'
|
|
|
import { usePermissions } from '../../../../composables/permissions'
|
|
|
import { useAnalysis } from '@/composables/analysis'
|
|
|
-import mapGray from "@designer-hub/assets/src/libs/assets/mapGray";
|
|
|
+import mapGray from '@designer-hub/assets/src/libs/assets/mapGray'
|
|
|
const themeVars = ref<ConfigProviderThemeVars>({
|
|
|
tableBorderColor: 'white',
|
|
|
tabsNavLineBgColor: 'white',
|
|
@@ -96,15 +95,6 @@ const places = computed(() => {
|
|
|
}
|
|
|
return '不限制'
|
|
|
})
|
|
|
-const remainedCount = computed(() => {
|
|
|
- if (isActivity.value && data.value?.activityAllowType === '1') {
|
|
|
- return data.value?.activityAllowCount - signups.value.total
|
|
|
- }
|
|
|
- if (isStudyTour.value && data.value?.studyAllowType === '1') {
|
|
|
- return data.value?.studyAllowCount - signups.value.total
|
|
|
- }
|
|
|
- return '不限制'
|
|
|
-})
|
|
|
const infos = computed(() => [
|
|
|
{
|
|
|
icon: clock,
|
|
@@ -178,11 +168,11 @@ onLoad(async (query: { id: string; type: 'activity' | 'studyTour' }) => {
|
|
|
type.value = query.type
|
|
|
if (type.value === 'activity') {
|
|
|
request.value = () => getActivity(id.value)
|
|
|
- signUpsReq.value = () => getActivitySignups({ activityId: id.value })
|
|
|
+ signUpsReq.value = () => getActivitySignups({ activityId: id.value, pageSize: -1 })
|
|
|
}
|
|
|
if (type.value === 'studyTour') {
|
|
|
request.value = () => getStudyTour(id.value)
|
|
|
- signUpsReq.value = () => getStudyTourSignups({ studyId: id.value })
|
|
|
+ signUpsReq.value = () => getStudyTourSignups({ studyId: id.value, pageSize: -1 })
|
|
|
}
|
|
|
await setData()
|
|
|
option.value = {
|
|
@@ -243,7 +233,7 @@ onShareTimeline(() => ({ title: data.value.name, imageUrl: data.value.thumbnailU
|
|
|
canvas-id="firstCanvas"
|
|
|
id="firstCanvas"
|
|
|
></canvas>
|
|
|
- <ImageEvo :src="data?.backgroundUrl"></ImageEvo>
|
|
|
+ <ImageEvo :src="data?.bannerUrl"></ImageEvo>
|
|
|
<!-- <wd-img width="100%" height="100%" :src="data?.backgroundUrl"></wd-img> -->
|
|
|
<div class="absolute left-3.5 bottom-3" @click="isActivity && (listShow = true)">
|
|
|
<!-- <div-->
|
|
@@ -260,7 +250,11 @@ onShareTimeline(() => ({ title: data.value.name, imageUrl: data.value.thumbnailU
|
|
|
<!-- </div>-->
|
|
|
<div class="flex items-center gap-1.25">
|
|
|
<AvatarGroupCasual
|
|
|
- :urls="signups.list.map((it) => it.headImgUrl || NetImages.DefaultAvatar)"
|
|
|
+ :urls="
|
|
|
+ signups.list
|
|
|
+ .filter((it) => it.userId)
|
|
|
+ .map((it) => it.headImgUrl || NetImages.DefaultAvatar)
|
|
|
+ "
|
|
|
:width="40"
|
|
|
:height="40"
|
|
|
></AvatarGroupCasual>
|