dk-dropdown-switch.wxml 1.2 KB

1234567891011121314151617
  1. <!--一览界面状态下拉组件-switch-->
  2. <scroll-view class="{{dataList.length<4?'':'scroll-view'}}" scroll-y="{{true}}">
  3. <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;">
  4. <text style="font-size: 16px;color:#2E3853;">{{item.text}}</text>
  5. <van-switch style="display: flex;align-items: center;" slot="right-icon" inactive-color="#e5e5e5" active-color="#00A7B5" size="26px" checked="{{ item.checked }}" data-index="{{index}}"
  6. bind:change="onSwitchChange" />
  7. </view>
  8. </scroll-view>
  9. <view style="height:151rpx;position: relative;">
  10. <view
  11. class="btn-view">
  12. <van-switch wx:if="{{onAllChanageFlag ==true}}" inactive-color="#e5e5e5" v-model="{{ allCheck }}" style="display: flex;align-items: center;" size="26px" active-color="#00A7B5" bind:change="onAllChanage" />
  13. <van-button type="info" custom-style="height: 88rpx;background:#1B365D;border:1px solid #1B365D;font-size:16px;" style="width:{{onAllChanageFlag ==true ? '358rpx;' : '716rpx;'}}" size="small" block round bind:click="commit">
  14. 确认
  15. </van-button>
  16. </view>
  17. </view>