<view class="container">
  <view class="hero fade-up">
    <view class="hero-badge">PROFILE</view>
    <view class="hero-title">个人资料设置</view>
    <view class="hero-sub">完善你的身份信息，便于审计追踪和团队协同。</view>
  </view>

  <view class="card fade-up fade-up-delay-1">
    <view class="card-title">账号资料</view>

    <view class="field">
      <text class="field-label">昵称</text>
      <input class="input" placeholder="请输入昵称" value="{{form.nickname}}" data-field="nickname" bindinput="onInput" />
    </view>

    <view class="field">
      <text class="field-label">公司</text>
      <input class="input" placeholder="请输入公司名称" value="{{form.company}}" data-field="company" bindinput="onInput" />
    </view>

    <view class="field">
      <text class="field-label">岗位</text>
      <input class="input" placeholder="请输入岗位" value="{{form.title}}" data-field="title" bindinput="onInput" />
    </view>

    <view class="field">
      <text class="field-label">手机号</text>
      <input class="input" placeholder="请输入手机号" value="{{form.phone}}" data-field="phone" bindinput="onInput" />
    </view>

    <view class="field">
      <text class="field-label">新密码</text>
      <input class="input" placeholder="留空表示不修改" password value="{{form.password}}" data-field="password" bindinput="onInput" />
      <view class="field-help">密码长度需不少于 6 位。</view>
    </view>

    <button class="btn btn-primary" loading="{{loading}}" bindtap="save">保存资料</button>
  </view>
</view>
