feat:登录注册完成
This commit is contained in:
47
src/pages/device/index.vue
Normal file
47
src/pages/device/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user