<template>
  <view class="user_update_page">
    <view class="customer_update_card">
      <hs-cell title="客户姓名" required borderTop>
        <hs-input v-model:valueModel="useModel.formData.value.name" type="text" textAlign="right" />
      </hs-cell>
      <hs-cell title="手机号码" required borderTop>
        <hs-input
          v-model:valueModel="useModel.formData.value.phone"
          maxLength="11"
          type="number"
          textAlign="right"
          disabled
        />
      </hs-cell>
    </view>

    <hs-footer btnParimaryName="保存" />
  </view>
</template>

<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app'
import useModel from './model'
import { Apis } from '@/gen/Apis'
import { getApiLoading } from '@/common/libraries/apiLoading'

const handleSubmit = () => {
  getApiLoading(Apis.Bill.HouseBills.GetOccupantArrearageHouses, { phone }).then(res => {

    console.log(res)
  })
}


onLoad(e => {
  console.log(e)
  useModel.formData.value = e
})
</script>

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