This commit is contained in:
lzp
2026-03-03 15:39:54 +08:00
parent 76afe1022f
commit b3b7ce2f2a
15 changed files with 141 additions and 46 deletions

View File

@@ -32,11 +32,13 @@
<script setup lang="ts">
import { computed, ref, markRaw } from 'vue'
import { useGlobalStore } from '@/stores'
import { UpdateUserProfile } from '@/api/user'
import nuic1 from './nuic-1.vue'
import nuic2 from './nuic-2.vue'
import nuic3 from './nuic-3.vue'
import { useRouter, useRoute } from 'vue-router'
const globalStore = useGlobalStore()
const router = useRouter()
const route = useRoute()
const active = computed(() => Number(route.query.index || 0))
@@ -69,6 +71,7 @@
UpdateUserProfile(data)
.then((res) => {
if (!res) return (loading.value = false)
globalStore.setHomeAnimation(true)
const time = stime - Date.now() + 3000
setTimeout(() => {
router.push({ name: 'mainInput' })

View File

@@ -1,7 +1,7 @@
<template>
<div class="nuic-1">
<img src="@/assets/images/nuic/nuic-1-bg.png" />
<p class="hi">{{ $t('Nuic.hiName', { name: 'Aaa' }) }}</p>
<p class="hi">{{ $t('Nuic.hiName', { name }) }}</p>
<p class="title" v-html="$t('Nuic.nuic1Title')"></p>
<p class="tip" v-html="$t('Nuic.nuic1Tip')"></p>
<div class="btns">
@@ -13,9 +13,12 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import { useUserInfoStore } from '@/stores'
import { useRouter } from 'vue-router'
const userInfoStore = useUserInfoStore()
const router = useRouter()
const emit = defineEmits(['next'])
const name = computed(() => userInfoStore.state.userInfo?.username || '')
const onSkip = () => {
router.push({ name: 'mainInput' })
}