mistakes.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--pages/mistakes/mistakes.wxml-->
  2. <view class="container">
  3. <!-- 标题 -->
  4. <tarbar id="tarbar" />
  5. <!-- 内容 -->
  6. <view class="content">
  7. <scroll-view scroll-y="true" scroll-with-animation="true" scroll-with-animation="true" enable-back-to-top="true">
  8. <view class="recommend">
  9. <view class="answer-number">
  10. <view class="gross">
  11. <text>答题总量</text>
  12. <text>{{exponentData.sumAnswer}}</text>
  13. </view>
  14. <view class="error">
  15. <text>错误</text>
  16. <text>{{exponentData.sumWrongAnswer}}</text>
  17. </view>
  18. <view class="correct">
  19. <text>准确率</text>
  20. <text>{{exponentData.accuracy}}</text>
  21. </view>
  22. </view>
  23. <view class="course">
  24. <view class="course-head">
  25. <view class="subject select">
  26. 语文
  27. </view>
  28. <view class="subject">
  29. 数学
  30. </view>
  31. </view>
  32. <view class="course-content">
  33. <view class="error answer-content" wx:for="{{mistakesData}}" wx:key="index">
  34. <image class="questions" src="{{item.questions.img}}"></image>
  35. <view class="answer {{flag[index] ? 'unfold' : ''}}" animation="{{flag[index]? animationData : ''}}">
  36. <view class="answer-txt">
  37. <text>你的答案:{{item.userQuestionResult.answer === "" ? '不知道' : item.userQuestionResult.answer}}</text>
  38. <text>{{item.questions.answer == item.userQuestionResult.answer ? "" : "(错误)"}}</text>
  39. </view>
  40. <view class="analysis" bindtap="particulars" data-flag="{{flag[index]}}" data-index="{{index}}">
  41. <image class="analysis-img" src="../image/analysis_bottom.png" wx:if="{{!(flag[index])}}"></image>
  42. <image class="analysis-img-top" src="../image/analysis_top.png" wx:else></image>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </scroll-view>
  50. </view>
  51. </view>