homework_report.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <!--pages/homework_report/homework_report.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='ol'>
  5. <view class='li' wx:if='{{abstractSituation.subjectTaskList.length>0}}'>
  6. <view class='li-title'>
  7. <view class='li-item' wx:for='{{abstractSituation.subjectTaskList}}' wx:key='index' wx:if='{{index<=2}}'>
  8. <view class='li-item-text'>{{item.subject}}</view>
  9. </view>
  10. </view>
  11. <view class='li-content'>
  12. <view class='li-content-item' wx:for='{{abstractSituation.subjectTaskList}}' wx:key='index' wx:if='{{index<=2}}'>
  13. <image src="{{item.subject=='语文'?yuwen:item.subject=='数学'?math:English}}" class='li-content-img'></image>
  14. <view class='li-content-times'>{{item.status==1?'无作业':item.costTime==0?'无计时':item.costTime}} {{item.status!=1&&item.costTime!=0?'分钟':''}}</view>
  15. <view class='li-content-plan'>
  16. <image class='li-content-plan-img' src="{{item.status!=1?labelRed:labelGay}}"></image>
  17. <view class="li-content-plan-text {{item.status==1?'li-gay':''}}">{{item.status==1?'未布置作业':item.status==2?'部分完成':item.status==3?'全部完成':'无纸面作业'}}</view>
  18. <view class='li-content-plan-homeworkTime'>{{item.homeworkTime?item.homeworkTime:'无作业时间'}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class='dl' wx:if='{{abstractSituation.teacherAdvice}}'>
  24. <view class='dl-head'>
  25. <image class='dl-head-img' src='../../image/lao_shu_ping_yu.png'></image>
  26. <view class='dl-head-title'>老师评语</view>
  27. </view>
  28. <view class='dl-comment'>
  29. {{abstractSituation.teacherAdvice}}
  30. </view>
  31. <!-- <view class='dl-footer'>
  32. <view class='dl-footer-names'>{{abstractSituation.teacherName}}</view>
  33. <image class='dl-footer-img' wx:if='{{abstractSituation.teacherImg}}' src='{{baseImgUrl+abstractSituation.teacherImg}}'></image>
  34. </view> -->
  35. <image src='../../image/hua_ping.png' class='dl-image'></image>
  36. </view>
  37. <!-- 语音 -->
  38. <view class='li-video' wx:if='{{voiceKeyList.length>0}}'>
  39. <view class='li-video-voice' wx:for='{{voiceKeyList}}' wx:key='index' data-index="{{index}}" bindtap='audioCtl'>
  40. <view class='li-video-voice-red' style='width:{{item.duration*1.4+16}}%'>
  41. <image class='li-video-btn' src='../../image/yu_yin_{{item.voiceType == 1?imgNum:3}}.png'></image>
  42. <view class='li-video-gay'>{{item.duration}}″</view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class='table' wx:if='{{learningState.length>0}}'>
  47. <view class='table-title'>今日学习状态</view>
  48. <view class='table-list'>
  49. <view class='table-list-item' wx:for='{{learningState}}' wx:key='index'>
  50. <view class='table-list-item-plan'>{{item.type=='1'?'欠佳':item.type=='2'?'一般':'好'}}</view>
  51. <view class='table-list-item-dendrogram'>
  52. <view class="{{item.type=='1'?'table-notGood':item.type=='2'?'table-notBad':'table-good'}}"></view>
  53. </view>
  54. <view class='table-list-item-plan'>{{item.name}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class='tag'>
  60. <view class='tag-subject'>
  61. <view class='tag-guide'>
  62. <view class="tag-btn {{index==idx?'tag-btn-active':''}}" wx:for='{{correctList}}' wx:key='index' data-idx='{{index}}' bindtap='cutItems'>{{item.subject}}</view>
  63. </view>
  64. </view>
  65. <view class='tag-img' wx:if='{{list.homeworkList.length>0}}'>
  66. <view class='tag-img-pic'>
  67. <view>
  68. <view class='tag-img-head-span'></view>
  69. <view class='tag-img-head-txt'>作业原图</view>
  70. </view>
  71. <view class='tag-right' data-url='classroom_assessment' data-method='{{({teacherId:list.correctTeacherId, homeworkId:list.homeworkId,isClass:false})}}' bindtap='navigateCtl' wx:if='{{isMainParent}}'>
  72. <text>评价批改老师</text>
  73. <image class='tag-tips' src='../../image/right_zy7@2x.png'></image>
  74. </view>
  75. </view>
  76. <view class='tag-scroll-view'>
  77. <scroll-view scroll-x>
  78. <view class='scroll-view'>
  79. <view class='scroll-view-item' wx:for='{{list.homeworkList}}' wx:for-index='key' wx:key='key'>
  80. <image class='tag-img-list' mode="aspectFill" wx:if='{{item.photoKey}}' src="{{baseImgUrl + item.photoKey + thumbnail}}" data-images='{{list.homeworkList}}' data-index='{{key}}' data-url='photoKey' data-baseurl='{{baseImgUrl}}' bindtap='viewImageCtl'>
  81. <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>
  82. </image>
  83. </view>
  84. </view>
  85. </scroll-view>
  86. </view>
  87. </view>
  88. <!-- 作业原图 -->
  89. <view class='tag-img' wx:if='{{list.homeworkCommentList.length>0}}'>
  90. <view class='tag-img-head'>
  91. <view class='tag-img-head-span'></view>
  92. <view class='tag-img-head-txt'>作业标注</view>
  93. </view>
  94. <view class='tag-scroll-view'>
  95. <scroll-view scroll-x>
  96. <view class='scroll-view'>
  97. <view class='scroll-view-item' wx:for='{{list.homeworkCommentList}}' wx:for-index='index' wx:key='index'>
  98. <image class='tag-img-list' data-images="{{list.homeworkCommentList}}" wx:if='{{item.photoKey}}' data-url='photoKey' data-index="{{index}}" data-baseurl="{{baseImgUrl}}" mode="aspectFill" src='{{baseImgUrl+item.photoKey+thumbnail}}' bindtap="viewImageCtl"></image>
  99. <view class='tag-words' wx:if='{{item.isComposition==1}}' data-method='{{({compositionCommentModuleList:item.compositionCommentModuleList,homeworkComment:item.homeworkComment})}}' bindtap='getWords'>有评语</view>
  100. </view>
  101. </view>
  102. </scroll-view>
  103. </view>
  104. </view>
  105. <!-- 错题 -->
  106. <view class='error' wx:if='{{list.wrongItemList.length>0||list.relateKnowledgeList.length>0}}'>
  107. <view class='tag-img-head'>
  108. <view class='tag-img-head-span'></view>
  109. <view class='tag-img-head-txt'>错题</view>
  110. </view>
  111. <!-- 错题知识点 -->
  112. <view class='mistake' wx:if='{{list.relateKnowledgeList.length>0}}'>
  113. <view class='mistake-head'>
  114. <image class='mistake-head-img' src='../../image/zuo_yue_biao_ji.png'></image>
  115. <view class='mistake-head-txt'>错题知识点</view>
  116. </view>
  117. <view class='mistake-content' wx:if='{{list.relateKnowledgeList.length>0}}'>
  118. <block wx:for='{{list.relateKnowledgeList}}' wx:key='index'>
  119. <view class='mistake-content-title'>
  120. <view class='mistake-content-title-head'>知识点{{index+1}}</view>
  121. <view class='mistake-content-title-tag' wx:if='{{item.module}}'>{{item.module}}</view>
  122. </view>
  123. <view class='mistake-content-item' wx:for='{{item.details}}' wx:for-item='val' wx:for-index='key' wx:key='key'>{{val}}</view>
  124. </block>
  125. <view wx:if='{{list.wrongItemList.relateKnowledgeList.length==0}}'>无</view>
  126. </view>
  127. </view>
  128. <!-- 新增知识点 -->
  129. <view class='mistake' wx:for='{{list.wrongItemList}}' wx:for-index='index' wx:key='index'>
  130. <view class='mistake-head'>
  131. <image class='mistake-head-img' src='../../image/cuo_ti.png'></image>
  132. <view class='mistake-head-txt'>{{item.bookName}}</view>
  133. </view>
  134. <view class='mistake-content' wx:if='{{item.bookCourseList.length>0}}' >
  135. <block wx:for='{{item.bookCourseList}}' wx:for-item='val' wx:for-index='key' wx:key='key'>
  136. <view class='mistake-content-title'>
  137. <view class='mistake-content-title-head'>{{val.unit}}</view>
  138. <view class='mistake-content-title-tag'>{{val.period}}</view>
  139. </view>
  140. <view class='mistake-content-item add-points' wx:for='{{val.questionList}}' wx:for-item='val2' wx:for-index='key2' wx:key='key2'>
  141. <text class='mistake-content-title-head'>{{key2+1}}</text>
  142. <!-- <text>{{val2}}</text> -->
  143. <text>第{{val2.bigQuestionIndex}}大题</text>
  144. <text>{{val2.smallQuestionIndex!=0||val2.spaceIndex?'(':''}}{{val2.smallQuestionIndex!=0?'第'+val2.smallQuestionIndex+'小题':''}}{{val2.smallQuestionIndex!=0&&val2.spaceIndex?'-':''}}</text>
  145. <text>{{val2.spaceIndex?'第'+val2.spaceIndex+'空':''}}{{val2.smallQuestionIndex!=0||val2.spaceIndex?')':''}}</text>
  146. </view>
  147. </block>
  148. <view wx:if='{{item.bookCourseList.length==0}}'>无</view>
  149. </view>
  150. </view>
  151. </view>
  152. <view class='mistake-noData' wx:if='{{list.relateKnowledgeList.length==0 && list.homeworkCommentList.length==0&& list.wrongItemList.length==0&&isMohu&&list.correctionStatus!=0&&list.correctionStatus!=7}}'>
  153. <image src='../../image/wu_cuo_ti.png' class='mistake-noData-img'></image>
  154. </view>
  155. <view class='mistake-noData' wx:if='{{list.correctionStatus==0}}'>
  156. <image src='../../image/wei_pi_gai.png' class='mistake-noData-img'></image>
  157. </view>
  158. <view class='mistake-noData' wx:if='{{list.correctionStatus==7}}'>
  159. <image src='../../image/wu_zhi_mian_zuo_ye.png' class='mistake-noData-img'></image>
  160. </view>
  161. </view>
  162. <view class='total'>
  163. <view class='mistake' wx:if='{{list.unfinishedList.length>0}}'>
  164. <view class='mistake-head'>
  165. <image class='mistake-head-noImg' src='../../image/wei_wan_cheng.png'></image>
  166. <view class='mistake-head-txt'>未完成的内容</view>
  167. </view>
  168. <view class='mistake-content'>
  169. <view class='mistake-content-item' wx:for='{{list.unfinishedList}}' wx:key='index'>{{item}}</view>
  170. <view wx:if='{{unfinishedList.length==0}}'>无</view>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>