learning_report.wxml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <!--pages/learning_report/learning_report.wxml-->
  2. <import src="../../templates/footer_parent/footer.wxml" />
  3. <import src="../../templates/nodata/nodata.wxml" />
  4. <view class='container' wx:if='{{navList[navIndex].isLoaded}}'>
  5. <view class='wrapper pt pb' id="wrapper" wx:if='{{!isServe}}'>
  6. <!-- 头部导航 -->
  7. <view class='fixed'>
  8. <view class="fixed-items">
  9. <view class='fixed-item {{navIndex == index ? "fixed-item-active" : ""}}' wx:for='{{navList}}' wx:key='index' data-index='{{index}}' bindtap='selectNavIndexCtl'>{{item.text}}</view>
  10. </view>
  11. </view>
  12. <!-- 周报 -->
  13. <block wx:if='{{navIndex == 0}}'>
  14. <!-- 周报无数据的情况(目前只有科目列表一种判断,前端写死,不会出现这种情况,这是为了后续做后台动态数据导入造成的情况) -->
  15. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{navList[navIndex].subjectList.length == 0}}'></template>
  16. <block wx:else>
  17. <!-- 周报科目列表 -->
  18. <view class='nav'>
  19. <view class='nav-items'>
  20. <view class='nav-item {{index == navList[navIndex].subjectIndex ? "nav-item-active" : ""}}' wx:for='{{navList[navIndex].subjectList}}' wx:key='index' data-index='{{index}}' bindtap='selectSubjectIndexCtl'>{{item.subject}}</view>
  21. </view>
  22. </view>
  23. <!-- 周报单科无数据的情况 -->
  24. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{!navList[navIndex].subjectList[navList[navIndex].subjectIndex].learningScore && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointProportionList.length && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].otherKnowledgePointProportionList.length && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointMasteryList.length}}'></template>
  25. <block wx:else>
  26. <!-- 周报头部 -->
  27. <view class='list' >
  28. <view class="li-section">
  29. <view class="li-text-title text-center">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].subject || ''}}学习得分</view>
  30. <view class="li-text-large text-center">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].learningScore || 0}}</view>
  31. <view class="li-text">
  32. <text class="text-gray">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].subject || ''}}的学习掌握情况</text>
  33. <text class="text-red">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointMasteryDetail}}</text>
  34. <text class="text-gray">,一共学习</text>
  35. <text class="text-red text-decoration" bindtap="pageScrollToBottom">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].totalKnowledgeNum}}</text>
  36. <text class="text-gray" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGoodNumber || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGeneralNumber || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointPoorNumber}}'>个知识点,其中</text>
  37. <text class="text-gray" wx:else>个知识点</text>
  38. <block wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGoodNumber}}'>
  39. <text class="text-red text-decoration" bindtap="pageScrollToBottom">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGoodNumber}}</text>
  40. <text class="text-gray">个知识点掌握良好</text>
  41. </block>
  42. <block wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGeneralNumber}}'>
  43. <text class="text-gray">,</text>
  44. <text class="text-red text-decoration" bindtap="pageScrollToBottom">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointGeneralNumber}}</text>
  45. <text class="text-gray">个知识点掌握不牢固</text>
  46. </block>
  47. <block wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointPoorNumber}}'>
  48. <text class="text-gray">,</text>
  49. <text class="text-red text-decoration" bindtap="pageScrollToBottom">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointPoorNumber}}</text>
  50. <text class="text-gray">个知识点没有掌握</text>
  51. </block>
  52. <text class="text-gray">。</text>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 周报知识点占比及其其他知识点展示 -->
  57. <view class="list" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointProportionList.length || navList[navIndex].subjectList[navList[navIndex].subjectIndex].otherKnowledgePointProportionList.length}}'>
  58. <block wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePointProportionList.length}}'>
  59. <view class="li-label">
  60. <text class="text-gray">一共学习了</text>
  61. <text class="text-red">{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].totalKnowledgeNum}}</text>
  62. <text class="text-gray">个知识点</text>
  63. </view>
  64. <ff-canvas id="knowledgePointRingCanvas" opts="{{ opts }}"></ff-canvas>
  65. <view class="li-text text-label text-center">知识点占比</view>
  66. </block>
  67. <view class="li-study" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].otherKnowledgePointProportionList.length}}'>
  68. <view class='li-study-area'>
  69. <view class='li-study-area-title'>
  70. <image class='li-study-icon-3' src='../../image/wei_zhi_shi_dian.png'></image>
  71. <text class='li-study-text-gray'>其他包含的知识点</text>
  72. </view>
  73. <view class='li-study-area-content li-study-area-content-row'>
  74. <view class="li-study-btn-3" wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].otherKnowledgePointProportionList}}' wx:key='{{index}}'>{{item.knowledgeName}}</view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 周报知识点掌握情况 -->
  80. <view class="list" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].moduleList.length}}'>
  81. <block wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].moduleList}}' wx:key='{{index}}'>
  82. <view class="li-label">
  83. <text class="text-black">{{item.module}}-各知识点的掌握情况</text>
  84. </view>
  85. <view class="li-items" wx:if='{{item.knowledgePointMasteryList.length > 0}}'>
  86. <view class="li-item" wx:for='{{item.knowledgePointMasteryList}}' wx:for-item="x" wx:for-index="y" wx:key='{{y}}'>
  87. <view class="li-item-text text-gray">{{x.knowledgeName}}</view>
  88. <view class="li-item-row">
  89. <view class="li-item-flex">
  90. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 >= 85}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{greenRGB}}, .3), rgba({{greenRGB}}, 1));"></view>
  91. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 >= 60&&x.mastery * 100<85}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{yellowRGB}}, .3), rgba({{yellowRGB}}, 1));"></view>
  92. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 <60}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{redRGB}}, .3), rgba({{redRGB}}, 1));"></view>
  93. <!-- <view class="li-item-flex-progress" style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{x.mastery * 100 >= 85 ? greenRGB : x.mastery * 100 >= 60 ? yellowRGB : redRGB}}, .3), rgba({{x.mastery * 100 >= 85 ? greenRGB : item.mastery * 100 >= 60 ? yellowRGB : redRGB}}, 1));"></view> -->
  94. </view>
  95. <view class="li-item-text {{~~(x.mastery * 100) <= 65 ? 'text-red' : 'text-black'}}">{{~~(x.mastery * 100)}}%</view>
  96. </view>
  97. </view>
  98. </view>
  99. </block>
  100. </view>
  101. </block>
  102. </block>
  103. </block>
  104. <!-- 月报 -->
  105. <block wx:elif='{{navIndex == 1}}'>
  106. <!-- 月报无数据 -->
  107. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{!navList[navIndex].subjectList.length && !navList[navIndex].learningScore && !navList[navIndex].lastMonth && !navList[navIndex].transcendedStudentProportion && !navList[navIndex].increasedScore}}'></template>
  108. <block wx:else>
  109. <!-- 月报头部-得分 -->
  110. <view class='list' >
  111. <view class="li-section">
  112. <view class="li-text-title text-center" wx:if='{{navList[navIndex].learningScore>0}}'>{{navList[navIndex].lastMonth || ''}}月得分</view>
  113. <view class="li-text-large text-center" wx:if='{{navList[navIndex].learningScore>0}}'>{{navList[navIndex].learningScore || 0}}</view>
  114. <view class="li-text text-center" wx:if='{{navList[navIndex].transcendedStudentProportion*100>0}}'>
  115. <text class="text-gray">{{navList[navIndex].lastMonth || ''}}月的学习得分超过了</text>
  116. <text class="text-red">{{~~((navList[navIndex].transcendedStudentProportion || 0) * 100)}}%</text>
  117. <text class="text-gray">的同年级学生!</text>
  118. </view>
  119. <view class="li-text text-center">
  120. <text class="text-gray">{{navList[navIndex].lastMonth || ''}}月学习得分比上个月</text>
  121. <text class="text-gray" wx:if='{{navList[navIndex].increasedScore!=0}}'>{{navList[navIndex].increasedScore < 0 ? '降低' : '提高'}}了</text>
  122. <text class="text-gray" wx:if='{{navList[navIndex].increasedScore==0}}'>没有提升</text>
  123. <text class="text-red" wx:if='{{navList[navIndex].increasedScore!=0}}'>{{navList[navIndex].increasedScore < 0 ? -navList[navIndex].increasedScore : navList[navIndex].increasedScore || 0}}分</text>
  124. <text class="text-gray">,继续加油!</text>
  125. </view>
  126. </view>
  127. </view>
  128. <!-- 月报段落-平均学习时间 -->
  129. <view class='list' >
  130. <view class="li-section">
  131. <view class="li-text-title text-center">{{navList[navIndex].lastMonth || ''}}月平均每日学习时间</view>
  132. <view class="li-text-large text-center">
  133. <text class="li-text-large">{{navList[navIndex].averageUsedTime || 0}}</text>
  134. <text class="li-text-title">分钟</text>
  135. </view>
  136. <view class="li-progress">
  137. <view class="li-progress-active" style="width: {{(navList[navIndex].averageUsedTime > 180 ? 180 : navList[navIndex].averageUsedTime || 0) / 180 * 100}}%; background: linear-gradient(90deg, rgba(96, 133, 234, .3), rgba(96, 133, 234, 1));"></view>
  138. </view>
  139. <view class="li-text">
  140. <text class="text-gray">作业时间越长,不代表学习效 果越好。如果孩子每天作业用时超过</text>
  141. <text class="text-red">90</text>
  142. <text class="text-gray">分钟,家长需要关注孩子的时间管理情况哦!</text>
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 月报无科目列表 -->
  147. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{navList[navIndex].subjectList.length == 0}}'></template>
  148. <block wx:else>
  149. <!-- 学期科目列表 -->
  150. <view class='nav'>
  151. <view class='nav-items'>
  152. <view class='nav-item {{index == navList[navIndex].subjectIndex ? "nav-item-active" : ""}}' wx:for='{{navList[navIndex].subjectList}}' wx:key='index' data-index='{{index}}' bindtap='selectSubjectIndexCtl'>{{item.subject}}</view>
  153. </view>
  154. </view>
  155. <!-- 月报单科无数据 -->
  156. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{!navList[navIndex].subjectList[navList[navIndex].subjectIndex].learnedUnitList.length && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].weakKnowledgePointMasteryList.length}}'></template>
  157. <block wx:else>
  158. <view class="list">
  159. <view class="li-label-1" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].learnedUnitList.length}}'>
  160. <image class="li-label-image" src="../../image/yue_bao_icon.png"></image>
  161. <text class="text-blue">{{navList[navIndex].lastMonth || ''}}月份学习了</text>
  162. <text class="text-blue" wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].learnedUnitList}}' wx:key='{{index}}'>{{item.unitName || ''}}、</text>
  163. <text class="text-blue">看看还有哪些知识点需要加强。</text>
  164. </view>
  165. <!-- 周报知识点掌握情况 -->
  166. <view class="list" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].moduleList.length}}'>
  167. <block wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].moduleList}}' wx:key='{{index}}'>
  168. <view class="li-label">
  169. <text class="text-black">{{item.module}}-各知识点的掌握情况</text>
  170. </view>
  171. <view class="li-items" wx:if='{{item.knowledgePointMasteryList.length > 0}}'>
  172. <view class="li-item" wx:for='{{item.knowledgePointMasteryList}}' wx:for-item="x" wx:for-index="y" wx:key='{{y}}'>
  173. <view class="li-item-text text-gray">{{x.knowledgeName}}</view>
  174. <view class="li-item-row">
  175. <view class="li-item-flex">
  176. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 >= 85}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{greenRGB}}, .3), rgba({{greenRGB}}, 1));"></view>
  177. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 >= 60&&x.mastery * 100<85}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{yellowRGB}}, .3), rgba({{yellowRGB}}, 1));"></view>
  178. <view class="li-item-flex-progress" wx:if='{{x.mastery * 100 <60}}' style="width: {{x.mastery * 100}}%; background: linear-gradient(90deg, rgba({{redRGB}}, .3), rgba({{redRGB}}, 1));"></view>
  179. </view>
  180. <view class="li-item-text {{~~(x.mastery * 100) <= 65 ? 'text-red' : 'text-black'}}">{{~~(x.mastery * 100)}}%</view>
  181. </view>
  182. </view>
  183. </view>
  184. </block>
  185. </view>
  186. <!-- <view class="li-items" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].weakKnowledgePointMasteryList.length}}'>
  187. <view class="li-item" wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].weakKnowledgePointMasteryList}}' wx:key='{{index}}'>
  188. <view class="li-item-text text-gray" wx:if='{{item.knowledgeName}}'>{{item.knowledgeName}}</view>
  189. <view class="li-item-row">
  190. <view class="li-item-flex">
  191. <view class="li-item-flex-progress" style="width: {{item.mastery * 100}}%; background: linear-gradient(90deg, rgba({{item.mastery * 100 >= 85 ? greenRGB : item.mastery * 100 >= 60 ? yellowRGB : redRGB}}, .3), rgba({{item.mastery * 100 >= 85 ? greenRGB : item.mastery * 100 >= 60 ? yellowRGB : redRGB}}, 1));"></view>
  192. </view>
  193. <view class="li-item-text {{~~(item.mastery * 100) <= 65 ? 'text-red' : 'text-black'}}">{{~~(item.mastery * 100)}}%</view>
  194. </view>
  195. </view>
  196. </view> -->
  197. </view>
  198. </block>
  199. </block>
  200. </block>
  201. </block>
  202. <!-- 学期 -->
  203. <block wx:elif='{{navIndex == 2}}'>
  204. <!-- 学期无数据 -->
  205. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{!navList[navIndex].subjectList.length && !navList[navIndex].studentImg && !navList[navIndex].labels.length}}'></template>
  206. <block wx:else>
  207. <!-- 学期头部展示-头像-标签 -->
  208. <view class='header'>
  209. <image class='header-bg' src='../../image/zhi_zhuo_wang.png'></image>
  210. <view class='header-content'>
  211. <image class='header-icon' src='{{navList[navIndex].studentImg ? baseImgUrl + navList[navIndex].studentImg + thumbnail : "../../image/default_headicon4.png"}}'></image>
  212. <view class='header-items' wx:if='{{navList[navIndex].labels.length > 0}}'>
  213. <view class='header-item {{index % 4 == 1 ? "header-item-red" : index % 4 == 2 ? "header-item-yellow" : index % 4 == 3 ? "header-item-green" : "header-item-blue"}}' wx:for='{{navList[navIndex].labels}}' wx:key='{{index}}'>{{item}}</view>
  214. </view>
  215. </view>
  216. </view>
  217. <!-- 学期无科目列表 -->
  218. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{navList[navIndex].subjectList.length == 0}}'></template>
  219. <block wx:else>
  220. <!-- 学期科目列表 -->
  221. <view class='nav'>
  222. <view class='nav-items'>
  223. <view class='nav-item {{index == navList[navIndex].subjectIndex ? "nav-item-active" : ""}}' wx:for='{{navList[navIndex].subjectList}}' wx:key='{{index}}' data-index='{{index}}' bindtap='selectSubjectIndexCtl'>{{item.subject}}</view>
  224. </view>
  225. </view>
  226. <!-- 学期单科无数据 -->
  227. <template is='nodata-three' data='{{...navList[navIndex].nodataObj}}' wx:if='{{!navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePoint && !navList[navIndex].subjectList[navList[navIndex].subjectIndex].homeworkAccuracyRateList}}'></template>
  228. <view class='list' wx:else>
  229. <!-- 七天正确率 -->
  230. <!-- <view class="li-study" wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].homeworkAccuracyRateList.length}}'>
  231. <view class='li-study-title'>近七天作业正确率</view>
  232. <view class="li-study-column">
  233. <view class="li-study-column-item" wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].homeworkAccuracyRateList}}' wx:key='{{index}}'>
  234. <view class="li-study-column-text">{{item.rate >= 0 ? item.rate + '%': '无作业'}}</view>
  235. <view class="li-study-column-progress" style="height: {{item.rate / 100 * 400}}rpx; background: linear-gradient(0deg, rgba({{item.rate >= 85 ? greenRGB : item.rate >= 60 ? yellowRGB : redRGB}}, .3), rgba({{item.rate >= 85 ? greenRGB : item.rate >= 60 ? yellowRGB : redRGB}}, 1));"></view>
  236. <view class="li-study-column-text">{{item.date}}</view>
  237. </view>
  238. </view>
  239. </view> -->
  240. <!-- 知识维度 -->
  241. <view class='li-study' wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.dimension.length || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.leaningSuggest.length || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.diagnostic}}'>
  242. <block wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.dimension.length || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.thisMonthTrueCount.length || navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.overallAvgTrueCount.length}}'>
  243. <view class='li-study-title'>知识纬度</view>
  244. <view class='li-study-chart'>
  245. <canvas class='li-study-canvas' canvas-id='knowledgeRadarCanvas'></canvas>
  246. <view class='li-study-chart-items'>
  247. <view class='li-study-chart-item' wx:for='{{navList[navIndex].accuracyArray}}' wx:for-item='val' wx:for-index='key' wx:key='{{key}}'>
  248. <text class='li-study-chart-item-circle' style='background: {{val.color}};'></text>
  249. <text class='li-study-chart-item-text' style='color: {{val.color}};'>{{val.name}}</text>
  250. </view>
  251. </view>
  252. </view>
  253. </block>
  254. <view class='li-study-area'>
  255. <view class='li-study-area-title'>
  256. <image class='li-study-icon-1' src='../../image/zhen_duan_shuo_ming.png'></image>
  257. <text class='li-study-text-gray'>诊断说明</text>
  258. </view>
  259. <view class='li-study-area-content' wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.diagnostic}}'>
  260. <view class='li-study-text-black'>{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.diagnostic}}</view>
  261. </view>
  262. <view class='li-study-area-content' wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.leaningSuggest.length > 0}}'>
  263. <view class='li-study-text-gray-small' bindtap="toggleLeaningSuggestCtl">
  264. <text>学习建议</text>
  265. <view class="li-study-arrow {{navList[navIndex].subjectList[navList[navIndex].subjectIndex].isShowLeaningSuggest ? 'li-study-arrow-active': ''}}"></view>
  266. </view>
  267. <view class='li-study-area-items' wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].isShowLeaningSuggest && navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.leaningSuggest.length > 0}}'>
  268. <view class='li-study-area-item' wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledge.leaningSuggest}}' wx:key='{{index}}'>
  269. <view class='li-study-area-item-title'>
  270. <text class='li-study-btn-1'>建议{{index + 1}}</text>
  271. <text class='li-study-text-red-small'>{{item.title}}</text>
  272. </view>
  273. <view class='li-study-text-black'>{{item.content}}</view>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. </view>
  279. <!-- 知识点掌握情况 -->
  280. <view class='li-study' wx:if='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePoint.length > 0}}'>
  281. <view class='li-study-title'>知识点掌握情况</view>
  282. <view class='li-study-area' wx:for='{{navList[navIndex].subjectList[navList[navIndex].subjectIndex].knowledgePoint}}' wx:key='{{index}}' data-index='{{index}}' bindtap="toggleShowNoknowledgePointCtl">
  283. <view class='li-study-area-row'>
  284. <view class='li-study-area-flex'>
  285. <text class='li-study-text-black'>{{item.style}}错误率</text>
  286. <text class='li-study-text-red-small'>{{item.wrongNum || 0}}</text>
  287. <text class='li-study-text-gray-small'>/{{item.totalNum || 0}}</text>
  288. </view>
  289. <canvas class='li-study-ring' canvas-id='knowledgePointMasteryRingCanvas-{{index}}'></canvas>
  290. </view>
  291. <view class='li-study-area-content' wx:if='{{item.noKnowledgePoint.length > 0 && item.isShowNoknowledgePoint}}'>
  292. <view class='li-study-area-flex'>
  293. <text class='li-study-btn-2'></text>
  294. <text class='li-study-text-red-small'>未掌握的知识点</text>
  295. </view>
  296. <view class='li-study-area-items'>
  297. <view class='li-study-area-item' wx:for='{{item.noKnowledgePoint}}' wx:for-item='val' wx:for-index='key' wx:key='{{key}}'>
  298. <view class='li-study-text-gray-small'>知识点{{key + 1}}</view>
  299. <view class='li-study-text-black'>{{val.name}}</view>
  300. <block wx:if='{{val.celebrities.length > 0}}'>
  301. <view>
  302. <text class='li-study-btn-1'>名师点拨</text>
  303. </view>
  304. <view class='li-study-area-item-li' wx:for='{{val.celebrities}}' wx:for-item='i' wx:for-index='j' wx:key='{{j}}'>
  305. <view class='li-study-area-item-li-label li-study-text-gray-small'>{{j + 1}}</view>
  306. <view class='li-study-area-item-li-flex li-study-text-black-small'>{{i}}</view>
  307. </view>
  308. </block>
  309. </view>
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. </view>
  315. </block>
  316. </block>
  317. </block>
  318. </view>
  319. <view class='li-noData' wx:else>
  320. <image src='../../image/wei_kai_tong.png' class='li-noData-img'></image>
  321. <view>未开通此服务</view>
  322. </view>
  323. <template is='footer' data='{{...footerData}}'></template>
  324. </view>