<template>
  <view>
    <MyTabs />
    <view class="content">
      <cc-scroll-loading :meta="useModel?.meta?.value" @load="method?.handleLoadMore">
        <MyOwnerAuditList v-if="useModel?.currentTabs?.value === 0" />
        <MyHouseRegistersList v-if="useModel?.currentTabs?.value === 1" />
      </cc-scroll-loading>
    </view>
  </view>
</template>

<script setup lang="ts">
import { onLoad, onShow } from '@dcloudio/uni-app'
import MyOwnerAuditList from './components/OwnerAuditList.vue'
import MyHouseRegistersList from './components/HouseRegistersList.vue'
import MyTabs from './components/Tabs.vue'
import method from './method'
import useModel from './model'
onLoad((opt: any) => {
  useModel.dataList.value = []
  useModel.currentTabs.value = opt?.type === '1' ? 1 : 0
  method?.handleLoadMore(1)
})
</script>

<style lang="scss">
@import './style.scss';
</style>
