|
@@ -159,7 +159,7 @@
|
|
|
@click="handleGoPublish()"
|
|
@click="handleGoPublish()"
|
|
|
>
|
|
>
|
|
|
<Icon name="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png" :size="30" />
|
|
<Icon name="https://xy.wenlvti.net/app_static/images/village/IconLargeHistory.png" :size="30" />
|
|
|
- <Text text="AI帮你写" fontConfig="contentText" />
|
|
|
|
|
|
|
+ <Text text="我也来写" fontConfig="contentText" />
|
|
|
</Touchable>
|
|
</Touchable>
|
|
|
</template>
|
|
</template>
|
|
|
</HomeTitle>
|
|
</HomeTitle>
|
|
@@ -207,6 +207,10 @@
|
|
|
<VillageMyFollow @handleGoVillageDetails="handleGoRecommendDetails" />
|
|
<VillageMyFollow @handleGoVillageDetails="handleGoRecommendDetails" />
|
|
|
</Popup>
|
|
</Popup>
|
|
|
|
|
|
|
|
|
|
+ <PostIndex
|
|
|
|
|
+ ref="postIndexRef"
|
|
|
|
|
+ @goDig="emit('goDig')"
|
|
|
|
|
+ />
|
|
|
<IntroClamTip ref="introClamTipRef" @apply="handleLightVillage" />
|
|
<IntroClamTip ref="introClamTipRef" @apply="handleLightVillage" />
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</template>
|
|
</template>
|
|
@@ -220,7 +224,6 @@ import { useVillageStore } from '@/store/village';
|
|
|
import { useGetCurrentLocation } from './composeabe/GetCurrentLocation';
|
|
import { useGetCurrentLocation } from './composeabe/GetCurrentLocation';
|
|
|
import { useAuthStore } from '@/store/auth';
|
|
import { useAuthStore } from '@/store/auth';
|
|
|
import { useRequireLogin } from '@/common/composeabe/RequireLogin';
|
|
import { useRequireLogin } from '@/common/composeabe/RequireLogin';
|
|
|
-import { useOfficialAccount } from './composeabe/OfficialAccount';
|
|
|
|
|
import { useUserTools } from '@/common/composeabe/UserTools';
|
|
import { useUserTools } from '@/common/composeabe/UserTools';
|
|
|
import { ArrayUtils, waitTimeOut } from '@imengyu/imengyu-utils';
|
|
import { ArrayUtils, waitTimeOut } from '@imengyu/imengyu-utils';
|
|
|
import { toast } from '@/components/utils/DialogAction';
|
|
import { toast } from '@/components/utils/DialogAction';
|
|
@@ -257,8 +260,9 @@ import ImageSwiper from '@/common/components/parts/ImageSwiper.vue';
|
|
|
import { useSimplePageListLoader } from '@/components/composeabe/loader/SimplePageListLoader';
|
|
import { useSimplePageListLoader } from '@/components/composeabe/loader/SimplePageListLoader';
|
|
|
import VillageInfoApi, { type CommonInfoModel } from '@/api/inhert/VillageInfoApi';
|
|
import VillageInfoApi, { type CommonInfoModel } from '@/api/inhert/VillageInfoApi';
|
|
|
import SimplePageListLoader from '@/components/loader/SimplePageListLoader.vue';
|
|
import SimplePageListLoader from '@/components/loader/SimplePageListLoader.vue';
|
|
|
|
|
+import PostIndex from './village/dialogs/PostIndex.vue';
|
|
|
|
|
|
|
|
-const emit = defineEmits(['goVillage']);
|
|
|
|
|
|
|
+const emit = defineEmits(['goVillage','goDig']);
|
|
|
const authStore = useAuthStore();
|
|
const authStore = useAuthStore();
|
|
|
const villageStore = useVillageStore();
|
|
const villageStore = useVillageStore();
|
|
|
const themeContext = useTheme();
|
|
const themeContext = useTheme();
|
|
@@ -269,6 +273,7 @@ const showCityPopup = ref(false);
|
|
|
const showMyFollowPopup = ref(false);
|
|
const showMyFollowPopup = ref(false);
|
|
|
const introClamTipRef = ref();
|
|
const introClamTipRef = ref();
|
|
|
const introClamTipTimeout = new MemoryTimeOut('IntroClamTip', 1000 * 3600 * 30);//30h
|
|
const introClamTipTimeout = new MemoryTimeOut('IntroClamTip', 1000 * 3600 * 30);//30h
|
|
|
|
|
+const postIndexRef = ref<InstanceType<typeof PostIndex>>();
|
|
|
const appConfiguration = injectAppConfiguration();
|
|
const appConfiguration = injectAppConfiguration();
|
|
|
|
|
|
|
|
const currentRegion = ref<number | null>(null);
|
|
const currentRegion = ref<number | null>(null);
|
|
@@ -377,8 +382,8 @@ function handleGoAI() {
|
|
|
}
|
|
}
|
|
|
async function handleGoPublish() {
|
|
async function handleGoPublish() {
|
|
|
requireLogin(async () => {
|
|
requireLogin(async () => {
|
|
|
- navTo('/pages/chat/dependent/post/publish', { tag: '亮乡源' });
|
|
|
|
|
- }, '欢迎使用AI助手,登录后以便使用更多功能哦!');
|
|
|
|
|
|
|
+ postIndexRef.value?.show();
|
|
|
|
|
+ }, '欢迎您发布内容,登录后以便使用更多功能哦!');
|
|
|
}
|
|
}
|
|
|
async function handleLightVillage() {
|
|
async function handleLightVillage() {
|
|
|
requireLogin(async () => navTo('/pages/home/light/submit-map', { city: currentCity.value }), '登录后才能点亮村社哦!');
|
|
requireLogin(async () => navTo('/pages/home/light/submit-map', { city: currentCity.value }), '登录后才能点亮村社哦!');
|