index.wxml 907 B

123456789101112131415161718192021
  1. <view wx:for="{{tableData}}" wx:key="item">
  2. <i-button wx:if="{{item.type==1}}"
  3. bindtap="gotoAnswer" data-item="{{item}}" type="info" open-type="navigate" class="m20">
  4. <text type="primary">判断题 【{{item.count}}】</text>
  5. </i-button>
  6. <i-button wx:if="{{item.type==2}}"
  7. bindtap="gotoAnswer" data-item="{{item}}"
  8. type="primary" open-type="navigate" class="m20">
  9. <text type="primary"> 单选题 【{{item.count}}】</text>
  10. </i-button>
  11. <i-button wx:if="{{item.type==3}}"
  12. bindtap="gotoAnswer" data-item="{{item}}"
  13. type="warning" open-type="navigate" class="m20">
  14. <text type="primary"> 多选题 【{{item.count}}】</text>
  15. </i-button>
  16. <i-button wx:if="{{item.type==4}}"
  17. bindtap="gotoAnswer" data-item="{{item}}"
  18. type="error" open-type="navigate" class="m20">
  19. <text type="primary"> 案例题 【{{item.count}}】小题</text>
  20. </i-button>
  21. </view>