detail.wxml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <import src="../template/cardShow.wxml" />
  2. <navigation-bar show="true" center="true" bindgetBarInfo="getBarInfo" left="true" background="{{Color.BackColor}}"
  3. color="#fff">
  4. <view slot="left" wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
  5. <view bindtap="onClose" class="square">退出练习</view>
  6. </view>
  7. <view slot="center" bindtap="showNumberContainner" class='panelNumber FlexRow'>
  8. <block wx:if="{{!Title}}">
  9. <view class="FlexColumn">
  10. <view class='panelNumber1'>{{NumberNew}}</view>
  11. <view hidden="{{TaskInfo.IsHistory || TaskInfo.IsReview}}" class='panelNumber2Line'
  12. style='background-color:{{Color.LineColor}};'></view>
  13. </view>
  14. <view class="FlexColumn">
  15. <view class='panelNumber1'>{{NumberHistory}}</view>
  16. <view hidden="{{TaskInfo.IsNew || TaskInfo.IsReview}}" class='panelNumber2Line'
  17. style='background-color:{{Color.LineColor}};'></view>
  18. </view>
  19. <view class="FlexColumn">
  20. <view class='panelNumber1'>{{NumberReview}}</view>
  21. <view hidden="{{TaskInfo.IsNew || TaskInfo.IsHistory}}" class='panelNumber2Line'
  22. style='background-color:{{Color.LineColor}};'></view>
  23. </view>
  24. <view class="FlexColumn">
  25. <view class='panelNumber2 panelNumber1'>{{NumberNew+NumberReview+NumberHistory}}</view>
  26. </view>
  27. </block>
  28. <block wx:if="{{Title}}">{{Title}}</block>
  29. </view>
  30. </navigation-bar>
  31. <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}}'
  32. bindtap='onShowAnswer' data-type="all">
  33. <!-- 练习中 -->
  34. <block wx:if="{{(NumberNew+NumberReview+NumberHistory)>0}}">
  35. <!-- 工具栏 -->
  36. <view class='panelTop FlexRow' style='background-color:{{Color.BackColor}};'>
  37. <view class='panelCancel FlexRow' catchtap='gotoCollect'>
  38. <view class='panelCancel0 FlexRow'>
  39. <image hidden='{{TaskInfo.IsCollect}}' src="../images/universalpic_star_gray_34x34.png"
  40. class='universalpic_star_gray_34x34' />
  41. <image hidden='{{!TaskInfo.IsCollect}}' src="../images/universalpic_star_tc0{{Color.ID}}_34x34.png"
  42. class='universalpic_star_gray_34x34' />
  43. </view>
  44. </view>
  45. <view class='panelCancel FlexRow' catchtap="gotoEdit">
  46. <view class='panelCancel0 FlexRow'>
  47. <image src="../images/universalpic_edit_gray_25x25.png" class='universalpic_edit_gray_25x25' />
  48. </view>
  49. </view>
  50. <view class='panelCancel FlexRow' catchtap='onPullDownRefresh' wx:if="{{IsShowAnswer[0]==1}}">
  51. <view class='panelCancel0 FlexRow'>
  52. <image src="../images/universalpic_han_gray_28x25.png" class='universalpic_han_gray_28x25' />
  53. </view>
  54. </view>
  55. <view class='panelCancel FlexRow' wx:if="{{IsShowAnswer[0]==0}}">
  56. <view class='panelCancel0 FlexRow'>
  57. <image src="../images/universalpic_han_fff20_28x25.png" class='universalpic_han_gray_28x25' />
  58. </view>
  59. </view>
  60. <view class='panelCancel FlexRow' catchtap='goto' data-url="../other/help?id=1&idchild=12">
  61. <view class='panelCancel0 FlexRow'>
  62. <image src="../images/universalpic_light_gray_20x28.png" class='universalpic_light_gray_20x28' />
  63. </view>
  64. </view>
  65. <view class='panelCancel FlexRow' catchtap='onMore'>
  66. <view class='panelCancel0 FlexRow'>
  67. <image src="../images/universalpic_wrench_gray_26x26.png" class='universalpic_wrench_gray_26x26' />
  68. </view>
  69. </view>
  70. <view class='panelCancel FlexRow' wx:if="{{CanUndo==0}}">
  71. <view class='panelCancel0 FlexRow'>
  72. <image src="../images/universalpic_undo_white_30p_26x20.png" class='universalpic_undo_white_30p_26x20' />
  73. </view>
  74. </view>
  75. <view class='panelCancel FlexRow' catchtap='gotoPrev' wx:if="{{CanUndo==1}}">
  76. <view class='panelCancel0 FlexRow'>
  77. <image src="../images/universalpic_undo_gray_26x20.png" class='universalpic_undo_white_30p_26x20' />
  78. </view>
  79. </view>
  80. </view>
  81. <view class="panelField10" style='background-color:{{Color.BackColor}};'></view>
  82. <template is="CardShow"
  83. data="{{Color:Color,Field:TaskInfo.ContentNew.Field,Tags:TaskInfo.ContentNew.Tags,IsShowAnswer:IsShowAnswer,TagWidth:TaskInfo.TagWidth,FontSize:TaskInfo.FontSize,TextSpace}}" />
  84. <view class="StopAudioPlay FlexRow" wx:if="{{IsAutoSound && IsAutoSoundStart}}"
  85. style="background-color:{{Color.BackColor3}};" catchtap="autoAudioPlayEnd">
  86. ■ 停止播放
  87. </view>
  88. <view class='footer0'></view>
  89. <!-- 下方按钮 -->
  90. <image wx:if="{{!IsIPad}}" class="footerShade" src="../images/study_learning_bgimage_tc0{{Color.ID}}.png" />
  91. <view class='footer'>
  92. <image wx:if="{{!IsIPad}}" class="footerImage" src="../images/study_learning_maskimage_tc0{{Color.ID}}.png" />
  93. <view wx:if="{{IsIPad}}" class="footerImage" style="background-color:{{Color.BackColor}}"></view>
  94. <view class="panelFooter FlexColumn" wx:if="{{!IsShowAnswer[0] && !IsShowAnswer[1] && ClickType!=1}}"
  95. catchtap="onShowAnswer">
  96. 看答案
  97. </view>
  98. <view class="panelFooter FlexColumn" wx:if="{{IsShowAnswer[0] && !IsShowAnswer[1] && ClickType!=1}}"
  99. catchtap="onShowAnswer">
  100. 下一段
  101. </view>
  102. <view class="panelFooter0 panelFooter FlexColumn" wx:if="{{IsShowAnswer[1]}}">
  103. <view class='panelBottomAnswer panelBottom FlexRow' animation="{{animationData}}">
  104. <view class="panelBottomAnswer0 FlexRow">
  105. <view class="AnswerLeft Answer FlexColumn" hover-class='AnswerHover' catchtap='gotoNext'
  106. data-time="{{TaskInfo.Number0}}" data-btnnumber="0">
  107. <view class="btnTime">
  108. {{TaskInfo.Number0Str}}
  109. </view>
  110. <view class="Answer0 btnColor"></view>
  111. </view>
  112. <view class="Answer FlexColumn" hover-class='AnswerHover' catchtap='gotoNext'
  113. data-time="{{TaskInfo.Number1}}" data-btnnumber="3" wx:if="{{TaskInfo.Number1}}">
  114. <view class="btnTime">
  115. {{TaskInfo.Number1Str}}
  116. </view>
  117. <view wx:if='{{Recommend!=1}}' class="Answer1 btnColor"></view>
  118. <view wx:if='{{Recommend==1 && MemoryLevel==1}}' class="Answer1Recommend Answer1 btnColor"></view>
  119. </view>
  120. <view class="Answer FlexColumn" hover-class='AnswerHover' catchtap='gotoNext'
  121. data-time="{{TaskInfo.Number2}}" data-btnnumber="4">
  122. <view class="btnTime">
  123. {{TaskInfo.Number2Str}}
  124. </view>
  125. <view wx:if='{{Recommend!=2}}' class="Answer2 btnColor"></view>
  126. <view wx:if='{{Recommend==2 && MemoryLevel==1}}' class="Answer1Recommend Answer2 btnColor"></view>
  127. </view>
  128. <view class="Answer FlexColumn" hover-class='AnswerHover' catchtap='gotoNext'
  129. data-time="{{TaskInfo.Number3}}" data-btnnumber="5" wx:if="{{TaskInfo.Number3 && MemoryLevel==1}}">
  130. <view class="btnTime">
  131. {{TaskInfo.Number3Str}}
  132. </view>
  133. <view wx:if='{{Recommend!=3}}' class="Answer3 btnColor"></view>
  134. <view wx:if='{{Recommend==3 && MemoryLevel==1}}' class="Answer1Recommend Answer3 btnColor"></view>
  135. </view>
  136. <view class="line2"></view>
  137. <view class="AnswerRight FlexColumn" hover-class='AnswerHover' catchtap='showOtherButton'>
  138. <image src="../images/universalpic_4blocks_gray_28x28.png" class='universalpic_4blocks_gray_28x28' />
  139. </view>
  140. </view>
  141. <view class="panelBottomAnswer0 FlexRow">
  142. <view class="AnswerLeft Answer00 FlexColumn" hover-class='AnswerHover' catchtap='saveCardType' data-foldertype="0">
  143. 归档
  144. </view>
  145. <view class="line3"></view>
  146. <view class="Answer00 FlexColumn" hover-class='AnswerHover' catchtap='saveCardType' data-foldertype="1">
  147. 不会
  148. </view>
  149. <view class="line3"></view>
  150. <view class="Answer00 FlexColumn" hover-class='AnswerHover' catchtap='gotoNext' data-btnnumber="2">
  151. 挪到最后
  152. </view>
  153. <view class="line3"></view>
  154. <view class="Answer00 FlexColumn" hover-class='AnswerHover' catchtap='gotoNext' data-time="1d"
  155. data-btnnumber="1">
  156. 搁置
  157. </view>
  158. <view class="line2"></view>
  159. <view class="AnswerRight FlexColumn" hover-class='AnswerHover' catchtap='closeOtherButton'>
  160. <image src="../images/universalpic_close_gray_24x24.png" class='universalpic_close_gray_24x24' />
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </block>
  167. <!-- 最后一页 -->
  168. <block wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
  169. <view class='panelLast FlexColumn'
  170. style='height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
  171. <view class='text1{{IsIPad}}'>做完了</view>
  172. <view class="panelLastTime FlexColumn">
  173. <view style='color:{{Color.FrontColor1}};'>今日练习总共用时</view>
  174. <view class="time1 FlexRow" style='color:{{Color.LineColor}}'>
  175. <view class='time11'>{{TodayTime}}</view>
  176. <view>分钟</view>
  177. </view>
  178. </view>
  179. <view class="panelLastTime FlexColumn">
  180. <view style='color:{{Color.FrontColor1}};'>单张题卡平均用时</view>
  181. <view class="time2" style='color:{{Color.LineColor}}'>{{Speed2}}</view>
  182. </view>
  183. <view class="panelLastTime FlexColumn">
  184. <view style='color:{{Color.FrontColor1}};'>每分钟可练习</view>
  185. <view class="time2" style='color:{{Color.LineColor}}'>{{Speed1}}</view>
  186. </view>
  187. <view class='panelLastFooter'>
  188. <view class="panelLastFooter1 FlexRow" bindtap='buildShareImage'>
  189. <image src="../images/universalpic_screenshot_gray_30x30.png" class='universalpic_screenshot_gray_30x30' />
  190. <view>群接力</view>
  191. </view>
  192. <view class="panelLastFooter2 FlexRow" bindtap='onClose'>
  193. <view>关闭</view>
  194. </view>
  195. </view>
  196. </view>
  197. </block>
  198. <!-- 今日任务量 -->
  199. <view wx:if="{{IsShowNumberInfo}}" class="numberContainer FlexColumn"
  200. style='height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
  201. <view class="numberContainerFooter1 FlexColumn">
  202. <view class='lineFooter'></view>
  203. <view class="numberContainer12 FlexRow">
  204. <view class='left'>新题卡</view>
  205. <view class='right3'>{{NumberNew}}张</view>
  206. </view>
  207. <view class="lineWidthAll FlexRow">
  208. <view class="lineWidth720"></view>
  209. </view>
  210. <view class="numberContainer12 FlexRow">
  211. <view class='left'>旧题卡</view>
  212. <view class='right3'>{{NumberHistory}}张</view>
  213. </view>
  214. <view class="lineWidthAll FlexRow">
  215. <view class="lineWidth720"></view>
  216. </view>
  217. <view class="numberContainer12 FlexRow">
  218. <view class='left'>本轮及时强化 / 并回顾上次练习未练完的题卡</view>
  219. <view class='right3'>{{NumberReview}}张</view>
  220. </view>
  221. <view class="lineWidthAll FlexRow">
  222. <view class="lineWidth720"></view>
  223. </view>
  224. <view class="numberContainer12 FlexRow">
  225. <view class='left' style='color:{{Color.LineColor}};'>未练完总计</view>
  226. <view class='right3' style='color:{{Color.LineColor}};'>{{NumberNew+NumberReview+NumberHistory}}张</view>
  227. </view>
  228. <view class='lineFooter'></view>
  229. </view>
  230. <view class="numberContaineFooter FlexRow" catchtap='closeNumberContainner'>
  231. <view>关闭</view>
  232. </view>
  233. </view>
  234. <!-- 更多功能 -->
  235. <view wx:if="{{IsMore}}" class="numberContainer FlexColumn" catchtap="getNull"
  236. style='min-height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
  237. <view class="numberContainerFooter1 FlexColumn">
  238. <view class='numberContainerFooter101 FlexRow'>
  239. <image src="../images/universalpic_typesize_gray_30x18.png" class='universalpic_typesize_gray_30x18' />
  240. <view class='numberContainerFooter11 FlexColumn'>
  241. <view class='numberContainerFooter111'>调整题目字号</view>
  242. <view class='numberContainerFooter112 FlexRow'>
  243. <view class='numberContainerFooter1121' wx:for="{{FontSizeArray}}" wx:key="index" catchtap='onFontSize' data-value='{{item.Value}}' style='{{item.CSS}}'>{{item.Name}}</view>
  244. </view>
  245. </view>
  246. </view>
  247. <view class='lineFooter'></view>
  248. <view class='numberContainerFooter107 FlexRow' catchtap='onShowFolder'>
  249. <view class="MenuLeft FlexRow">
  250. <image src="../images/universalpic_cardlist_gray_30x28.png" class='universalpic_cardlist_gray_30x28' />
  251. <view class='numberContainerFooter111'>卡单优先</view>
  252. </view>
  253. <view class="MenuRight">
  254. <image src='../images/universalpic_indicator_right_white.png' class="Arrow" />
  255. </view>
  256. </view>
  257. <view class='lineFooter'></view>
  258. <view class='numberContainerFooter102 FlexRow'>
  259. <image src="../images/universalpic_autoread_gray_30x23.png" class='universalpic_autoread_gray_30x23' />
  260. <view class='numberContainerFooter111'>自动播放题卡里的声音</view>
  261. <switch class="switch" color="#4CD964" checked="{{IsAutoSound}}" bindchange="switchSound" />
  262. </view>
  263. <view class='lineFooter'></view>
  264. </view>
  265. <view class="numberContaineFooter FlexRow" catchtap='closeNumberContainner'>
  266. <view>关闭</view>
  267. </view>
  268. </view>
  269. <!-- 卡单 -->
  270. <view wx:if="{{IsShowFolder}}" class="numberContainer FlexColumn" catchtap="getNull"
  271. style='min-height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
  272. <view class='numberContainerFooter106 FlexColumn'>
  273. <view class="numberContainerFooter1061">按卡单优先出题</view>
  274. <view class="numberContainerFooter1062">如果想改变任务量的出题顺序(如,早上练诗词,晚上练识字,睡前练单词,计算题集中在作业后等),首先利用卡单给题卡做分类,然后在这里选择优先出题的卡单。
  275. </view>
  276. </view>
  277. <scroll-view scroll-y="true" class="FolderList FlexColumn" style="height:{{Containnerheight-450}}rpx;">
  278. <view class="FolderItem FlexRow" catchtap="setCurrentFolder" data-folderid='0'
  279. wx:if="{{FolderList[0].FolderID==0 && FolderList[0].Total>0}}">
  280. <view class="FolderItem1">没有卡单的题卡</view>
  281. <view class="MenuRight FlexRow">
  282. <view class="FolderItem2 FolderItem1">{{FolderList[0].Total}}张</view>
  283. <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
  284. </view>
  285. </view>
  286. <view class="FolderTitle" wx:if="{{FolderListLength>1 || FolderList[0].FolderID>0}}">任务量里包含以下卡单可优先出题</view>
  287. <view class="FolderTitle" wx:if="{{(FolderListLength==1 && FolderList[0].FolderID==0) || (FolderListLength==0)}}">
  288. 当前任务量里没有可优先的卡单</view>
  289. <view class="FolderItem0 FolderItem FlexRow" wx:for="{{FolderList}}" catchtap="setCurrentFolder"
  290. data-folderid='{{item.FolderID}}' wx:key="*this" wx:if="{{item.FolderID!=0 && item.Total!=0}}">
  291. <view class="FolderItem1">{{item.FolderName}}</view>
  292. <view class="MenuRight FlexRow">
  293. <view class="FolderItem2 FolderItem1">{{item.Total}}张</view>
  294. <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
  295. </view>
  296. </view>
  297. <block wx:if="{{IsFinallyCount && IsFinallyCount>0}}">
  298. <view class="FolderTitle">提醒:有 {{IsFinallyCount}} 张题卡挪到最后练习</view>
  299. <view class="FolderTitle2">中途退出练习,以上信息均会更新,「挪到最后」不会保留。</view>
  300. </block>
  301. <view class="FolderTitle"
  302. wx:if="{{IsFinallyCount && IsFinallyCount>0 && FolderList[0].FolderID==0 && FolderList[0].Total==0}}">点「关闭」练完它们
  303. </view>
  304. <view style="height:60rpx"></view>
  305. </scroll-view>
  306. <view class='numberContainerFooter105 FlexRow' style="background-color:{{Color.BackColor}};">
  307. <view class="numberContainerFooter1051 FlexColumn">
  308. <view class="numberContainerFooter10511">每次练习都要选</view>
  309. <view class="numberContainerFooter10512">开始练习时,只要任务量里有卡单就自动开启本功能</view>
  310. </view>
  311. <switch class="switch" checked="{{IsFolderPractice}}" bindchange="saveIsFolderPractice" />
  312. </view>
  313. <view class="numberContaineFooter FlexRow" catchtap='closeNumberContainner'
  314. style="background-color:{{Color.BackColor}};z-index:50;">
  315. <view>关闭</view>
  316. </view>
  317. </view>
  318. </view>
  319. <!-- <canvas style="width:600px;height:360px;background-color: {{Color.BackColor}};" canvas-id="shareCanvas"></canvas> -->
  320. <canvas wx:if="{{IsBuildReport}}" type="2d" style="width:600px;height:360px;background-color: {{Color.BackColor}};" id="shareCanvas"></canvas>
  321. <audio hidden='true' src="{{AudioSrc}}" id="myAudio" bindended="audioBindEnded" binderror="audioBindError"></audio>