<!--packageF/storeManagement/components/baseInfo_popup/distribute_type_pop/distribute_type_pop.wxml-->

<van-popup show="{{show}}" position="bottom" bind:click-overlay="showPopup">
  <view class="wrapper">
    <view class="header">
      <van-nav-bar title="配送方式" bind:click-left="onClickLeft">
        <text slot="left" style="color:#838383;" bindtap="showPopup">取消</text>
        <text slot="right" style="color:#f15353;" bindtap="confirmType">确认</text>
      </van-nav-bar>
    </view>

    <view>
      <van-checkbox-group value="{{checkBoxs}}" style="text-align:left" checked-color="#f15353" bindchange="changeType">
          <van-cell-group>
            <van-cell clickable wx:for="{{dispatchTypeList}}" wx:key="index"
              title="{{item.name}}"
              data-index="{{ index }}"
              bind:click="toggle"
              border="{{false}}"
            >
              <view slot="right-icon" catchtap>
                <van-checkbox name="{{item.id+''}}" class="checkboxes-{{ index }}" use-icon-slot>
                  <i class="iconfont icon-all_select_active {{tool.indexOf(checkBoxs,item.id)>=0 ? 'active' : ''}}"></i>
                </van-checkbox>
              </view>
            </van-cell>
          </van-cell-group>
        </van-checkbox-group>
    </view>



    
  </view>
</van-popup>



<wxs module="tool">

  function indexOf(arr,content) {
    content=content+"";
    return arr.indexOf(content);
  }

  module.exports.indexOf = indexOf;

</wxs>