index.axml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view class='radioAndcheckbox-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <van-popup
  3. show='{{ chooseBuilding }}'
  4. position='bottom'
  5. custom-style='height: 50%;'
  6. ref='saveChildRef1'
  7. >
  8. <view class='topTab'>
  9. <text class='cancel' onTap='antmoveAction' data-antmove-tap='crossBuilding'>
  10. 取消
  11. </text>
  12. <text class='sure' onTap='antmoveAction' data-antmove-tap='sure'>
  13. 确定
  14. </text>
  15. </view>
  16. <radio-group a:if="{{type==='radio'}}" onChange='chooserRadio'>
  17. <custom-label a:for='{{list}}' class='group' a:key='{{item.name}}' ref-numbers='{{list}}'>
  18. <radio value='{{item.name}}' data-name='{{item.name}}' checked='{{item.name==name}}'>
  19. </radio>
  20. {{item.name}}
  21. </custom-label>
  22. </radio-group>
  23. <checkbox-group a:if="{{type==='checkbox'}}" onChange='checkboxChange'>
  24. <view
  25. a:for='{{list}}'
  26. class="{{className=='block'?'block':'group group1'}}"
  27. a:key='{{item.name}}'
  28. ref-numbers='{{list}}'
  29. >
  30. <custom-label data-index='{{index}}'>
  31. <custom-checkbox value='{{sn?item.sn:item.name}}' checked='{{item.checked}}'>
  32. </custom-checkbox>
  33. {{item.name}}
  34. </custom-label>
  35. </view>
  36. </checkbox-group>
  37. </van-popup>
  38. </view>