feat:登录注册完成

This commit is contained in:
李伊帆
2026-10-09 14:29:58 +08:00
parent da83a58948
commit ee3ecc00eb
106 changed files with 4937 additions and 59 deletions

View File

@@ -0,0 +1,47 @@
<template>
<view class="device-page">
<device-header
:home-name="homeName"
@home="onHomePicker"
@notify="onNotify"
/>
<room-tabs
:rooms="rooms"
:active-id="activeRoomId"
@select="selectRoom"
@add="onAddRoom"
/>
<device-empty :step-hint="bindStepHint" @bind="onStartBind" />
<hot-devices :items="hotDevices" @mall="onGoMall" />
<app-tab-bar :current="tabCurrent" />
</view>
</template>
<script setup lang="ts">
import { useTabPage } from '@/hooks/use-tab-page'
import DeviceEmpty from './components/device-empty/index.vue'
import DeviceHeader from './components/device-header/index.vue'
import HotDevices from './components/hot-devices/index.vue'
import RoomTabs from './components/room-tabs/index.vue'
import { useDevice } from './use-device'
const { tabCurrent } = useTabPage('device')
const {
homeName,
rooms,
activeRoomId,
hotDevices,
bindStepHint,
selectRoom,
onAddRoom,
onStartBind,
onGoMall,
onNotify,
onHomePicker,
} = useDevice()
</script>
<style lang="scss" scoped>
@import './device.scss';
</style>