feat: 页面跳转逻辑&语音输入界面
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -121,7 +121,7 @@ const handleClickStylist = (item: any) => {
|
||||
|
||||
const handleContinue = () => {
|
||||
// 跳转到下一个页面
|
||||
router.push('/workshop')
|
||||
router.push('/stylist/sex')
|
||||
}
|
||||
|
||||
// 监听showVideo变化,关闭时暂停视频
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user