feat: 页面跳转逻辑&语音输入界面

This commit is contained in:
zhangyh
2025-10-16 13:34:30 +08:00
parent 3141fc3640
commit cb63e15aec
7 changed files with 306 additions and 22 deletions

View File

@@ -40,6 +40,9 @@
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
type PageMode = 'form' | 'entry'
const pageMode = ref<PageMode>('entry')
@@ -49,6 +52,7 @@ const handleChangeMode = (mode: PageMode) => {
const handleConfirm = () => {
console.log('handleConfirm')
router.push('/stylist/index')
}
</script>
<style lang="less" scoped>

View File

@@ -7,8 +7,12 @@
</div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const handleStart = () => {
console.log('click start')
router.push('/asistant')
}
</script>
<style lang="less" scoped>

View File

@@ -121,7 +121,7 @@ const handleClickStylist = (item: any) => {
const handleContinue = () => {
// 跳转到下一个页面
router.push('/workshop')
router.push('/stylist/sex')
}
// 监听showVideo变化关闭时暂停视频

View File

@@ -17,6 +17,9 @@
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const options = ref<any[]>([
{ label: 'Female', value: '1' },
{ label: 'Male', value: '0' }
@@ -24,6 +27,7 @@ const options = ref<any[]>([
const handleSelect = (value: string) => {
console.log(value)
router.push('/stylist/dressfor')
}
</script>
<style lang="less" scoped>