examResult.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="container">
  2. <van-image width="750rpx" height="1150rpx" src="/images/ic_exam_bg.png" class="exam-bg"/>
  3. <van-image width="690rpx" height="90vh" src="/images/ic_exam_page.png" class="page-bg"/>
  4. <view class="top">
  5. <view class="logo">
  6. <view class="score">{{score || 0}}</view>
  7. <view class="unit">分</view>
  8. </view>
  9. </view>
  10. <view class="content">
  11. <edu-mark text="我的答题" custom-class="title"/>
  12. <view class="card-container">
  13. <view class="card" wx:for="{{exams}}" wx:key="index">
  14. <view class="no">{{index + 1}}</view>
  15. <view class="card-content">
  16. <view class="question">
  17. {{item.stem}}
  18. </view>
  19. <view class="answer" wx:if="{{!item.myAnswer}}">
  20. <view class="answer-key">正确答案:</view>
  21. <view class="space">
  22. <view class="answer-ok" wx:for="{{item.okAnswers}}" wx:key="index">
  23. {{item.opt}}. {{item.answer}}
  24. </view>
  25. </view>
  26. </view>
  27. <view class="answer">
  28. <view class="answer-key">我的答案:</view>
  29. <view class="answer-my" wx:if="{{item.myAnswer}}">
  30. {{item.myAnswer}}
  31. </view>
  32. <view class="space" wx:else>
  33. <view class="answer-my" wx:for="{{item.myAnswers}}" wx:key="index">
  34. {{item.opt}}. {{item.answer}}
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>