|
|
@@ -2,7 +2,13 @@
|
|
|
<SimplePageContentLoader :loader="pageThemeLoader">
|
|
|
<ProvideVar
|
|
|
v-if="pageThemeLoader.content.value"
|
|
|
- :vars="pageThemeLoader.content.value.props?.varOvrride"
|
|
|
+ :vars="{
|
|
|
+ GridItemIconSize: 90,
|
|
|
+ GridItemBackgroundColor: 'transparent',
|
|
|
+ GridItemPaddingHorizontal: 0,
|
|
|
+ GridItemPaddingVertical: 8,
|
|
|
+ ...pageThemeLoader.content.value.props?.varOvrride
|
|
|
+ }"
|
|
|
:colors="pageThemeLoader.content.value.props?.colorOvrride"
|
|
|
>
|
|
|
|
|
|
@@ -96,7 +102,7 @@
|
|
|
<!-- 简介 -->
|
|
|
<TextEllipsis
|
|
|
fontConfig="secondText"
|
|
|
- :outerProps="{ direction: 'row', width: '490rpx' }"
|
|
|
+ :outerProps="{ direction: descOpen ? 'column' : 'row', width: descOpen ? undefined : '630rpx' }"
|
|
|
:lines="1"
|
|
|
:expandable="(villageInfoLoader.content.value?.desc as string || '').length > 20"
|
|
|
:text="(villageInfoLoader.content.value?.desc as string) || '暂无简介,欢迎您来编写完善!'"
|
|
|
@@ -250,11 +256,7 @@
|
|
|
<template v-else-if="node.type === 'Block:Collect'">
|
|
|
|
|
|
<!-- 魅力乡源 -->
|
|
|
- <HomeTitle
|
|
|
- :title="node.props?.title"
|
|
|
- showMore
|
|
|
- @moreClicked="handleGoCollect()"
|
|
|
- >
|
|
|
+ <HomeTitle :title="node.props?.title">
|
|
|
<template #right>
|
|
|
<FlexRow align="center" gap="gap.md">
|
|
|
<FrameButton
|
|
|
@@ -274,23 +276,16 @@
|
|
|
</template>
|
|
|
</HomeTitle>
|
|
|
<Height height="gap.md" />
|
|
|
- <ProvideVar :vars="{
|
|
|
- GridItemIconSize: 90,
|
|
|
- GridItemBackgroundColor: 'transparent',
|
|
|
- GridItemPaddingHorizontal: 0,
|
|
|
- GridItemPaddingVertical: 8,
|
|
|
- }">
|
|
|
- <Grid :borderGrid="false" :mainAxisCount="4">
|
|
|
- <GridItem title="村社概况" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeIntrod.png" touchable @click="handleGoCollect(11, '村社概况')" />
|
|
|
- <GridItem title="自然风光" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeEnvirounment.png" touchable @click="handleGoCollect(13, '自然风光')" />
|
|
|
- <GridItem title="历史沿革" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png" touchable @click="handleGoCollect(2, '历史沿革')" />
|
|
|
- <GridItem title="特色产业" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeIndustry.png" touchable @click="handleGoCollect(9, '特色产业' )" />
|
|
|
- <GridItem title="文艺活动" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeActivity.png" touchable @click="handleGoCollect(12, '文艺活动')" />
|
|
|
- <GridItem title="非遗展示" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeShow.png" touchable @click="handleGoCollect(10, '非遗展示')" />
|
|
|
- <GridItem title="民俗风采" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeFolkloreVibe.png" touchable @click="handleGoCollect(8, '民俗风采')" />
|
|
|
- <GridItem title="历史人物" icon="https://xy.wenlvti.net/app_static/images/village/IconGoods.png" touchable @click="handleGoCollect(7, '历史人物')" />
|
|
|
- </Grid>
|
|
|
- </ProvideVar>
|
|
|
+ <Grid :borderGrid="false" :mainAxisCount="4">
|
|
|
+ <GridItem title="村社概况" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeIntrod.png" touchable @click="handleGoCollect(11, '村社概况')" />
|
|
|
+ <GridItem title="自然风光" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeEnvirounment.png" touchable @click="handleGoCollect(13, '自然风光')" />
|
|
|
+ <GridItem title="历史沿革" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png" touchable @click="handleGoCollect(2, '历史沿革')" />
|
|
|
+ <GridItem title="特色产业" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeIndustry.png" touchable @click="handleGoCollect(9, '特色产业' )" />
|
|
|
+ <GridItem title="文艺活动" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeActivity.png" touchable @click="handleGoCollect(12, '文艺活动')" />
|
|
|
+ <GridItem title="非遗展示" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeShow.png" touchable @click="handleGoCollect(10, '非遗展示')" />
|
|
|
+ <GridItem title="民俗风采" icon="https://xy.wenlvti.net/app_static/images/village/IconLargeFolkloreVibe.png" touchable @click="handleGoCollect(8, '民俗风采')" />
|
|
|
+ <GridItem title="历史人物" icon="https://xy.wenlvti.net/app_static/images/village/IconGoods.png" touchable @click="handleGoCollect(7, '历史人物')" />
|
|
|
+ </Grid>
|
|
|
|
|
|
</template>
|
|
|
<template v-else-if="node.type === 'Block:Games'">
|
|
|
@@ -298,68 +293,64 @@
|
|
|
<!-- 活力乡源 -->
|
|
|
<HomeTitle :title="node.props?.title" />
|
|
|
<Height height="gap.md" />
|
|
|
- <ProvideVar :vars="{
|
|
|
- GridItemIconSize: 90,
|
|
|
- GridItemBackgroundColor: 'transparent',
|
|
|
- GridItemPaddingHorizontal: 0,
|
|
|
- GridItemPaddingVertical: 8,
|
|
|
- }">
|
|
|
- <Grid :borderGrid="false" :mainAxisCount="4">
|
|
|
- <GridItem
|
|
|
- v-for="item in node.props?.items"
|
|
|
- :key="item.title"
|
|
|
- :title="item.title"
|
|
|
- :icon="item.icon"
|
|
|
- touchable
|
|
|
- @click="() => context.getScriptEngine().execute(item.handler, node.getNodeScriptContext?.())"
|
|
|
- />
|
|
|
- </Grid>
|
|
|
- </ProvideVar>
|
|
|
+ <Grid :borderGrid="false" :mainAxisCount="4">
|
|
|
+ <GridItem
|
|
|
+ v-for="item in node.props?.items"
|
|
|
+ :key="item.title"
|
|
|
+ :title="item.title"
|
|
|
+ :icon="item.icon"
|
|
|
+ touchable
|
|
|
+ @click="() => context.getScriptEngine().execute(item.handler, node.getNodeScriptContext?.())"
|
|
|
+ />
|
|
|
+ </Grid>
|
|
|
|
|
|
</template>
|
|
|
<template v-else-if="node.type === 'Block:Official'">
|
|
|
|
|
|
<!-- 文脉乡源 -->
|
|
|
- <HomeTitle :title="node.props?.title">
|
|
|
- <template #right>
|
|
|
- <FlexRow align="center" gap="gap.md">
|
|
|
- <BubbleTip
|
|
|
- v-model:show="showManageTip"
|
|
|
- position="bottom"
|
|
|
- crossPosition="right"
|
|
|
- arrowOffsetX="180rpx"
|
|
|
- content="村社贴图太乱?点这里整理"
|
|
|
- @contentClick="handleCloseManageTip(true)"
|
|
|
- @close="handleCloseManageTip(false)"
|
|
|
- >
|
|
|
- <FrameButton
|
|
|
- text="管理"
|
|
|
- size="small"
|
|
|
- primary
|
|
|
- @click="handleGoOfficalManage()"
|
|
|
- />
|
|
|
- </BubbleTip>
|
|
|
- <FrameButton
|
|
|
- text="乡源AI帮你写"
|
|
|
- size="small"
|
|
|
- icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png"
|
|
|
- @click="handleGoPublish()"
|
|
|
- />
|
|
|
- </FlexRow>
|
|
|
- </template>
|
|
|
- </HomeTitle>
|
|
|
- <Height height="gap.md" />
|
|
|
- <RoundTags
|
|
|
- v-model:active="listActiveTag"
|
|
|
- :tags="tagsLoader.content.value || []"
|
|
|
- />
|
|
|
- <Height height="gap.md" />
|
|
|
- <OfficialAccountPublishWrap
|
|
|
- :topic="recommendTagName"
|
|
|
- :path="recommendPath"
|
|
|
- @publishsuccess="onPublishSuccess"
|
|
|
- @empty="isOfficialEmpty=true"
|
|
|
- />
|
|
|
+ <FlexCol>
|
|
|
+ <FlexCol gap="gap.md" padding="padding.lg">
|
|
|
+ <HomeTitle :title="node.props?.title" :showTopMargin="false">
|
|
|
+ <template #right>
|
|
|
+ <FlexRow align="center" gap="gap.md">
|
|
|
+ <BubbleTip
|
|
|
+ v-model:show="showManageTip"
|
|
|
+ position="bottom"
|
|
|
+ crossPosition="right"
|
|
|
+ arrowOffsetX="180rpx"
|
|
|
+ content="村社贴图太乱?点这里整理"
|
|
|
+ @contentClick="handleCloseManageTip(true)"
|
|
|
+ @close="handleCloseManageTip(false)"
|
|
|
+ >
|
|
|
+ <FrameButton
|
|
|
+ text="管理"
|
|
|
+ size="small"
|
|
|
+ primary
|
|
|
+ @click="handleGoOfficalManage()"
|
|
|
+ />
|
|
|
+ </BubbleTip>
|
|
|
+ <FrameButton
|
|
|
+ text="乡源AI帮你写"
|
|
|
+ size="small"
|
|
|
+ icon="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png"
|
|
|
+ @click="handleGoPublish()"
|
|
|
+ />
|
|
|
+ </FlexRow>
|
|
|
+ </template>
|
|
|
+ </HomeTitle>
|
|
|
+ <Height height="gap.md" />
|
|
|
+ <RoundTags
|
|
|
+ v-model:active="listActiveTag"
|
|
|
+ :tags="tagsLoader.content.value || []"
|
|
|
+ />
|
|
|
+ </FlexCol>
|
|
|
+ <OfficialAccountPublishWrap
|
|
|
+ :topic="recommendTagName"
|
|
|
+ :path="recommendPath"
|
|
|
+ @publishsuccess="onPublishSuccess"
|
|
|
+ @empty="isOfficialEmpty=true"
|
|
|
+ />
|
|
|
+ </FlexCol>
|
|
|
|
|
|
</template>
|
|
|
</template>
|