|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<FlexCol>
|
|
|
- <FlexCol :gap="20" :padding="30" :innerStyle="{
|
|
|
+ <FlexCol :gap="20" :padding="[30,30,0,30]" :innerStyle="{
|
|
|
marginTop: '-130px',
|
|
|
backgroundImage: 'url(https://xy.wenlvti.net/app_static/images/home/BannerHomeNew.png)',
|
|
|
backgroundSize: '100% auto',
|
|
|
@@ -143,7 +143,21 @@
|
|
|
@goDetails="navTo('/pages/home/village/volunteer/detail', { id: $event.id })"
|
|
|
/>
|
|
|
|
|
|
- <HomeTitle title="精选记忆" />
|
|
|
+ <HomeTitle title="精选记忆">
|
|
|
+ <template #right>
|
|
|
+ <Touchable
|
|
|
+ :padding="[15, 20]"
|
|
|
+ :innerStyle="{ marginRight: '20rpx' }"
|
|
|
+ direction="row"
|
|
|
+ center
|
|
|
+ gap="gap.md"
|
|
|
+ @click="handleGoPublish()"
|
|
|
+ >
|
|
|
+ <Icon name="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png" :size="30" />
|
|
|
+ <Text text="AI帮你写" fontConfig="contentText" />
|
|
|
+ </Touchable>
|
|
|
+ </template>
|
|
|
+ </HomeTitle>
|
|
|
</FlexCol>
|
|
|
<OfficialAccountPublishWrap
|
|
|
topic="亮乡源"
|
|
|
@@ -211,6 +225,9 @@ import Width from '@/components/layout/space/Width.vue';
|
|
|
import OfficialAccountPublishWrap from '@/common/components/OfficialAccountPublishWrap.vue';
|
|
|
import IntroClamTip from './village/dialogs/IntroClamTip.vue';
|
|
|
import MemoryTimeOut from '@/components/composeabe/MemoryTimeOut';
|
|
|
+import Touchable from '@/components/feedback/Touchable.vue';
|
|
|
+import Icon from '@/components/basic/Icon.vue';
|
|
|
+import Text from '@/components/basic/Text.vue';
|
|
|
|
|
|
const emit = defineEmits(['goVillage']);
|
|
|
const { onPublishSuccess } = useOfficialAccount();
|
|
|
@@ -288,7 +305,6 @@ const activityLoader = useSimpleDataLoader(async () => {
|
|
|
});
|
|
|
|
|
|
|
|
|
-
|
|
|
watch(currentRegion, async (newVal) => {
|
|
|
await villageRankListLoader.reload();
|
|
|
await villageUserRankListLoader.reload();
|
|
|
@@ -325,6 +341,11 @@ function handleGoAI() {
|
|
|
navTo('/pages/chat/index');
|
|
|
}, '暂时需要登录后才能使用AI助手');
|
|
|
}
|
|
|
+async function handleGoPublish() {
|
|
|
+ requireLogin(async () => {
|
|
|
+ navTo('/pages/chat/dependent/post/publish', { tag: '亮乡源' });
|
|
|
+ }, '欢迎使用AI助手,登录后以便使用更多功能哦!');
|
|
|
+}
|
|
|
async function handleLightVillage() {
|
|
|
requireLogin(async () => navTo('/pages/home/light/submit-map', { city: currentCity.value }), '登录后才能点亮村社哦!');
|
|
|
}
|