index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <view bindtap="handleTap" class="i-class i-cell {{ isLastCell ? 'i-cell-last' : '' }} {{ isLink ? 'i-cell-access' : '' }}">
  2. <view class="i-cell-icon">
  3. <slot name="icon"></slot>
  4. </view>
  5. <block wx:if="{{text}}">
  6. <view class="i-cell-bd">
  7. <view wx:if="{{ title }}" class="i-cell-text">{{ title }}</view>
  8. <view wx:if="{{ text.length>18 }}" class="i-cell-desc">{{ text }}</view>
  9. <slot></slot>
  10. </view>
  11. <view catchtap="navigateTo" class="i-cell-ft">
  12. <block wx:if="{{text.length<=18}}">{{ text }}</block>
  13. <block wx:else>
  14. <slot name="footer"></slot>
  15. </block>
  16. </view>
  17. </block>
  18. <block wx:else>
  19. <view class="i-cell-bd">
  20. <view wx:if="{{ title }}" class="i-cell-text">{{ title }}</view>
  21. <view wx:if="{{ label }}" class="i-cell-desc">{{ label }}</view>
  22. <slot></slot>
  23. </view>
  24. <view catchtap="navigateTo" class="i-cell-ft">
  25. <block wx:if="{{value}}">{{ value }}</block>
  26. <block wx:else>
  27. <slot name="footer"></slot>
  28. </block>
  29. </view>
  30. </block>
  31. </view>