single_subject_detail.wxml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!--pages/single_subject_detail/single_subject_detail.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class='tag'>
  6. <view class='tag-img' wx:if='{{homeworkList.length>0}}'>
  7. <view class='tag-img-head'>
  8. <view class='tag-img-head-span'></view>
  9. <view class='tag-img-head-txt'>
  10. <text>作业原图</text>
  11. <text class='tag-img-homeworkTime'>{{homeworkTime}}</text>
  12. </view>
  13. </view>
  14. <view class='tag-scroll-view'>
  15. <scroll-view scroll-x>
  16. <view class='scroll-view'>
  17. <view class='scroll-view-item' wx:for='{{homeworkList}}' wx:for-index='key' wx:key='key'>
  18. <image class='tag-img-list' mode="aspectFill" wx:if='{{item.photoKey}}' src="{{baseImgUrl + item.photoKey + thumbnail}}" data-images='{{homeworkList}}' data-index='{{key}}' data-url='photoKey' data-baseurl='{{baseImgUrl}}' bindtap='viewImageCtl'>
  19. <image class='scroll-view-mohu' src="{{item.status==1?'../../image/mohu.png':item.status==2?'../../image/bu_pai.png':item.status==3?'../../image/deng_ji.png':item.status==4?'../../image/bu_quan.png':'../../image/bu_pi_gai.png'}}" wx:if='{{item.status>0}}'></image>
  20. </image>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. </view>
  26. <view class='tag-img' wx:if='{{homeworkCommentList.length>0}}'>
  27. <view class='tag-img-head'>
  28. <view class='tag-img-head-span'></view>
  29. <view class='tag-img-head-txt'>作业标注</view>
  30. </view>
  31. <view class='tag-scroll-view'>
  32. <scroll-view scroll-x>
  33. <view class='scroll-view'>
  34. <view class='scroll-view-item' wx:for='{{homeworkCommentList}}' wx:for-index='key' wx:key='key'>
  35. <image class='tag-img-list' mode="aspectFill" wx:if='{{item.photoKey}}' src="{{baseImgUrl + item.photoKey + thumbnail}}" data-images='{{homeworkCommentList}}' data-index='{{key}}' data-url='photoKey' data-baseurl='{{baseImgUrl}}' bindtap='viewImageCtl'></image>
  36. <view class='tag-words' wx:if='{{item.isComposition==1}}' data-method='{{item.compositionCommentList}}' bindtap='getWords'>有作文评语</view>
  37. </view>
  38. </view>
  39. </scroll-view>
  40. </view>
  41. </view>
  42. <view class='tag-img' wx:if='{{wrongItemList.length>0||relateKnowledgeList.length>0}}' >
  43. <view class='tag-img-head'>
  44. <view class='tag-img-head-span'></view>
  45. <view class='tag-img-head-txt'>错题</view>
  46. </view>
  47. <view class='mistake' wx:if='{{relateKnowledgeList.length>0}}'>
  48. <view class='mistake-head'>
  49. <image class='mistake-head-img' src='../../image/cuo_ti.png'></image>
  50. <view class='mistake-head-txt'>错题知识点</view>
  51. </view>
  52. <view class='mistake-content'>
  53. <block wx:for='{{relateKnowledgeList}}' wx:key='index'>
  54. <view class='mistake-content-title'>
  55. <view class='mistake-content-title-head'>知识点{{index+1}}</view>
  56. <view class='mistake-content-title-tag' wx:if='{{item.module}}'>{{item.module}}</view>
  57. </view>
  58. <view class='mistake-content-item' wx:for='{{item.details}}' wx:for-item='val' wx:for-index='key' wx:key='key'>{{val}}</view>
  59. </block>
  60. <view wx:if='{{relateKnowledgeList.length==0}}'>无</view>
  61. </view>
  62. </view>
  63. <view class='error-new' wx:for='{{wrongItemList}}' wx:key='index'>
  64. <view class='mistake-head'>
  65. <image class='mistake-head-img' src='../../image/cuo_ti.png'></image>
  66. <view class='mistake-head-txt'>{{item.bookName}}</view>
  67. </view>
  68. <view class='mistake-content' wx:if='{{item.bookCourseList.length>0}}'>
  69. <block wx:for='{{item.bookCourseList}}' wx:for-item='val' wx:for-index='key' wx:key='key'>
  70. <view class='mistake-content-title'>
  71. <view class='mistake-content-title-head'>{{val.unit}}</view>
  72. <view class='mistake-content-title-tag' wx:if='{{val.period}}'>{{val.period}}</view>
  73. </view>
  74. <view class='mistake-content-item add-points' wx:for='{{val.questionList}}' wx:for-item='val1' wx:for-index='key1' wx:key='key1'>
  75. <text class='mistake-content-title-head'>{{key1+1}}</text>
  76. <!-- <text>{{val1}}</text> -->
  77. <text>第{{val1.bigQuestionIndex}}大题</text>
  78. <text>{{val1.smallQuestionIndex!=0||val1.spaceIndex?'(':''}}{{val1.smallQuestionIndex!=0?'第'+val1.smallQuestionIndex+'小题':''}}{{val1.smallQuestionIndex!=0&&val1.spaceIndex?'-':''}}</text>
  79. <text>{{val1.spaceIndex?'第'+val1.spaceIndex+'空':''}}{{val1.smallQuestionIndex!=0||val1.spaceIndex?')':''}}</text>
  80. </view>
  81. </block>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class='mistake-noData' wx:if='{{correctionStatus==0}}'>
  87. <image src='../../image/wei_pi_gai.png' class='mistake-noData-img'></image>
  88. </view>
  89. <view class='mistake-noData' wx:if='{{relateKnowledgeList.length==0 &&homeworkCommentList.length==0& wrongItemList.length==0&&!isMohu&&correctionStatus!=0&&correctionStatus!=7}}'>
  90. <image src='../../image/wu_cuo_ti.png' class='mistake-noData-img'></image>
  91. </view>
  92. <view class='mistake-noData' wx:if='{{correctionStatus==7}}'>
  93. <image src='../../image/wu_zhi_mian_zuo_ye.png' class='mistake-noData-img'></image>
  94. </view>
  95. <view class='total'>
  96. <view class='mistake' wx:if='{{unfinishedList.length>0}}'>
  97. <view class='mistake-head'>
  98. <image class='mistake-head-noImg' src='../../image/wei_wan_cheng.png'></image>
  99. <view class='mistake-head-txt'>未完成的内容</view>
  100. </view>
  101. <view class='mistake-content'>
  102. <view class='mistake-content-item' wx:for='{{unfinishedList}}' wx:key='index'>{{item}}</view>
  103. <view wx:if='{{unfinishedList.length==0}}'>无</view>
  104. </view>
  105. </view>
  106. </view>
  107. <template wx:if='{{homeworkList.length==0}}' is='nodata-three' ></template>
  108. </view>
  109. </view>