|
@@ -56,42 +56,12 @@
|
|
|
</Construction>
|
|
</Construction>
|
|
|
|
|
|
|
|
<!-- 图片 -->
|
|
<!-- 图片 -->
|
|
|
- <Construction text="暂无接口">
|
|
|
|
|
- <FlexRow v-if="villageInfoLoader.content.value" justify="space-between">
|
|
|
|
|
- <Image
|
|
|
|
|
- v-for="index of 3"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- :src="villageInfoLoader.content.value.images[index - 1]"
|
|
|
|
|
- radius="radius.md"
|
|
|
|
|
- :width="200"
|
|
|
|
|
- :height="140"
|
|
|
|
|
- mode="aspectFill"
|
|
|
|
|
- defaultImage=""
|
|
|
|
|
- touchable
|
|
|
|
|
- >
|
|
|
|
|
- <template #empty>
|
|
|
|
|
- <Touchable
|
|
|
|
|
- direction="column"
|
|
|
|
|
- position="absolute"
|
|
|
|
|
- inset="0"
|
|
|
|
|
- center
|
|
|
|
|
- backgroundColor="background.primary"
|
|
|
|
|
- >
|
|
|
|
|
- <Icon name="add" size="fontSize.md" />
|
|
|
|
|
- <Text text="上传封面" fontConfig="secondText" />
|
|
|
|
|
- </Touchable>
|
|
|
|
|
- </template>
|
|
|
|
|
- <FlexCol
|
|
|
|
|
- v-if="index === 3 && villageInfoLoader.content.value.images.length > 3"
|
|
|
|
|
- position="absolute" inset="0"
|
|
|
|
|
- center
|
|
|
|
|
- backgroundColor="mask.default"
|
|
|
|
|
- >
|
|
|
|
|
- <Text :text="`+${villageInfoLoader.content.value.images.length - 3}`" fontSize="fontSize.lg" color="white" />
|
|
|
|
|
- </FlexCol>
|
|
|
|
|
- </Image>
|
|
|
|
|
- </FlexRow>
|
|
|
|
|
- </Construction>
|
|
|
|
|
|
|
+ <VillageGallery
|
|
|
|
|
+ v-if="villageInfoLoader.content.value"
|
|
|
|
|
+ :villageId="villageStore.currentVillage?.id ?? 0"
|
|
|
|
|
+ :images="villageInfoLoader.content.value.images"
|
|
|
|
|
+ @update:images="villageInfoLoader.reload()"
|
|
|
|
|
+ />
|
|
|
|
|
|
|
|
<!-- 地址 -->
|
|
<!-- 地址 -->
|
|
|
<FlexRow align="center" gap="gap.sm">
|
|
<FlexRow align="center" gap="gap.sm">
|
|
@@ -210,10 +180,10 @@
|
|
|
GridItemPaddingVertical: 8,
|
|
GridItemPaddingVertical: 8,
|
|
|
}">
|
|
}">
|
|
|
<Grid :borderGrid="false" :mainAxisCount="4">
|
|
<Grid :borderGrid="false" :mainAxisCount="4">
|
|
|
- <GridItem title="乡源荣光" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png" touchable @click="toast('暂未开放,敬请期待!')" />
|
|
|
|
|
|
|
+ <GridItem title="乡源荣光" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHornor.png" touchable @click="navTo('/pages/home/village/honor/index')" />
|
|
|
<GridItem title="乡源好物" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png" touchable @click="navTo('/pages/home/village/goods/index')" />
|
|
<GridItem title="乡源好物" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeGoods.png" touchable @click="navTo('/pages/home/village/goods/index')" />
|
|
|
<GridItem title="乡源树" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png" touchable @click="emit('goTree')" />
|
|
<GridItem title="乡源树" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png" touchable @click="emit('goTree')" />
|
|
|
- <GridItem title="政贤连心" icon="https://xy.wenlvti.net/app_static/images/village/IconGovAffairs.png" touchable @click="toast('暂未开放,敬请期待!')" />
|
|
|
|
|
|
|
+ <!-- <GridItem title="政贤连心" icon="https://xy.wenlvti.net/app_static/images/village/IconGovAffairs.png" touchable @click="navTo('/pages/home/village/gov/index')" /> -->
|
|
|
<GridItem title="互动游戏" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png" touchable @click="navTo('/pages/home/village/games/index')" />
|
|
<GridItem title="互动游戏" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeGame.png" touchable @click="navTo('/pages/home/village/games/index')" />
|
|
|
</Grid>
|
|
</Grid>
|
|
|
</ProvideVar>
|
|
</ProvideVar>
|
|
@@ -282,6 +252,7 @@ import Construction from '@/common/components/Construction.vue';
|
|
|
import OfficialAccountPublishWrap from '@/common/components/OfficialAccountPublishWrap.vue';
|
|
import OfficialAccountPublishWrap from '@/common/components/OfficialAccountPublishWrap.vue';
|
|
|
import ApplyGoodsDialog from '../dialogs/ApplyGoodsDialog.vue';
|
|
import ApplyGoodsDialog from '../dialogs/ApplyGoodsDialog.vue';
|
|
|
import JoinDialog from '../dialogs/JoinDialog.vue';
|
|
import JoinDialog from '../dialogs/JoinDialog.vue';
|
|
|
|
|
+import VillageGallery from '../components/VillageGallery.vue';
|
|
|
|
|
|
|
|
const authStore = useAuthStore();
|
|
const authStore = useAuthStore();
|
|
|
const { getIsVolunteer } = useUserTools();
|
|
const { getIsVolunteer } = useUserTools();
|