<!--一览界面状态下拉组件-switch-->
<scroll-view class="{{dataList.length<4?'':'scroll-view'}}" scroll-y="{{true}}">
  <view wx:for="{{dataList}}" data-item="{{item}}" wx:key="index" style="display: flex;padding: 0 44rpx 0 44rpx;align-items: center;justify-content: space-between;line-height: 100rpx;">
    <text style="font-size: 16px;color:#002340;">{{item.title}}</text>
    <van-switch style="display: flex;align-items: center;" slot="right-icon" inactive-color="#e5e5e5" active-color="#1677FF" size="26px"  checked="{{ item.checked }}" data-index="{{index}}"
      bind:change="onSwitchChange" />
  </view>
</scroll-view>
<view style="height:151rpx;position: relative;">
  <view 
    class="btn-view">
    <van-switch wx:if="{{onAllChanageFlag ==true}}" inactive-color="#e5e5e5" active-color="#1677FF"  checked="{{ allCheck }}" style="display: flex;align-items: center;" size="26px"  bind:change="onAllChanage" />
    <van-button type="info" custom-style="height: 88rpx;background:#3E69F6;border:1px solid #3E69F6;font-size:16px;" style="width:{{onAllChanageFlag ==true ? '358rpx;' : '716rpx;'}}" size="small" block round bind:click="commit">
      确认
    </van-button>
  </view>
</view>