mistakes.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.title}}
  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" mode="widthFix" src="{{item.questions.img}}"></image>
  32. <view class="answer" >
  33. <image class="analysis-box" src="{{item.wrongQuestionsAnalysis.analysis}}" mode="widthFix" style="width: 660rpx; " hidden="{{!course[courseIndex].flag[index]}}"></image>
  34. <view class="answer-txt">
  35. <text>你的答案:{{item.userQuestionResult.answer === "0" ? '不知道' : item.userQuestionResult.answer}}</text>
  36. <text>{{item.questions.answer == item.userQuestionResult.answer ? "" : "(错误)"}}</text>
  37. </view>
  38. <view class="analysis" data-flag="{{course[courseIndex].flag[index]}}" data-index="{{index}}" bindtap="particulars">
  39. <image class="analysis-img" src="../image/analysis_bottom.png" wx:if="{{!course[courseIndex].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 class="mistakes-dialog" hidden='{{switchs}}'>
  56. <image class="error-questions" src="{{errorData.img}}" mode="widthFix"></image>
  57. <scroll-view scroll-y class='mistakes-dialog-scroll'>
  58. <image class="error-analysis" src="{{errorData.analysis}}" mode="widthFix"></image>
  59. </scroll-view>
  60. <image class="close" src="../image/close.png" bindtap='closeDialog'></image>
  61. </view>
  62. </view>