subject_detail.wxml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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' wx:if='{{homeworkCommentList.length>0}}'>
  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' wx:if='{{homeworkCommentList.length>0}}'>
  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?'../../assets/mo_hu2.png':item.status==2?'../../assets/bu_pai2.png':item.status==3?'../../assets/deng_ji2.png':item.status==4?'../../assets/bu_quan2.png':'../../assets/bu_pi_gai.png'}}" wx:if='{{item.status>0}}'></image>
  20. </image>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. <view wx:if='{{homeworkCommentList.length==0}}'>
  26. <view class='img-style' wx:for='{{homeworkList}}' wx:for-index='key' wx:key='key'>
  27. <image class='img-style-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'>
  28. <image class='scroll-view-mohu' src="{{item.status==1?'../../assets/mo_hu2.png':item.status==2?'../../assets/bu_pai2.png':item.status==3?'../../assets/deng_ji2.png':'../../assets/bu_quan2.png'}}" wx:if='{{item.status>0}}'></image>
  29. </image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class='tag-img' wx:if='{{homeworkCommentList.length>0}}'>
  34. <view class='tag-img-head'>
  35. <view class='tag-img-head-span'></view>
  36. <view class='tag-img-head-txt'>作业标注</view>
  37. </view>
  38. <view class='tag-scroll-view'>
  39. <scroll-view scroll-x>
  40. <view class='scroll-view'>
  41. <view class='scroll-view-item' wx:for='{{homeworkCommentList}}' wx:for-index='key' wx:key='key'>
  42. <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' >
  43. </image>
  44. <view class='tag-words' wx:if='{{item.isComposition==1}}' data-url="remark" data-method='{{({compositionCommentModuleList:item.compositionCommentModuleList})}}' bindtap="navigateCtl">有作文评语</view>
  45. </view>
  46. </view>
  47. </scroll-view>
  48. </view>
  49. </view>
  50. <view class='tag-img' wx:if='{{wrongItemList.length>0||relateKnowledgeList.length>0}}' >
  51. <view class='tag-img-head'>
  52. <view class='tag-img-head-span'></view>
  53. <view class='tag-img-head-txt'>错题</view>
  54. </view>
  55. <view class='mistake' wx:if='{{relateKnowledgeList.length>0}}'>
  56. <view class='mistake-head'>
  57. <image class='mistake-head-img' src='../../assets/cuo_ti.png'></image>
  58. <view class='mistake-head-txt'>错题知识点</view>
  59. </view>
  60. <view class='mistake-content'>
  61. <block wx:for='{{relateKnowledgeList}}' wx:key='index'>
  62. <view class='mistake-content-title'>
  63. <view class='mistake-content-title-head'>知识点{{index+1}}</view>
  64. <view class='mistake-content-title-tag' wx:if='{{item.module}}'>{{item.module}}</view>
  65. </view>
  66. <view class='mistake-content-item' wx:for='{{item.details}}' wx:for-item='val' wx:for-index='key' wx:key='key'>{{val}}</view>
  67. </block>
  68. <view wx:if='{{relateKnowledgeList.length==0}}'>无</view>
  69. </view>
  70. </view>
  71. <view class='error-new' wx:for='{{wrongItemList}}' wx:key='index'>
  72. <view class='mistake-head'>
  73. <image class='mistake-head-img' src='../../assets/cuo_ti.png'></image>
  74. <view class='mistake-head-txt'>{{item.bookName}}</view>
  75. </view>
  76. <view class='mistake-content' wx:if='{{item.bookCourseList.length>0}}'>
  77. <block wx:for='{{item.bookCourseList}}' wx:for-item='val' wx:for-index='key' wx:key='key'>
  78. <view class='mistake-content-title'>
  79. <view class='mistake-content-title-head'>{{val.unit}}</view>
  80. <view class='mistake-content-title-tag' wx:if='{{val.period}}'>{{val.period}}</view>
  81. </view>
  82. <view class='mistake-content-item add-points' wx:for='{{val.questionList}}' wx:for-item='val1' wx:for-index='key1' wx:key='key1'>
  83. <text class='mistake-content-title-head'>{{key1+1}}</text>
  84. <!-- <text>{{val1}}</text> -->
  85. <text>第{{val1.bigQuestionIndex}}大题</text>
  86. <text>{{val1.smallQuestionIndex!=0||val1.spaceIndex?'(':''}}{{val1.smallQuestionIndex!=0?'第'+val1.smallQuestionIndex+'小题':''}}{{val1.smallQuestionIndex!=0&&val1.spaceIndex?'-':''}}</text>
  87. <text>{{val1.spaceIndex?'第'+val1.spaceIndex+'空':''}}{{val1.smallQuestionIndex!=0||val1.spaceIndex?')':''}}</text>
  88. </view>
  89. </block>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class='mistake-noData' wx:if='{{correctionStatus==0&&homeworkCommentList.length==0}}'>
  95. <image src='../../assets/wei_pi_gai.png' class='mistake-noData-img'></image>
  96. </view>
  97. <view class='mistake-noData' wx:if='{{relateKnowledgeList.length==0 &&homeworkCommentList.length==0& wrongItemList.length==0&&correctionStatus==0&&correctionStatus!=7}}'>
  98. <image src='../../assets/wu_cuo_ti.png' class='mistake-noData-img'></image>
  99. </view>
  100. <view class='total'>
  101. <view class='mistake' wx:if='{{unfinishedList.length>0}}'>
  102. <view class='mistake-head'>
  103. <image class='mistake-head-noImg' src='../../assets/wei_wan_cheng.png'></image>
  104. <view class='mistake-head-txt'>未完成的内容</view>
  105. </view>
  106. <view class='mistake-content'>
  107. <view class='mistake-content-item' wx:for='{{unfinishedList}}' wx:key='index'>{{item}}</view>
  108. <view wx:if='{{unfinishedList.length==0}}'>无</view>
  109. </view>
  110. </view>
  111. </view>
  112. <template wx:if='{{homeworkList.length==0}}' is='nodata' data='{{...nodata.nodataObj}}'></template>
  113. </view>
  114. </view>