| 1234567891011121314151617 |
- <!--一览界面状态下拉组件-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:#2E3853;">{{item.text}}</text>
- <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}}"
- 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" v-model="{{ allCheck }}" style="display: flex;align-items: center;" size="26px" active-color="#00A7B5" bind:change="onAllChanage" />
- <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">
- 确认
- </van-button>
- </view>
- </view>
|