group.wxml 973 B

1234567891011121314
  1. <view wx:for="{{apps}}" wx:for-item="apps">
  2. <van-checkbox icon-size='28rpx' custom-class='custom-checkbox check-label' label-class='label-text' value="{{isCheck.isCheck(apps.systemappid,nubArr)}}" shape='square' data-item="{{apps}}" bindtap="classClick">{{apps.systemappname}}</van-checkbox>
  3. <van-checkbox-group wx:if="{{show}}" wx:key="index" value="{{apps.optionids}}" data-index="{{index}}" id="{{apps.systemappid}}" bind:change="onChange">
  4. <van-checkbox wx:for="{{apps.options}}" wx:key="{{options.optionid}}" wx:for-item="options" icon-size='28rpx' custom-class='custom-checkbox ' label-class='label-text' shape='square' name="{{options.optionid}}">{{options.optionname}}</van-checkbox>
  5. </van-checkbox-group>
  6. </view>
  7. <!-- <button bindtap="cha">2121</button> -->
  8. <wxs module="isCheck">
  9. module.exports.isCheck = function (id, arr) {
  10. for (var i = 0; i < arr.length; i++) {
  11. if (arr[i] == id) return true;
  12. };
  13. }
  14. </wxs>