|
|
@@ -20,54 +20,56 @@
|
|
|
@click="showMyFollowPopup = true"
|
|
|
/>
|
|
|
</BubbleTip>
|
|
|
- <Button
|
|
|
+ <!-- <Button
|
|
|
:textColor="topTab === 'around' ? 'text.titleLight' : 'text.content'"
|
|
|
text="周边村社"
|
|
|
size="medium"
|
|
|
@click="topTab = 'around'"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
</FlexRow>
|
|
|
</FlexCol>
|
|
|
<Height :height="40" />
|
|
|
- <FlexCol v-if="topTab === 'village' && villageStore.currentVillage" gap="gap.md">
|
|
|
- <FlexRow center :padding="[0,30]">
|
|
|
- <HomeLargeTitle title="村社名片" :active="tab === 'card'" @click="tab = 'card'" />
|
|
|
- <Width :width="30" />
|
|
|
- <HomeLargeTitle title="乡源树" titleColorAnim :active="tab === 'tree'" @click="tab = 'tree'">
|
|
|
- <template #icon>
|
|
|
- <Image src="https://xy.wenlvti.net/app_static/images/village/TreeIconAmin2.gif" :width="34" :height="50" mode="heightFix" />
|
|
|
- </template>
|
|
|
- </HomeLargeTitle>
|
|
|
- <Width :width="30" />
|
|
|
- </FlexRow>
|
|
|
- <Card
|
|
|
- v-if="tab === 'card'"
|
|
|
- ref="cardRef"
|
|
|
- @goTree="tab = 'tree'"
|
|
|
- @goJoin="joinDialog?.show()"
|
|
|
- />
|
|
|
- <Tree
|
|
|
- v-if="tab === 'tree'"
|
|
|
- ref="treeRef"
|
|
|
- />
|
|
|
- <Height :height="150" />
|
|
|
- </FlexCol>
|
|
|
- <FlexCol v-else-if="topTab === 'village'" gap="gap.md">
|
|
|
- <FlexCol center :padding="[60,0]" gap="gap.md">
|
|
|
- <Image src="https://xy.wenlvti.net/app_static/images/home/BadgeNew.png" :width="320" mode="widthFix" />
|
|
|
- <Text text="还未选择一个村社" fontConfig="primaryTitle" />
|
|
|
- <Text text="欢迎关注或者认领村社,认领自己家乡参与建设,或四处看看" fontConfig="contentText" />
|
|
|
- <Height :height="20" />
|
|
|
- <FlexRow gap="gap.lg">
|
|
|
- <FrameButton text="去认领村社" @click="handleGoSuscribe" primary />
|
|
|
+ <template v-if="delayShow">
|
|
|
+ <FlexCol v-if="topTab === 'village' && villageStore.currentVillage" gap="gap.md">
|
|
|
+ <FlexRow center :padding="[0,30]">
|
|
|
+ <HomeLargeTitle title="村社名片" :active="tab === 'card'" @click="tab = 'card'" />
|
|
|
+ <Width :width="30" />
|
|
|
+ <HomeLargeTitle title="乡源树" titleColorAnim :active="tab === 'tree'" @click="tab = 'tree'">
|
|
|
+ <template #icon>
|
|
|
+ <Image src="https://xy.wenlvti.net/app_static/images/village/TreeIconAmin2.gif" :width="34" :height="50" mode="heightFix" />
|
|
|
+ </template>
|
|
|
+ </HomeLargeTitle>
|
|
|
+ <Width :width="30" />
|
|
|
</FlexRow>
|
|
|
+ <Card
|
|
|
+ v-if="tab === 'card'"
|
|
|
+ ref="cardRef"
|
|
|
+ @goTree="tab = 'tree'"
|
|
|
+ @goJoin="joinDialog?.show()"
|
|
|
+ />
|
|
|
+ <Tree
|
|
|
+ v-if="tab === 'tree'"
|
|
|
+ ref="treeRef"
|
|
|
+ />
|
|
|
+ <Height :height="150" />
|
|
|
</FlexCol>
|
|
|
- <Height :height="150" />
|
|
|
- </FlexCol>
|
|
|
- <Around
|
|
|
- v-else
|
|
|
- @selectVillage="onSelectVillage"
|
|
|
- />
|
|
|
+ <FlexCol v-else-if="topTab === 'village'" gap="gap.md">
|
|
|
+ <FlexCol center :padding="[60,0]" gap="gap.md">
|
|
|
+ <Image src="https://xy.wenlvti.net/app_static/images/home/BadgeNew.png" :width="320" mode="widthFix" />
|
|
|
+ <Text text="还未选择一个村社" fontConfig="primaryTitle" />
|
|
|
+ <Text text="欢迎关注或者认领村社,认领自己家乡参与建设,或四处看看" fontConfig="contentText" />
|
|
|
+ <Height :height="20" />
|
|
|
+ <FlexRow gap="gap.lg">
|
|
|
+ <FrameButton text="去认领村社" @click="handleGoSuscribe" primary />
|
|
|
+ </FlexRow>
|
|
|
+ </FlexCol>
|
|
|
+ <Height :height="150" />
|
|
|
+ </FlexCol>
|
|
|
+ <!-- <Around
|
|
|
+ v-else
|
|
|
+ @selectVillage="onSelectVillage"
|
|
|
+ /> -->
|
|
|
+ </template>
|
|
|
<Height :height="200" />
|
|
|
<Popup
|
|
|
v-model:show="showMyFollowPopup"
|
|
|
@@ -117,8 +119,9 @@ import MemoryTimeOut from '@/components/composeabe/MemoryTimeOut';
|
|
|
|
|
|
const topTab = ref<'village' | 'around'>('village');
|
|
|
const tab = ref('card');
|
|
|
+const delayShow = ref(false);
|
|
|
const villageStore = useVillageStore();
|
|
|
-const { isFollowed, onFollow, onUnFollow } = useFollow();
|
|
|
+const { isFollowed } = useFollow();
|
|
|
|
|
|
const showMyFollowPopup = ref(false);
|
|
|
const joinDialog = ref<InstanceType<typeof JoinDialog>>();
|
|
|
@@ -136,7 +139,6 @@ const emit = defineEmits(['goHome']);
|
|
|
const showFollowTipTimeout = new MemoryTimeOut('FollowTip', 1000 * 3600 * 30);//30h
|
|
|
const showFollowTip = ref(false);
|
|
|
|
|
|
-
|
|
|
function handleShowFollowTip() {
|
|
|
if (showFollowTipTimeout.isTimeout()) {
|
|
|
showFollowTip.value = true;
|
|
|
@@ -155,6 +157,7 @@ function handleGoSuscribe() {
|
|
|
function onSelectVillage(village: VillageListItem) {
|
|
|
topTab.value = 'village';
|
|
|
villageStore.setCurrentVillage(village);
|
|
|
+ uni.pageScrollTo({ scrollTop: 0 });
|
|
|
showMyFollowPopup.value = false;
|
|
|
}
|
|
|
|
|
|
@@ -175,6 +178,8 @@ onMounted(async () => {
|
|
|
title: villageStore.currentVillage?.name || '未选择村庄',
|
|
|
});
|
|
|
}
|
|
|
+ await waitTimeOut(100);
|
|
|
+ delayShow.value = true;
|
|
|
await waitTimeOut(1000);
|
|
|
handleTestGoTree();
|
|
|
});
|