company-param-setting.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <loading wx:if="{{loading}}"></loading>
  4. <!-- 数据列表区 -->
  5. <view wx:for="{{tableData}}" wx:for-item="item" wx:for-index="index" data-item="{{item}}" wx:key="index" class="main-class">
  6. <view class="main-foot-2" style="position: relative;">
  7. <view class="corner-view" style="padding:20rpx">
  8. <view style="display: flex;">
  9. <view class="corner-view-text font" style="width: 70%;">{{item.itemName}}</view>
  10. <view style="width: 30%;text-align: right;">
  11. 展开
  12. </view>
  13. </view>
  14. </view>
  15. <view style="background-color: white;">
  16. <view wx:for="{{item.children}}" wx:for-item="item_" wx:for-index="index_" wx:key="index_" style="display: flex;padding:20rpx">
  17. <view class="corner-view-text font" style="width: 70%;">{{item_.itemName}}</view>
  18. <view style="width: 30%;text-align: right;">
  19. <van-switch bind:change="onCheckedItem_" data-index="{{index}}" data-index_="{{index_}}" active-color="#00A7B5" checked="{{ item_.checked }}" size="18px"></van-switch>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 保存 -->
  26. <view class="bottom-class">
  27. <van-button custom-class="save-button-class" disabled="{{loading}}" loading="{{loading}}" bind:click="save" type="default">保存
  28. </van-button>
  29. </view>