<!--nova-werun/pages/my/my-profile/index.wxml-->
<nav type="back" title="{{title}}" background-color="{{'#4F9AF7'}}" front-color="{{'#ffffff'}}"></nav>
<view class="popup">
  <van-cell-group>
    <van-field model:value="{{ name }}" required clearable label="姓名" placeholder="请输入姓名" />
    <van-field model:value="{{ idcard }}" type="number" required clearable label="身份证号" placeholder="请输入身份证号"/>
  </van-cell-group>
  <view class="registerStartDate">
    <view class="title">
      <text>*</text>
      姓别
    </view>
    <view class="date">
      <van-radio-group direction='horizontal' model:value="{{ sex }}" bind:change="onChangeSex">
        <van-radio icon-size="35rpx" name="男">男</van-radio>
        <van-radio icon-size="35rpx" name="女">女</van-radio>
      </van-radio-group>
    </view>
  </view>
  <van-cell-group>
    <van-field model:value="{{ mobile }}" type="number" required clearable label="电话" placeholder="请输入电话" />
    <van-field model:value="{{ fittingCosts }}" type="number" required clearable label="身高" placeholder="请输入身高（例如：170）" />
  </van-cell-group>

  <view class="registerStartDate" bindtap="openStore">
      <view class="title">
        <text>*</text>
        部门
      </view>
      <view class="date">{{shop.name||'选择部门'}}</view>
    </view>
</view>

<van-popup show="{{ showStorePopup }}" bind:click-overlay='closeStore' round position="bottom" bind:close="closeStore">
  <view style="height: 70vh;">
    <view style="padding: 20rpx;border-bottom: 1rpx solid rgb(206, 206, 206);text-align: center;font-weight: bold;">选择部门</view>

    <van-empty wx:if="{{!shopList.length}}" description="暂无可选地址" />
    <scroll-view style="height:calc(70vh - 200rpx) ;" scroll-y="{{true}}">
      <view class="company">
        <block wx:for="{{shopList}}" wx:key="index">
          <view data-index="{{index}}" bindtap="chooseShop" class="name" style="color: {{shop.objectId==item.objectId?'#4F9AF7':'gray'}};">{{item.name}}
            <van-icon wx:if="{{shop.objectId==item.objectId}}" name="success" />
          </view>
        </block>
      </view>
    </scroll-view>
  </view>
</van-popup>


<view class="submitbox">
  <view class="submit" bindtap="enlists">提交</view>
</view>