<wxs src='../../../utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<!-- 弹窗 -->
<van-popup show="{{show}}" position="right" z-index="100" custom-style="overflow-x:hidden;width: 75%;z-index:100;height:100%;" bind:close="onClose">
 
 <van-sticky scroll-top="0" offset-top="{{ navBarHeight }}">
   <view wx:if="{{Top_Height_Flag}}" style="height: 21vw;background: #fff;"></view>
   <van-search custom-class="search-class" shape="round" model:value="{{ conditions[typeName] }}" input-class="background:#c8c8c8;" placeholder="搜索" bind:change="onChange_input" bind:blur="blur_input" />
   <view class="choose_label" >
     {{label_title}}
   </view>
 </van-sticky>

 <view class="root" style="height:calc(100% - 120rpx - 88px);margin-top: {{navBarHeight}}px;">
   <view class="scroll_search" style="overflow-x:hidden;">
     <scroll-view class="scroll_position"  scroll-x="{{false}}" scroll-y enable-back-to-top>
       <view wx:if="{{Top_Height_Flag}}" style="height: 21vw;background: #fff;"></view>
       <van-checkbox-group value="{{ radio }}" bind:change="onChange">
          <van-checkbox wx:for="{{datalists[typeName]}}" shape="round" icon-size="16px"  data-index="{{index}}" data-id="{{item.id}}" name="{{index}}" custom-class="custom-class" checked-color="#1B365D" label-class="{{wxmlUtil.defineIndexOf(radio,index + '')>=0?'label-checked-class':'label-class'}}">{{item.name}}
          </van-checkbox>
        </van-checkbox-group>
       <!-- <view wx:for="{{datalist}}" class="checkbos_padding" data-index="{{index}}" data-id="{{item.id}}">
         <van-cell custom-class="cell-class" border="{{false}}" title-width="280rpx"  clickable="{{true}}" bind:click="checkItem"  data-item="{{item.checked}}"  data-index="{{index}}" data-id="{{item.id}}">
           <view Slot="title">
             <van-checkbox other-style="display:flex;" use-icon-slot shape="square" value="{{ item.checked }}" data-index="{{index}}"  data-id="{{item.id}}">
             <view style="display:flex;align-items:center;">
               <image style="width: 26rpx;height:26rpx;" slot="icon" src="{{ item.checked ? '../../static/image/radio-check.png' : '../../static/image/radio-no-checked.png' }}" />
               <view style="margin-left:10rpx;font-size: 13px;{{item.checked?'color:#1B365D':'color:#95A8CB'}}">{{item.name}}</view>
             </view>
             </van-checkbox>
           </view>
         </van-cell>
       </view> -->
     </scroll-view>
   </view>
 </view>
 <view class="popup-button">
   <view >
     <van-button custom-style="border-radius: 15rpx;width:189rpx !important;" plain color="#1B365D"  catchtap="reset">重置</van-button>
   </view>
   <view >
     <van-button custom-style="border-radius: 15rpx;width:274rpx  !important;" color="#3E69F6"  catchtap="commit">确定</van-button>
   </view>
 </view>
</van-popup>