index.wxml 709 B

123456789101112131415161718192021222324
  1. <view class="testPage">
  2. <form bindsubmit="formSubmit" bindreset="formReset">
  3. <view class='header'>
  4. {{question.title}}
  5. </view>
  6. <view>
  7. <view class="section section_gap wrapper">
  8. <view class="section__title title">{{question.question}}</view>
  9. <radio-group name="radio-group" class="radios" bindchange="radioChange">
  10. <block wx:for='{{question.radio}}' wx:key ="opt"><label class="radio"><radio value="{{item.opt}}" />{{item.val}}</label>
  11. </block>
  12. </radio-group>
  13. </view>
  14. </view>
  15. <view class="btn-area">
  16. <button class="btn" type="primary" catch:tap='nextQuestion'> 下一题 </button>
  17. </view>
  18. </form>
  19. </view>