| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <!-- 前台导入wxmlUtil.wxs -->
- <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
- <loading wx:if="{{loading}}"></loading>
- <!-- 数据列表区 -->
- <view wx:for="{{tableData}}" wx:for-item="item" wx:for-index="index" data-item="{{item}}" wx:key="index" class="main-class">
- <view class="main-foot-2" style="position: relative;">
- <view class="corner-view" style="padding:20rpx">
- <view style="display: flex;">
- <view class="corner-view-text font" style="width: 70%;">{{item.itemName}}</view>
- <view style="width: 30%;text-align: right;">
- 展开
- </view>
- </view>
- </view>
- <view style="background-color: white;">
- <view wx:for="{{item.children}}" wx:for-item="item_" wx:for-index="index_" wx:key="index_" style="display: flex;padding:20rpx">
- <view class="corner-view-text font" style="width: 70%;">{{item_.itemName}}</view>
- <view style="width: 30%;text-align: right;">
- <van-switch bind:change="onCheckedItem_" data-index="{{index}}" data-index_="{{index_}}" active-color="#00A7B5" checked="{{ item_.checked }}" size="18px"></van-switch>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 保存 -->
- <view class="bottom-class">
- <van-button custom-class="save-button-class" disabled="{{loading}}" loading="{{loading}}" bind:click="save" type="default">保存
- </van-button>
- </view>
|