mistakes.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 {{courseIndex == index ? 'select' : ''}}" wx:for="{{course}}" wx:key="{{index}}" bindtap="tab" data-index="{{index}}">
  26. {{item}}
  27. </view>
  28. </view>
  29. <view class="course-content">
  30. <view class="error answer-content" wx:for="{{mistakesData}}" wx:key="index">
  31. <image class="questions" src="{{item.questions.img}}"></image>
  32. <view class="answer {{flag[index] ? 'unfold' : ''}}" animation="{{flag[index]? animationData : ''}}">
  33. <view class="answer-txt">
  34. <text>你的答案:{{item.userQuestionResult.answer === "0" ? '不知道' : item.userQuestionResult.answer}}</text>
  35. <text>{{item.questions.answer == item.userQuestionResult.answer ? "" : "(错误)"}}</text>
  36. </view>
  37. <!-- 错题点击事件 bindtap="particulars" 没有解析暂时去掉 -->
  38. <view class="analysis" data-flag="{{flag[index]}}" data-index="{{index}}">
  39. <image class="analysis-img" src="../image/analysis_bottom.png" wx:if="{{!(flag[index])}}"></image>
  40. <image class="analysis-img-top" src="../image/analysis_top.png" wx:else></image>
  41. </view>
  42. </view>
  43. </view>
  44. <view wx:if="{{mistakesData.length == 0}}" class="noerr">
  45. 你真棒没有错题!
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </scroll-view>
  51. </view>
  52. <view hidden="{{flag}}">
  53. <dialog bindmyevent="jurisdiction"/>
  54. </view>
  55. </view>