<template>
  <view class="asset_houses">
    <view class="header_search_box">
      <u-search placeholder="请输入关键词搜索" :showAction="false" v-model="useModel.formData.value.name"
        @search="method?.onSearch"></u-search>
    </view>
    <view>
      <MyMeHouseItem v-if="useModel?.selectType?.value === 'work_add'" />
      <MyMeProjectItem v-if="useModel?.selectType?.value === 'meter'" />
    </view>

  </view>
</template>
<script setup lang="ts">
import { useWeAppAuthStore } from '@/common'
import { onLoad } from '@dcloudio/uni-app'
import MyMeHouseItem from './components/MeHouseItem.vue'
import MyMeProjectItem from './components/MeProjectItem.vue'
import method from './method'
import useModel from './model'
const auth = useWeAppAuthStore()

onLoad((e: any) => {
  useModel.dataList.value = []
  useModel.selectType.value = e?.type
  method?.handleLoadMore(1)
})
</script>
<style lang="scss">
@import './style.scss';
</style>
