<template>
  <div class="profile-detail">
    <div class="header">
      <div class="back" @click="goBack">
        
        <img src="@/assets/back.png" alt="">
      </div>
      <div class="title">个人详情</div>
    </div>
    <div class="content">
      <div class="info-item">
        <span class="label">用户名</span>
        <span class="value">张三</span>
      </div>
      <div class="info-item">
        <span class="label">手机号</span>
        <span class="value">138****8888</span>
      </div>
      <div class="info-item">
        <span class="label">注册时间</span>
        <span class="value">2024-03-20</span>
      </div>
      <div class="info-item">
        <span class="label">账户余额</span>
        <span class="value">¥ 1,000.00</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ProfileDetail',
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
.profile-detail {
  min-height: 100vh;
  background-color: #f5f5f5;

  .header {
    position: relative;
    height: 44px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;

    .back {
      position: absolute;
      left: 15px;
      font-size: 20px;
      img{
        width: 20px;
        height: 20px;
      }
    }

    .title {
      font-size: 18px;
      font-weight: 500;
    }
  }

  .content {
    padding: 15px;
    background-color: #fff;
    margin-top: 10px;

    .info-item {
      display: flex;
      justify-content: space-between;
      padding: 15px 0;
      border-bottom: 1px solid #eee;

      &:last-child {
        border-bottom: none;
      }

      .label {
        color: #666;
        font-size: 16px;
      }

      .value {
        color: #333;
        font-size: 16px;
      }
    }
  }
}
</style> 