<!--pages/user/region/region.wxml-->
<view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">选择城市</text>
</view>

<view class="top_win" style="margin-top:{{isIPX?'103px':'74px'}};">
  <view class="top flex">
    <text>您的身份</text>
  </view>
  <view class="nowDress2 {{identity == 'bzy' ? 'active' : ''}}" data-type="bzy" bind:tap="identityChange">
    <text>报账员</text>
  </view>
  <view class="nowDress2 {{identity == 'spy' ? 'active' : ''}}" data-type="spy" bind:tap="identityChange">
    <text>审批员</text>
  </view>
</view>

<view class="top_win" style="margin-top:15px;">
  <view class="top flex">
    <text>您的位置</text>
    <!-- <view class="dw_box" bindtap="getLocation">
      <image src="/image/login/icon_update.png" style="width: 17px;height: 17px;margin-right: 5px;"></image>
      <text>重新定位</text>
    </view> -->
  </view>
  <view class="nowDress">
    <text>{{nowDress == '' ? '暂未选择':nowDress}}</text>
  </view>
  <van-index-bar highlight-color="#2C8E68" sticky sticky-offset-top="{{isIPX?'88':'64'}}">
    <van-collapse value="{{ activeNames }}" bind:change="onChange">
      <view class="list_bar" wx:for="{{list}}" wx:key="index">
        <van-index-anchor index="{{item.name}}" />
        <van-collapse-item title="{{cldItem.name}}" wx:for="{{item.value}}" wx:for-index="childrenIndex" wx:for-item="cldItem" wx:key="childrenIndex">
          <text class="list_bar_text" wx:for="{{cldItem.subset}}" wx:for-index="dressIndex" wx:for-item="dressItem" wx:key="dressIndex" data-url="{{dressItem.url}}" data-name="{{dressItem.name}}" data-parentname="{{cldItem.name}}" bindtap="goChangeUrl">{{dressItem.name}}</text>
        </van-collapse-item>
      </view>
    </van-collapse>
  </van-index-bar>
</view>
