<template>
  <view class="people-list-container">
    <!-- 顶部导航栏 -->
    <view class="nav-bar">
      <view class="nav-back" @click="goBack">
        <text class="nav-back-icon">‹</text>
      </view>
      <text class="nav-title">住户详情</text>
    </view>

    <!-- 温馨提示 -->
    <view class="tip-container">
      <text class="tip-text">温馨提示：您在恒大物业服务中心或恒大智慧社区APP登记了以下住户信息</text>
    </view>

    <!-- 地址信息 -->
    <view class="address-container">
      <text class="address-text">南宁恒大华府一期01栋1单元4层0405</text>
    </view>

    <!-- 住户信息卡片 -->
    <view class="resident-card">
      <!-- 姓名和业主标识 -->
      <view class="resident-header">
        <text class="resident-name">翟灵</text>
        <view class="owner-tag">
          <text class="owner-text">业主</text>
        </view>
      </view>

      <!-- 联系信息 -->
      <view class="contact-info">
        <view class="info-row">
          <text class="info-label">联系电话：</text>
          <text class="info-value">195****4431</text>
        </view>
        <view class="info-row">
          <text class="info-label">身份证号：</text>
          <text class="info-value">450**********2130</text>
        </view>
        <view class="info-row">
          <text class="info-label">认证时间：</text>
          <text class="info-value">2020-02-14 19:28</text>
        </view>
      </view>

      <!-- 提示信息 -->
      <view class="notice-container">
        <text class="notice-text">如果您是业主身份，可向左滑动家人/历史业主的卡片并删除，解除房屋绑定关系</text>
        <text class="notice-text">如果您是租客身份，可向左滑动租客家人的卡片并删除，解除房屋绑定关系</text>
      </view>
    </view>

    <!-- 添加家人按钮 -->
    <view class="add-family-btn" @click="addFamily">
      <text class="add-family-text">添加家人</text>
    </view>
  </view>
</template>

<script>
export default {
  name: "peopleList",
  data() {
    return {
      peopleList: [],
    }
  },
  methods: {
    goBack() {
      uni.navigateBack()
    },
    addFamily() {

    }
  }
}
</script>

<style lang="scss" scoped>
.people-list-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 88rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #eee;
}

.nav-back {
  position: absolute;
  left: 30rpx;
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-back-icon {
  font-size: 40rpx;
  color: #333;
  font-weight: bold;
}

.nav-title {
  font-size: 36rpx;
  color: #333;
  font-weight: 500;
}

.tip-container {
  margin: 30rpx;
  padding: 30rpx;
  background-color: #fff3cd;
  border-radius: 12rpx;
  border-left: 6rpx solid #ffc107;
}

.tip-text {
  font-size: 28rpx;
  color: #856404;
  line-height: 1.5;
}

.address-container {
  margin: 0 30rpx 30rpx;
  padding: 30rpx;
  background-color: #fff;
  border-radius: 12rpx;
}

.address-text {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
}

.resident-card {
  margin: 0 30rpx;
  padding: 40rpx 30rpx;
  background-color: #fff;
  border-radius: 12rpx;
}

.resident-header {
  display: flex;
  align-items: center;
  margin-bottom: 40rpx;
}

.resident-name {
  font-size: 36rpx;
  color: #333;
  font-weight: 600;
  margin-right: 20rpx;
}

.owner-tag {
  padding: 8rpx 16rpx;
  background-color: #ffc107;
  border-radius: 20rpx;
}

.owner-text {
  font-size: 24rpx;
  color: #333;
}

.contact-info {
  margin-bottom: 40rpx;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 24rpx;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 30rpx;
  color: #666;
  width: 180rpx;
}

.info-value {
  font-size: 30rpx;
  color: #333;
  flex: 1;
}

.notice-container {
  padding-top: 30rpx;
  border-top: 1rpx solid #eee;
}

.notice-text {
  display: block;
  font-size: 26rpx;
  color: #999;
  line-height: 1.6;
  margin-bottom: 16rpx;
}

.notice-text:last-child {
  margin-bottom: 0;
}

.add-family-btn {
  position: fixed;
  bottom: 60rpx;
  left: 30rpx;
  right: 30rpx;
  height: 96rpx;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border-radius: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 24rpx rgba(255, 193, 7, 0.3);
}

.add-family-text {
  font-size: 32rpx;
  color: #333;
  font-weight: 600;
}
</style>