|
@@ -78,6 +78,8 @@ import { computed, onMounted, ref, watch } from 'vue';
|
|
|
import { useVillageStore } from '@/store/village';
|
|
import { useVillageStore } from '@/store/village';
|
|
|
import { useFollow } from './composeabe/Follow';
|
|
import { useFollow } from './composeabe/Follow';
|
|
|
import { navTo } from '@/components/utils/PageAction';
|
|
import { navTo } from '@/components/utils/PageAction';
|
|
|
|
|
+import { isDevEnv } from '@/common/config/AppCofig';
|
|
|
|
|
+import { waitTimeOut } from '@imengyu/imengyu-utils';
|
|
|
import type { VillageListItem } from '@/api/light/LightVillageApi';
|
|
import type { VillageListItem } from '@/api/light/LightVillageApi';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
@@ -95,15 +97,14 @@ import VillageMyFollow from '../components/VillageMyFollow.vue';
|
|
|
import HomeLargeTitle from '@/common/components/parts/HomeLargeTitle.vue';
|
|
import HomeLargeTitle from '@/common/components/parts/HomeLargeTitle.vue';
|
|
|
import Around from './recommed/around.vue';
|
|
import Around from './recommed/around.vue';
|
|
|
import FrameButton from '@/common/components/FrameButton.vue';
|
|
import FrameButton from '@/common/components/FrameButton.vue';
|
|
|
-import { isDevEnv } from '@/common/config/AppCofig';
|
|
|
|
|
-import { waitTimeOut } from '@imengyu/imengyu-utils';
|
|
|
|
|
import JoinDialog from './dialogs/JoinDialog.vue';
|
|
import JoinDialog from './dialogs/JoinDialog.vue';
|
|
|
|
|
|
|
|
const topTab = ref<'village' | 'around'>('village');
|
|
const topTab = ref<'village' | 'around'>('village');
|
|
|
const tab = ref('card');
|
|
const tab = ref('card');
|
|
|
const villageStore = useVillageStore();
|
|
const villageStore = useVillageStore();
|
|
|
-const showMyFollowPopup = ref(false);
|
|
|
|
|
const { isFollowed, onFollow, onUnFollow } = useFollow();
|
|
const { isFollowed, onFollow, onUnFollow } = useFollow();
|
|
|
|
|
+
|
|
|
|
|
+const showMyFollowPopup = ref(false);
|
|
|
const joinDialog = ref<InstanceType<typeof JoinDialog>>();
|
|
const joinDialog = ref<InstanceType<typeof JoinDialog>>();
|
|
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
const props = withDefaults(defineProps<{
|
|
@@ -111,15 +112,12 @@ const props = withDefaults(defineProps<{
|
|
|
}>(), {
|
|
}>(), {
|
|
|
showSwitch: false,
|
|
showSwitch: false,
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
const isLight = computed(() => {
|
|
const isLight = computed(() => {
|
|
|
return villageStore.currentVillage?.isLight ?? false;
|
|
return villageStore.currentVillage?.isLight ?? false;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function handleLight() {
|
|
function handleLight() {
|
|
|
- navTo('/pages/home/light/submit', {
|
|
|
|
|
- villageId: villageStore.currentVillage?.id || 0,
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ joinDialog.value?.show();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function onSelectVillage(village: VillageListItem) {
|
|
function onSelectVillage(village: VillageListItem) {
|