courseDetail.vue 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="height: 100%">
  4. <div class="body_student">
  5. <div class="student_head">
  6. <div
  7. v-if="screenType != 2"
  8. class="return"
  9. @click.stop="
  10. goTo(
  11. '/index?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&cid=' +
  18. classId +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. "
  25. >
  26. 返回
  27. <!-- <img src="../assets/icon/return.png" alt="" /> -->
  28. </div>
  29. <div class="box_course">
  30. <div class="wheel">
  31. <img
  32. style="object-fit: cover"
  33. :src="
  34. this.courseDetail.cover != null &&
  35. this.courseDetail.cover != ''
  36. ? JSON.parse(this.courseDetail.cover).length > 0
  37. ? JSON.parse(this.courseDetail.cover)[0].url
  38. : mr
  39. : mr
  40. "
  41. alt
  42. />
  43. </div>
  44. <div class="right_box">
  45. <div class="rightT">
  46. <div class="right_box_title">{{ courseDetail.title }}</div>
  47. <div class="jd">{{ chapInfo.length }}阶段</div>
  48. <div class="jd">{{ rw }}任务</div>
  49. </div>
  50. <div class="cType" v-if="courseType.length">
  51. <div
  52. class="all_choose"
  53. v-for="(item, index) in courseType"
  54. :key="index"
  55. >
  56. <span style="color: #6c6c6c">{{ item + ":" }}</span>
  57. <span
  58. class="type_children"
  59. v-for="(item2, index2) in courseTypeJson[item]"
  60. :key="index2"
  61. >{{ item2 }}</span
  62. >
  63. </div>
  64. </div>
  65. <div
  66. class="cType"
  67. style="font-size: 18px; color: #6c6c6c; align-items: flex-start"
  68. >
  69. <div style="min-width: fit-content">
  70. 创建者:<span style="color: #000">{{
  71. courseDetail.username
  72. }}</span>
  73. </div>
  74. <div
  75. class="Tname"
  76. v-if="Tname.length > 0"
  77. style="margin-left: 32px"
  78. @click="TnameCheck = !TnameCheck"
  79. >
  80. 协同人员:<span
  81. v-for="(tname, tIndex) in TnameCheck
  82. ? Tname
  83. : Tname.slice(0, 6)"
  84. :key="tIndex"
  85. style="margin: 0 5px; color: #000"
  86. >{{ tname }}</span
  87. ><span
  88. style="margin: 0 5px; color: #b2b2b2"
  89. v-if="!TnameCheck && Tname.length > 6"
  90. >更多....</span
  91. >
  92. </div>
  93. </div>
  94. <div class="cType" style="font-size: 18px; color: #6c6c6c">
  95. <div style="display: flex; align-items: center">
  96. <div>参与人数:</div>
  97. <div class="man">
  98. <img src="../assets/people.png" alt />
  99. </div>
  100. <div class="person" style="color: #000">
  101. {{
  102. courseDetail.vcount != null ? courseDetail.vcount : 0
  103. }}人
  104. </div>
  105. </div>
  106. </div>
  107. <div
  108. class="cType"
  109. style="font-size: 18px; color: #6c6c6c"
  110. v-if="classList.length && tType != 2"
  111. >
  112. <div class="teaClass">
  113. <div>授课班级:</div>
  114. <div>
  115. <el-button
  116. @click="gotoCourse('')"
  117. style="background: #4a9eed; color: #fff; margin: 0 5px"
  118. v-if="classList.length != 1"
  119. >全部</el-button
  120. ><el-button
  121. @click="gotoCourse(item.id)"
  122. v-for="(item, index) in classList"
  123. :key="index"
  124. style="background: #4a9eed; color: #fff; margin: 0 5px"
  125. >{{ item.name }}</el-button
  126. >
  127. </div>
  128. </div>
  129. </div>
  130. <div class="btnBox">
  131. <!-- <div class="now_study" @click="dialogVisible = true">
  132. 立即学习
  133. </div> -->
  134. <div
  135. class="now_study"
  136. @click="setQr(courseDetail.courseId)"
  137. v-if="tType != 2"
  138. >
  139. 生成二维码
  140. </div>
  141. <div class="now_study" @click="dialogVisibleGroup = true" v-if="courseDetail.state == 1">
  142. {{
  143. (courseDetail.userid != userid &&
  144. courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) == -1)
  145. ? "加入分组"
  146. : "设置分组"
  147. }}
  148. </div>
  149. <div class="now_group" v-if="groupInfo && courseDetail.state == 1">
  150. <span>所在分组:</span>{{ groupInfo.name }}
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="student_body">
  157. <div class="sLeft" v-if="courseDetail.brief">
  158. <div class="courseT">项目详情</div>
  159. <div class="courseTd">{{ courseDetail.brief }}</div>
  160. </div>
  161. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  162. <div v-if="tType == 1 || tType == 4" class="checkBox">
  163. <span :class="{ active: type == 2 }" @click="type = 2"
  164. >阶段选择</span
  165. >
  166. <span
  167. :class="{ active: type == 1 }"
  168. @click="getCTwo"
  169. v-if="courseDetail.state == 1"
  170. >课程分析</span
  171. >
  172. </div>
  173. <div
  174. v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
  175. :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
  176. style="width: 100%"
  177. >
  178. <div
  179. class="blue_box_one"
  180. v-for="(item, index) in chapInfo"
  181. :key="index"
  182. @click="addUserRate(index)"
  183. :class="{
  184. disabled: isFollow == 2 && tType == 2 && followC != index,
  185. }"
  186. >
  187. <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
  188. <div v-if="courseDetail.state == 2 || courseDetail.state == 3">任务查看</div>
  189. <div :title="item.dyName">{{ item.dyName }}</div>
  190. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  191. </div>
  192. </div>
  193. <div
  194. v-if="
  195. (tType == 1 || tType == 4) &&
  196. Object.keys(chaptersJson).length &&
  197. type == 1
  198. "
  199. class="detail"
  200. >
  201. <div class="detail_box">
  202. <div class="title">
  203. <span class="toolIcon">工具分析</span>
  204. <div class="statebox">
  205. <div>
  206. <span class="taskIcon">全部阶段:</span
  207. ><span>{{ chaptersJson.state.stage }}</span>
  208. </div>
  209. <div>
  210. <span class="finishIcon">已进行:</span
  211. ><span>{{ chaptersJson.state.finish }}</span>
  212. </div>
  213. <div>
  214. <span class="learningIcon">未进行:</span
  215. ><span>{{ chaptersJson.state.learing }}</span>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="box" v-if="chaptersJson.tool.length">
  220. <div class="progress">
  221. <div
  222. v-for="(item, index) in chaptersJson.tool"
  223. :key="index"
  224. class="chapter"
  225. >
  226. <div
  227. class="stage stageCss"
  228. :style="{
  229. width:
  230. item.array.length * 180 +
  231. (item.array.length - 1) * 10 +
  232. 'px',
  233. }"
  234. @click="addUserRate(index)"
  235. >
  236. <div
  237. style="
  238. width: 100%;
  239. display: flex;
  240. justify-content: center;
  241. "
  242. >
  243. <el-tooltip
  244. class="item"
  245. effect="light"
  246. :content="item.name"
  247. placement="top"
  248. >
  249. <div
  250. class="titleCss"
  251. style="width: 80%; max-width: unset"
  252. >
  253. 第{{ index + 1 }}阶段 {{ item.name }}
  254. </div>
  255. </el-tooltip>
  256. </div>
  257. </div>
  258. <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
  259. <div class="task">
  260. <div
  261. v-for="(item2, index2) in item.array"
  262. :key="index + '-' + index2"
  263. class="taskBox"
  264. >
  265. <div class="taskName">
  266. <div class="navIndex">任务{{ index2 + 1 }}</div>
  267. <div>
  268. <el-tooltip
  269. class="item"
  270. effect="light"
  271. :content="item2.name"
  272. placement="top"
  273. >
  274. <div class="titleCss">{{ item2.name }}</div>
  275. </el-tooltip>
  276. </div>
  277. </div>
  278. <div class="p_tool_box">
  279. <span
  280. v-for="(item3, index3) in item2.array"
  281. :key="index + '-' + index2 + '-' + index3"
  282. class="p_tool"
  283. >
  284. <div v-if="item3.tool == 1">
  285. <img
  286. src="../assets/icon/secondToolList/whiteBoard.png"
  287. alt
  288. />
  289. <div>电子白板</div>
  290. </div>
  291. <div v-if="item3.tool == 3">
  292. <img
  293. src="../assets/icon/secondToolList/mindMapping.png"
  294. alt
  295. />
  296. <div>思维导图</div>
  297. </div>
  298. <div v-if="item3.tool == 6">
  299. <img
  300. src="../assets/icon/secondToolList/doc.png"
  301. alt
  302. />
  303. <div>协同文档</div>
  304. </div>
  305. <div v-if="item3.tool == 7">
  306. <img
  307. src="../assets/icon/secondToolList/mindNetwork.png"
  308. alt
  309. />
  310. <div>思维网格</div>
  311. </div>
  312. <div v-if="item3.tool == 8">
  313. <img
  314. src="../assets/icon/secondToolList/library.png"
  315. alt
  316. />
  317. <div>素材库</div>
  318. </div>
  319. <div v-if="item3.tool == 17">
  320. <img
  321. src="../assets/icon/secondToolList/library.png"
  322. alt
  323. />
  324. <div>学习资料</div>
  325. </div>
  326. <div v-if="item3.tool == 2">
  327. <img
  328. src="../assets/icon/secondToolList/note.png"
  329. alt
  330. />
  331. <div>便签</div>
  332. </div>
  333. <div v-if="item3.tool == 4">
  334. <img
  335. src="../assets/icon/thirdToolList/ask.png"
  336. alt
  337. />
  338. <div>问卷调查</div>
  339. </div>
  340. <div v-if="item3.tool == 45">
  341. <img
  342. src="../assets/icon/thirdToolList/choose.png"
  343. alt
  344. />
  345. <div>选择题</div>
  346. </div>
  347. <!-- <div v-if="item3.tool == 5">
  348. <img
  349. src="../assets/icon/thirdToolList/score.png"
  350. alt
  351. />
  352. <div >量规评分</div>
  353. </div> -->
  354. <div v-if="item3.tool == 10">
  355. <img
  356. src="../assets/icon/thirdToolList/time.png"
  357. alt
  358. />
  359. <div>倒计时</div>
  360. </div>
  361. <div v-if="item3.tool == 15">
  362. <img
  363. src="../assets/icon/thirdToolList/answer.png"
  364. alt
  365. />
  366. <div>问答工具</div>
  367. </div>
  368. <div v-if="item3.tool == 26">
  369. <img
  370. src="../assets/icon/thirdToolList/courseDesign.png"
  371. alt
  372. />
  373. <div>课程设计</div>
  374. </div>
  375. <div v-if="item3.tool == 18">
  376. <img
  377. src="../assets/icon/thirdToolList/trainPlatform.png"
  378. alt
  379. />
  380. <div>训练服务器</div>
  381. </div>
  382. <div v-if="item3.tool == 16">
  383. <img
  384. src="../assets/icon/thirdToolList/work.png"
  385. alt
  386. />
  387. <div>作业提交</div>
  388. </div>
  389. <div v-if="item3.tool == 21">
  390. <img
  391. src="../assets/icon/fourthToolList/program.png"
  392. alt
  393. />
  394. <div>编程平台</div>
  395. </div>
  396. <div v-if="item3.tool == 22">
  397. <img
  398. src="../assets/icon/fourthToolList/program.png"
  399. alt
  400. />
  401. <div>AI体验</div>
  402. </div>
  403. <div v-if="item3.tool == 23">
  404. <img
  405. src="../assets/icon/fourthToolList/program.png"
  406. alt
  407. />
  408. <div>Python</div>
  409. </div>
  410. <div v-if="item3.tool == 24">
  411. <img
  412. src="../assets/icon/fourthToolList/AIprogram.png"
  413. alt
  414. />
  415. <div>AI平台</div>
  416. </div>
  417. <div v-if="item3.tool == 25">
  418. <img
  419. src="../assets/icon/thirdToolList/evalua.png"
  420. alt
  421. />
  422. <div>目标管理</div>
  423. </div>
  424. <div v-if="item3.tool == 31">
  425. <img
  426. src="../assets/icon/secondToolList/networkPanel.png"
  427. alt
  428. />
  429. <div>数学画板</div>
  430. </div>
  431. <div v-if="item3.tool == 28">
  432. <img
  433. src="../assets/icon/secondToolList/translation.png"
  434. alt
  435. />
  436. <div>翻译</div>
  437. </div>
  438. <div v-if="item3.tool == 37">
  439. <img
  440. src="../assets/icon/secondToolList/mohe.png"
  441. alt
  442. />
  443. <div>魔盒识字</div>
  444. </div>
  445. <div v-if="item3.tool == 38">
  446. <img
  447. src="../assets/icon/secondToolList/24game.png"
  448. alt
  449. />
  450. <div>24点</div>
  451. </div>
  452. <div v-if="item3.tool == 39">
  453. <img
  454. src="../assets/icon/secondToolList/GeoGebra.png"
  455. alt
  456. />
  457. <div>GeoGebra</div>
  458. </div>
  459. <div v-if="item3.tool == 32">
  460. <img
  461. src="../assets/icon/thirdToolList/code.png"
  462. alt
  463. />
  464. <div>源码编辑</div>
  465. </div>
  466. <div v-if="item3.tool == 40">
  467. <img
  468. src="../assets/icon/secondToolList/eval.png"
  469. alt
  470. />
  471. <div>学生评价</div>
  472. </div>
  473. <div v-if="item3.tool == 41">
  474. <img
  475. src="../assets/icon/thirdToolList/select.png"
  476. alt
  477. />
  478. <div>选择填空</div>
  479. </div>
  480. <div v-if="item3.tool == 44">
  481. <img
  482. src="../assets/icon/thirdToolList/hanClass.png"
  483. alt
  484. />
  485. <div>汉字宫</div>
  486. </div>
  487. <div v-if="item3.tool == 47">
  488. <img
  489. src="../assets/icon/fourthToolList/conSentences.png"
  490. alt
  491. />
  492. <div>连词成句</div>
  493. </div>
  494. <div v-if="item3.tool == 48">
  495. <img
  496. src="../assets/icon/fourthToolList/table.png"
  497. alt
  498. />
  499. <div>表格</div>
  500. </div>
  501. <div v-if="item3.tool == 49">
  502. <img
  503. src="../assets/icon/fourthToolList/group.png"
  504. alt
  505. />
  506. <div>学生分组</div>
  507. </div>
  508. <div v-if="item3.tool == 50">
  509. <img
  510. src="../assets/icon/thirdToolList/plwork.png"
  511. alt
  512. />
  513. <div>批量上传</div>
  514. </div>
  515. <div v-if="item3.tool == 57">
  516. <img
  517. src="../assets/icon/fourthToolList/cocopi.png"
  518. alt
  519. />
  520. <div>CocoPi</div>
  521. </div>
  522. <div v-if="item3.tool == 58">
  523. <img
  524. src="../assets/icon/fourthToolList/car.png"
  525. alt
  526. />
  527. <div>模拟驾驶</div>
  528. </div>
  529. <div v-if="item3.tool == 59">
  530. <img
  531. src="../assets/icon/fourthToolList/lineSearch.png"
  532. alt
  533. />
  534. <div>路径搜索</div>
  535. </div>
  536. <div v-if="item3.tool == 60">
  537. <img
  538. src="../assets/icon/fourthToolList/deepLearning.png"
  539. alt
  540. />
  541. <div>深度学习</div>
  542. </div>
  543. <div v-if="item3.tool == 61">
  544. <img
  545. src="../assets/icon/fourthToolList/allHistory.png"
  546. alt
  547. />
  548. <div>深度学习</div>
  549. </div>
  550. <div v-if="item3.tool == 62">
  551. <img
  552. src="../assets/icon/fourthToolList/interVideo.png"
  553. alt
  554. />
  555. <div>交互视频</div>
  556. </div>
  557. <div v-if="item3.tool == 63">
  558. <img
  559. src="../assets/icon/fourthToolList/Wood.png"
  560. alt
  561. />
  562. <div>海龟编程</div>
  563. </div>
  564. <div v-if="item3.tool == undefined">
  565. <img
  566. src="../assets/icon/empytool.png"
  567. alt
  568. style="width: 64px; height: 75px"
  569. />
  570. </div>
  571. </span>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. <div
  580. class="detail_box"
  581. v-if="Object.keys(chaptersJson.time).length"
  582. >
  583. <div class="title">
  584. <span class="frequencyIcon">活跃频率</span>
  585. </div>
  586. <div class="box">
  587. <div>
  588. <Heatmap
  589. :Josn="chaptersJson.time"
  590. :num="chaptersJson.studentCount"
  591. ></Heatmap>
  592. </div>
  593. </div>
  594. </div>
  595. <div class="detail_box">
  596. <div class="title"><span class="timeIcon">实施时间</span></div>
  597. <div class="box">
  598. <div style="font-size: 22px; margin: 15px 0 45px">
  599. {{ courseDetail.title }}
  600. </div>
  601. <div class="chapter_time_box" style="margin-left: 170px">
  602. <div
  603. v-for="(item, index) in chaptersJson.work"
  604. :key="index"
  605. class="c_box"
  606. >
  607. <div class="stage_box" style="left: -195px">
  608. <div
  609. style="
  610. min-width: 150px;
  611. position: relative;
  612. left: -5px;
  613. "
  614. >
  615. {{ item.time }}
  616. </div>
  617. <div class="yuan"></div>
  618. <div class="stage">
  619. 第{{ index + 1 }}阶段 {{ item.name }}
  620. </div>
  621. <div
  622. class="s_up"
  623. :class="{ s_up2: !item.is }"
  624. @click="item.is = !item.is"
  625. >
  626. <img src="../assets/icon/up.png" alt="" />
  627. </div>
  628. </div>
  629. <div v-show="item.is">
  630. <div
  631. v-for="(item2, index2) in item.chapter"
  632. :key="index + '-' + index2"
  633. >
  634. <div
  635. style="
  636. display: flex;
  637. flex-direction: row;
  638. flex-wrap: nowrap;
  639. align-items: center;
  640. "
  641. v-if="
  642. item2.task[0].tool != undefined && item2.isWork
  643. "
  644. >
  645. <div
  646. style="
  647. width: 13px;
  648. height: 13px;
  649. background: #5a82cb 100%;
  650. border-radius: 50%;
  651. margin-right: 10px;
  652. "
  653. ></div>
  654. <div
  655. style="
  656. color: #4376c3;
  657. font-size: 20px;
  658. font-weight: bold;
  659. "
  660. >
  661. 任务{{ index2 + 1 }}:{{ item2.name }}
  662. </div>
  663. </div>
  664. <div class="p_tool_box2">
  665. <span
  666. v-for="(item3, index3) in item2.task"
  667. :key="index + '-' + index2 + '-' + index3"
  668. class="p_tool2"
  669. >
  670. <div
  671. class="toolBigBox"
  672. style="
  673. display: flex;
  674. flex-direction: row;
  675. flex-wrap: nowrap;
  676. align-items: center;
  677. "
  678. v-if="item3.works.length"
  679. >
  680. <div
  681. style="
  682. display: flex;
  683. flex-direction: row;
  684. flex-wrap: nowrap;
  685. align-items: flex-end;
  686. min-width: 140px;
  687. "
  688. >
  689. <div class="lineBox"></div>
  690. <div class="toolbox">
  691. <div
  692. style="font-size: 16px; font-weight: bold"
  693. >
  694. 步骤{{ index3 + 1 }}:
  695. </div>
  696. <div v-if="item3.tool == 1">电子白板</div>
  697. <div v-if="item3.tool == 3">思维导图</div>
  698. <div v-if="item3.tool == 6">协同文档</div>
  699. <div v-if="item3.tool == 7">思维网格</div>
  700. <div v-if="item3.tool == 8">素材库</div>
  701. <div v-if="item3.tool == 17">学习资料</div>
  702. <div v-if="item3.tool == 2">便签</div>
  703. <div v-if="item3.tool == 4">问卷调查</div>
  704. <div v-if="item3.tool == 45">选择题</div>
  705. <div v-if="item3.tool == 10">倒计时</div>
  706. <div v-if="item3.tool == 15">问答工具</div>
  707. <div v-if="item3.tool == 26">课程设计</div>
  708. <div v-if="item3.tool == 18">
  709. 训练服务器
  710. </div>
  711. <div v-if="item3.tool == 16">作业提交</div>
  712. <div v-if="item3.tool == 21">编程平台</div>
  713. <div v-if="item3.tool == 22">AI体验</div>
  714. <div v-if="item3.tool == 23">Python</div>
  715. <div v-if="item3.tool == 24">AI平台</div>
  716. <div v-if="item3.tool == 25">目标管理</div>
  717. <div v-if="item3.tool == 31">数学画板</div>
  718. <div v-if="item3.tool == 28">翻译</div>
  719. <div v-if="item3.tool == 37">魔盒识字</div>
  720. <div v-if="item3.tool == 38">24点</div>
  721. <div v-if="item3.tool == 39">GeoGebra</div>
  722. <div v-if="item3.tool == 32">源码编辑</div>
  723. <div v-if="item3.tool == 40">学生评价</div>
  724. <div v-if="item3.tool == 41">选择填空</div>
  725. <div v-if="item3.tool == 44">汉字宫</div>
  726. <div v-if="item3.tool == 47">连词成句</div>
  727. <div v-if="item3.tool == 48">表格</div>
  728. <div v-if="item3.tool == 49">学生分组</div>
  729. <div v-if="item3.tool == 50">批量上传</div>
  730. <div v-if="item3.tool == 57">CocoPi</div>
  731. <div v-if="item3.tool == 58">模拟驾驶</div>
  732. <div v-if="item3.tool == 59">路径搜索</div>
  733. <div v-if="item3.tool == 60">深度学习</div>
  734. </div>
  735. </div>
  736. <div
  737. v-if="item3.works.length"
  738. style="
  739. display: flex;
  740. flex-direction: row;
  741. flex-wrap: wrap;
  742. align-items: center;
  743. margin-left: 10px;
  744. "
  745. >
  746. <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
  747. <div class="disCss">
  748. <div class="blueBtn">
  749. 作业数量:{{ item3.works.length }}
  750. </div>
  751. <div
  752. v-if="chaptersJson.studentCount"
  753. class="blueBtn"
  754. >
  755. 任务完成率:{{
  756. (
  757. (item3.works.length /
  758. chaptersJson.studentCount) *
  759. 100
  760. ).toFixed(2) > 100.0
  761. ? 100 + "%"
  762. : (
  763. (item3.works.length /
  764. chaptersJson.studentCount) *
  765. 100
  766. ).toFixed(2) + "%"
  767. }}
  768. </div>
  769. <div class="blueBtn">
  770. <div>点赞:{{ item3.likeCount }}</div>
  771. <div style="margin-left: 15px">
  772. 评论:{{ item3.commentCount }}
  773. </div>
  774. </div>
  775. </div>
  776. <div v-if="item3.isScore">
  777. <div class="disCss">
  778. <div class="blueBtn">
  779. 作业评价量:{{ item3.isScore }}
  780. </div>
  781. <div class="blueBtn">
  782. 评价平均分:{{
  783. (item3.score / item3.isScore).toFixed(
  784. 2
  785. )
  786. }}分
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. </div>
  792. </span>
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
  801. {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
  802. <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
  803. </div>
  804. </div>
  805. </div>
  806. <!-- <div
  807. style="
  808. text-align: center;
  809. padding: 30px 0 20px 0;
  810. box-sizing: border-box;
  811. "
  812. >
  813. 此处滚动加载..
  814. </div>-->
  815. <el-dialog
  816. title="阶段选择"
  817. :visible.sync="dialogVisible"
  818. :append-to-body="true"
  819. width="700px"
  820. :before-close="handleClose"
  821. class="dialog_change"
  822. >
  823. <div style="font-size: 20px">请选择阶段</div>
  824. <div
  825. style="
  826. padding: 20px 30px;
  827. display: flex;
  828. flex-direction: row;
  829. flex-wrap: wrap;
  830. "
  831. >
  832. <div
  833. class="blue_box"
  834. v-for="(item, index) in chapInfo"
  835. :key="index"
  836. @click="addUserRate(index)"
  837. >
  838. <div>第{{ index + 1 }}阶段</div>
  839. <div>{{ item.dyName }}</div>
  840. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  841. </div>
  842. </div>
  843. </el-dialog>
  844. <Group
  845. :dialogVisibleGroup.sync="dialogVisibleGroup"
  846. :classList="classList"
  847. :cid="id"
  848. :courseDetail="courseDetail"
  849. :userid="userid"
  850. :oid="oid"
  851. :type="tType"
  852. :classId="classId"
  853. @getGroup="getGroup"
  854. ></Group>
  855. </div>
  856. </div>
  857. <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
  858. <div class="qrcode" ref="qrCodeUrl"></div>
  859. </el-dialog>
  860. </div>
  861. </template>
  862. <script>
  863. import Heatmap from "./tools/heatmap.vue";
  864. import Group from "./group/group.vue";
  865. import QRCode from "qrcodejs2";
  866. export default {
  867. components: {
  868. Heatmap,
  869. Group,
  870. },
  871. data() {
  872. return {
  873. choose: 0,
  874. dialogVisible: false,
  875. dialogVisibleGroup: false,
  876. id: this.$route.query.courseId,
  877. userid: this.$route.query.userid,
  878. oid: this.$route.query.oid,
  879. org: this.$route.query.org,
  880. classId: this.$route.query.cid,
  881. tType: this.$route.query.tType,
  882. screenType: this.$route.query.screenType,
  883. courseDetail: {},
  884. classList: [],
  885. aStudentName: [],
  886. chapInfo: [],
  887. courseType: [],
  888. Tname: [],
  889. TnameCheck: false,
  890. courseTypeJson: {},
  891. userinfo: [],
  892. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  893. rw: 0,
  894. chaptersJson: {},
  895. type: 2,
  896. inviteCode: [],
  897. groupInfo: "",
  898. isFollow: "",
  899. followC: "",
  900. dialogVisibleQR: false,
  901. };
  902. },
  903. methods: {
  904. handleClose(done) {
  905. done();
  906. },
  907. setQr(cid) {
  908. this.dialogVisibleQR = true;
  909. setTimeout(() => {
  910. this.$refs.qrCodeUrl.innerHTML = "";
  911. var qrcode = new QRCode(this.$refs.qrCodeUrl, {
  912. text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
  913. width: 350,
  914. height: 350,
  915. colorDark: "#000000",
  916. colorLight: "#ffffff",
  917. correctLevel: QRCode.CorrectLevel.H,
  918. });
  919. }, 500);
  920. },
  921. goTo(path) {
  922. this.$router.push(path);
  923. },
  924. gotoCourse(id) {
  925. if (this.courseDetail.state == 1) {
  926. if (this.classList.length) {
  927. this.goTo(
  928. "/studyStudent?type=0&courseId=" +
  929. this.id +
  930. "&userid=" +
  931. this.userid +
  932. "&oid=" +
  933. this.oid +
  934. "&org=" +
  935. this.org +
  936. "&cid=" +
  937. this.classId +
  938. "&tType=" +
  939. this.tType +
  940. "&screenType=" +
  941. this.screenType +
  942. "&tcid=" +
  943. id
  944. );
  945. } else {
  946. this.goTo(
  947. "/studyStudent?type=0&courseId=" +
  948. this.id +
  949. "&userid=" +
  950. this.userid +
  951. "&oid=" +
  952. this.oid +
  953. "&org=" +
  954. this.org +
  955. "&cid=" +
  956. this.classId +
  957. "&tType=" +
  958. this.tType +
  959. "&screenType=" +
  960. this.screenType
  961. );
  962. }
  963. } else if(this.courseDetail.state == 2){
  964. if (this.classList.length) {
  965. this.goTo(
  966. "/studystudentE2?type=0&courseId=" +
  967. this.id +
  968. "&userid=" +
  969. this.userid +
  970. "&oid=" +
  971. this.oid +
  972. "&org=" +
  973. this.org +
  974. "&cid=" +
  975. this.classId +
  976. "&tType=" +
  977. this.tType +
  978. "&screenType=" +
  979. this.screenType +
  980. "&tcid=" +
  981. id
  982. );
  983. } else {
  984. this.goTo(
  985. "/studystudentE2?type=0&courseId=" +
  986. this.id +
  987. "&userid=" +
  988. this.userid +
  989. "&oid=" +
  990. this.oid +
  991. "&org=" +
  992. this.org +
  993. "&cid=" +
  994. this.classId +
  995. "&tType=" +
  996. this.tType +
  997. "&screenType=" +
  998. this.screenType
  999. );
  1000. }
  1001. } else if(this.courseDetail.state == 3){
  1002. if (this.classList.length) {
  1003. this.goTo(
  1004. "/studystudentE3?type=0&courseId=" +
  1005. this.id +
  1006. "&userid=" +
  1007. this.userid +
  1008. "&oid=" +
  1009. this.oid +
  1010. "&org=" +
  1011. this.org +
  1012. "&cid=" +
  1013. this.classId +
  1014. "&tType=" +
  1015. this.tType +
  1016. "&screenType=" +
  1017. this.screenType +
  1018. "&tcid=" +
  1019. id
  1020. );
  1021. } else {
  1022. this.goTo(
  1023. "/studystudentE3?type=0&courseId=" +
  1024. this.id +
  1025. "&userid=" +
  1026. this.userid +
  1027. "&oid=" +
  1028. this.oid +
  1029. "&org=" +
  1030. this.org +
  1031. "&cid=" +
  1032. this.classId +
  1033. "&tType=" +
  1034. this.tType +
  1035. "&screenType=" +
  1036. this.screenType
  1037. );
  1038. }
  1039. }
  1040. },
  1041. addUserRate(i) {
  1042. // var suid = this.userid;
  1043. // if (
  1044. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  1045. // JSON.parse(this.courseDetail.userid) != suid
  1046. // ) {
  1047. // this.$message.error("你没有该权限");
  1048. // return;
  1049. // }
  1050. // var a =
  1051. // this.courseDetail.course_student != ""
  1052. // ? JSON.parse(this.courseDetail.course_student)
  1053. // : "";
  1054. // if (this.courseDetail.userid != suid) {
  1055. // if (this.userinfo.type == 2) {
  1056. // if (a != "") {
  1057. // if (
  1058. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  1059. // ) {
  1060. // this.$message.error("你没有该权限");
  1061. // return;
  1062. // }
  1063. // } else {
  1064. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  1065. // return;
  1066. // }
  1067. // }
  1068. // }
  1069. if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
  1070. return;
  1071. }
  1072. let params = {
  1073. uid: this.userid,
  1074. cid: this.id,
  1075. };
  1076. this.ajax
  1077. .get(this.$store.state.api + "addUserR", params)
  1078. .then((res) => {
  1079. console.log(res.data);
  1080. this.updateVc();
  1081. if (this.tType == 1 || this.tType == 4) {
  1082. if (this.courseDetail.state == 1) {
  1083. this.goTo(
  1084. "/studyStudent?type=" +
  1085. i +
  1086. "&courseId=" +
  1087. this.id +
  1088. "&userid=" +
  1089. this.userid +
  1090. "&oid=" +
  1091. this.oid +
  1092. "&org=" +
  1093. this.org +
  1094. "&cid=" +
  1095. this.classId +
  1096. "&tType=" +
  1097. this.tType +
  1098. "&screenType=" +
  1099. this.screenType
  1100. );
  1101. } else if(this.courseDetail.state == 2){
  1102. this.goTo(
  1103. "/studystudentE2?type=" +
  1104. i +
  1105. "&courseId=" +
  1106. this.id +
  1107. "&userid=" +
  1108. this.userid +
  1109. "&oid=" +
  1110. this.oid +
  1111. "&org=" +
  1112. this.org +
  1113. "&cid=" +
  1114. this.classId +
  1115. "&tType=" +
  1116. this.tType +
  1117. "&screenType=" +
  1118. this.screenType
  1119. );
  1120. } else if(this.courseDetail.state == 3){
  1121. this.goTo(
  1122. "/studystudentE3?type=" +
  1123. i +
  1124. "&courseId=" +
  1125. this.id +
  1126. "&userid=" +
  1127. this.userid +
  1128. "&oid=" +
  1129. this.oid +
  1130. "&org=" +
  1131. this.org +
  1132. "&cid=" +
  1133. this.classId +
  1134. "&tType=" +
  1135. this.tType +
  1136. "&screenType=" +
  1137. this.screenType
  1138. );
  1139. }
  1140. } else if (this.tType == 2) {
  1141. this.gotoCourse(this.classId);
  1142. } else {
  1143. this.goTo(
  1144. "/study?type=" +
  1145. i +
  1146. "&courseId=" +
  1147. this.id +
  1148. "&userid=" +
  1149. this.userid +
  1150. "&oid=" +
  1151. this.oid +
  1152. "&org=" +
  1153. this.org +
  1154. "&cid=" +
  1155. this.classId +
  1156. "&tType=" +
  1157. this.tType +
  1158. "&screenType=" +
  1159. this.screenType
  1160. );
  1161. }
  1162. })
  1163. .catch((err) => {
  1164. console.error(err);
  1165. });
  1166. },
  1167. updateVc() {
  1168. let params = {
  1169. cid: this.id,
  1170. };
  1171. this.ajax
  1172. .get(this.$store.state.api + "updateVc", params)
  1173. .then((res) => {
  1174. console.log(res.data);
  1175. })
  1176. .catch((err) => {
  1177. console.error(err);
  1178. });
  1179. },
  1180. async getCourseDetail1() {
  1181. const loading = this.$loading.service({
  1182. background: "rgba(255, 255, 255, 0.7)",
  1183. target: document.querySelector(".student_table"),
  1184. });
  1185. let params = {
  1186. courseId: this.id,
  1187. };
  1188. let res = await this.ajax.get(
  1189. this.$store.state.api + "selectCourseDetail2",
  1190. params
  1191. );
  1192. loading.close();
  1193. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1194. this.courseDetail = res.data[0][0];
  1195. this.isFollow = res.data[0][0].follow;
  1196. this.followC = res.data[0][0].followC
  1197. ? res.data[0][0].followC.split("-")[0]
  1198. : "";
  1199. this.classList = res.data[3];
  1200. let groupData = res.data[5];
  1201. var a = res.data[0];
  1202. var b = res.data[1];
  1203. var c = res.data[2];
  1204. for (var i = 0; i < b.length; i++) {
  1205. // if (!this.id) {
  1206. // this.courseType[b[i].id] = [];
  1207. // }
  1208. for (var j = 0; j < a.length; j++) {
  1209. if (b[i].id == a[j].pid) {
  1210. if (!this.courseTypeJson[b[i].name]) {
  1211. this.courseType.push(b[i].name);
  1212. this.courseTypeJson[b[i].name] = [];
  1213. }
  1214. this.courseTypeJson[b[i].name].push(a[j].name);
  1215. }
  1216. }
  1217. }
  1218. this.Tname = [];
  1219. for (var k = 0; k < c.length; k++) {
  1220. this.Tname.push(c[k].name);
  1221. }
  1222. console.log(this.courseTypeJson.length);
  1223. this.aStudentName = res.data[2];
  1224. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1225. for (var z = 0; z < this.chapInfo.length; z++) {
  1226. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1227. }
  1228. this.inviteCode = [];
  1229. for (var i = 0; i < res.data[4].length; i++) {
  1230. this.inviteCode.push({
  1231. cid: res.data[4][i].classid,
  1232. ic: res.data[4][i].code,
  1233. });
  1234. }
  1235. if (res.data[3].length != this.inviteCode.length) {
  1236. let classArray = [];
  1237. let noClassArray = [];
  1238. for (var i = 0; i < res.data[3].length; i++) {
  1239. classArray.push(res.data[3][i].id);
  1240. noClassArray.push(res.data[3][i].id);
  1241. }
  1242. this.inviteCode = this.inviteCode.filter((el) => {
  1243. if (classArray.indexOf(el.cid) != -1) {
  1244. noClassArray.splice(noClassArray.indexOf(el.cid), 1);
  1245. return el;
  1246. }
  1247. });
  1248. for (var i = 0; i < noClassArray.length; i++) {
  1249. await this.getInviteCode(noClassArray[i]);
  1250. }
  1251. let a = this.inviteCode;
  1252. console.log(this.inviteCode);
  1253. this.addInviteCode();
  1254. }
  1255. this.groupInfo = "";
  1256. if (groupData.length) {
  1257. gp: for (var g = 0; g < groupData.length; g++) {
  1258. if (groupData[g].userid == this.userid) {
  1259. let gid = groupData[g].groupCid;
  1260. let groupA = JSON.parse(groupData[g].group).group;
  1261. for (var gA = 0; gA < groupA.length; gA++) {
  1262. if (groupA[gA].id == gid) {
  1263. this.groupInfo = {
  1264. name: groupA[gA].name,
  1265. };
  1266. break gp;
  1267. }
  1268. }
  1269. }
  1270. }
  1271. }
  1272. // debugger
  1273. },
  1274. addInviteCode() {
  1275. let params = [
  1276. {
  1277. courseId: this.id,
  1278. inviteCode: JSON.stringify(this.inviteCode),
  1279. },
  1280. ];
  1281. this.ajax
  1282. .post(this.$store.state.api + "addInviteCode", params)
  1283. .then((res) => {})
  1284. .catch((err) => {
  1285. console.error(err);
  1286. });
  1287. },
  1288. getCTwo() {
  1289. this.type = 1;
  1290. this.getCourseDetail2();
  1291. },
  1292. getCourseDetail2() {
  1293. const loading = this.$loading.service({
  1294. background: "rgba(255, 255, 255, 0.7)",
  1295. target: document.querySelector(".student_table"),
  1296. });
  1297. let params = {
  1298. courseId: this.id,
  1299. };
  1300. this.ajax
  1301. .get(this.$store.state.api + "selectCourseDetail", params)
  1302. .then((res) => {
  1303. loading.close();
  1304. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  1305. this.courseDetail = res.data[0][0];
  1306. var a = res.data[0];
  1307. var b = res.data[1];
  1308. var c = res.data[2];
  1309. var d = res.data[3];
  1310. for (var i = 0; i < b.length; i++) {
  1311. // if (!this.id) {
  1312. // this.courseType[b[i].id] = [];
  1313. // }
  1314. for (var j = 0; j < a.length; j++) {
  1315. if (b[i].id == a[j].pid) {
  1316. if (!this.courseTypeJson[b[i].name]) {
  1317. this.courseType.push(b[i].name);
  1318. this.courseTypeJson[b[i].name] = [];
  1319. }
  1320. this.courseTypeJson[b[i].name].push(a[j].name);
  1321. }
  1322. }
  1323. }
  1324. for (var k = 0; k < c.length; k++) {
  1325. this.Tname.push(c[k].name);
  1326. }
  1327. console.log(this.courseTypeJson.length);
  1328. this.aStudentName = res.data[2];
  1329. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  1330. for (var z = 0; z < this.chapInfo.length; z++) {
  1331. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  1332. }
  1333. let _chapters = JSON.parse(a[0].chapters);
  1334. let _works = res.data[3];
  1335. let _sCont = res.data[4];
  1336. let _comment = res.data[5];
  1337. let _chaptersJson = {
  1338. chapterState: _chapters,
  1339. state: {
  1340. stage: _chapters.length,
  1341. finish: 0,
  1342. learing: 0,
  1343. },
  1344. tool: [],
  1345. chapter: [],
  1346. time: {},
  1347. startTime: _works.length ? _works[0].time : "",
  1348. work: [],
  1349. studentCount: _sCont[0].usercount,
  1350. };
  1351. let timeAarry = [];
  1352. for (var j = 0; j < _works.length; j++) {
  1353. timeAarry.push(_works[j].vtime);
  1354. }
  1355. timeAarry.forEach((item) => {
  1356. _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
  1357. });
  1358. for (var i = 0; i < _chapters.length; i++) {
  1359. _chaptersJson.chapterState[i].isFinsh = false;
  1360. // _chaptersJson.tool[i] = []
  1361. _chaptersJson.tool[i] = { array: [], name: _chapters[i].dyName };
  1362. _chaptersJson.chapter[i] = [];
  1363. _chaptersJson.work[i] = {
  1364. name: _chapters[i].dyName,
  1365. chapter: [],
  1366. time: "",
  1367. };
  1368. for (var j = 0; j < _works.length; j++) {
  1369. if (i == _works[j].stage) {
  1370. _chaptersJson.chapterState[i].isFinsh = true;
  1371. _chaptersJson.work[i].time = _works[j].time;
  1372. _chaptersJson.state.finish++;
  1373. break;
  1374. }
  1375. }
  1376. let el = _chapters[i].chapterInfo[0].taskJson;
  1377. for (var z = 0; z < el.length; z++) {
  1378. // _chaptersJson.tool[i][z] = [];
  1379. _chaptersJson.tool[i].array[z] = { array: [], name: el[z].task };
  1380. _chaptersJson.chapter[i][z] = [];
  1381. _chaptersJson.work[i].chapter[z] = {
  1382. name: el[z].task,
  1383. task: [],
  1384. isWork: false,
  1385. };
  1386. if (d.length > 0) {
  1387. _chaptersJson.work[i].chapter[z].isWork = true;
  1388. }
  1389. _chaptersJson.work[i].is = false;
  1390. let tools = el[z].toolChoose;
  1391. for (var k = 0; k < tools.length; k++) {
  1392. _chaptersJson.work[i].chapter[z].task[k] = {
  1393. tool: tools[k].tool[0],
  1394. works: [],
  1395. likeCount: 0,
  1396. commentCount: 0,
  1397. score: 0,
  1398. isScore: 0,
  1399. };
  1400. for (var j = 0; j < _works.length; j++) {
  1401. if (
  1402. i == _works[j].stage &&
  1403. z == _works[j].task &&
  1404. k == _works[j].tool
  1405. ) {
  1406. _chaptersJson.work[i].chapter[z].task[k].works.push(
  1407. _works[j]
  1408. );
  1409. if (_works[j].score) {
  1410. _chaptersJson.work[i].chapter[z].task[k].score +=
  1411. JSON.parse(_works[j].score).wScore;
  1412. _chaptersJson.work[i].chapter[z].task[k].isScore++;
  1413. }
  1414. }
  1415. }
  1416. for (var j = 0; j < _comment.length; j++) {
  1417. if (
  1418. i == _comment[j].stage &&
  1419. z == _comment[j].task &&
  1420. k == _comment[j].tool
  1421. ) {
  1422. if (_comment[j].cType == 1) {
  1423. _chaptersJson.work[i].chapter[z].task[k].likeCount++;
  1424. }
  1425. if (_comment[j].cType == 2) {
  1426. _chaptersJson.work[i].chapter[z].task[k].commentCount++;
  1427. }
  1428. }
  1429. }
  1430. // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
  1431. // _chaptersJson.tool[i][z].push(tools[k].tool[0])
  1432. // }
  1433. _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
  1434. // _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
  1435. _chaptersJson.tool[i].array[z].array[k] = {
  1436. tool: tools[k].tool[0],
  1437. };
  1438. }
  1439. }
  1440. }
  1441. _chaptersJson.state.learing =
  1442. _chaptersJson.state.stage - _chaptersJson.state.finish;
  1443. this.chaptersJson = _chaptersJson;
  1444. // debugger
  1445. })
  1446. .catch((err) => {
  1447. loading.close();
  1448. console.error(err);
  1449. });
  1450. },
  1451. getGroup() {
  1452. this.getCourseDetail1();
  1453. },
  1454. getUser() {
  1455. let params = { uid: this.userid };
  1456. this.ajax
  1457. .get(this.$store.state.api + "getUser", params)
  1458. .then((res) => {
  1459. this.userinfo = res.data[0][0];
  1460. })
  1461. .catch((err) => {
  1462. console.error(err);
  1463. });
  1464. },
  1465. // getSName() {
  1466. // let params = {
  1467. // uid: JSON.stringify(this.courseDetail.course_student),
  1468. // };
  1469. // this.ajax
  1470. // .get(this.$store.state.api + "selectSName", params)
  1471. // .then((res) => {
  1472. // this.aStudentName = res.data[0];
  1473. // })
  1474. // .catch((err) => {
  1475. // console.error(err);
  1476. // });
  1477. // },
  1478. async getInviteCode(cid) {
  1479. let code = this.randomNumber();
  1480. // let params = {
  1481. // code: code,
  1482. // oid: this.oid,
  1483. // }
  1484. // let type = 1
  1485. // for (var i = 0; i < this.inviteCode.length; i++) {
  1486. // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  1487. // type = 2
  1488. // }
  1489. // }
  1490. // if (type == 2) {
  1491. // this.getInviteCode(cid)
  1492. // return;
  1493. // }
  1494. // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
  1495. // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
  1496. // this.getInviteCode(cid)
  1497. // return;
  1498. // }
  1499. let array = [];
  1500. for (var i = 0; i < this.inviteCode.length; i++) {
  1501. array.push(this.inviteCode[i].cid);
  1502. }
  1503. if (array.indexOf(cid) != -1) {
  1504. this.inviteCode[array.indexOf(cid)].ic = code;
  1505. } else {
  1506. this.inviteCode.push({ cid: cid, ic: code });
  1507. }
  1508. },
  1509. randomNumber() {
  1510. // 随机生成两位数
  1511. // let num = Math.floor(Math.random() * 900) + 100;
  1512. // 生成 0 到 99 之间的随机整数
  1513. const randomNumber = Math.floor(Math.random() * 100);
  1514. // 如果随机数小于 10,补上前导零
  1515. const num =
  1516. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  1517. // 随机生成两个大写字母
  1518. let letters = "";
  1519. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  1520. for (let i = 0; i < 3; i++) {
  1521. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  1522. }
  1523. // 随机生成两位数字和字母的组合
  1524. let mix = "";
  1525. let chars =
  1526. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  1527. for (let i = 0; i < 3; i++) {
  1528. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  1529. mix += char;
  1530. }
  1531. // 随机选择一种类型
  1532. let type = Math.floor(Math.random() * 3);
  1533. return num;
  1534. // 根据类型输出结果
  1535. switch (type) {
  1536. case 0:
  1537. console.log(num); // 输出两位数
  1538. return num;
  1539. case 1:
  1540. console.log(letters); // 输出两个大写字母
  1541. return letters;
  1542. case 2:
  1543. console.log(mix); // 输出两位数字和字母的组合
  1544. return mix;
  1545. }
  1546. },
  1547. },
  1548. created() {
  1549. // if(this.tType == 1 || this.tType == 4){
  1550. // this.getCourseDetail2();
  1551. // }else{
  1552. // this.getCourseDetail1();
  1553. // }
  1554. this.getCourseDetail1();
  1555. this.getUser();
  1556. document.scrollingElement.scrollTop = 0;
  1557. // this.getSName();
  1558. },
  1559. };
  1560. </script>
  1561. <style scoped>
  1562. @media screen and (max-width: 1024px) {
  1563. /* .Tname {
  1564. width: 500px;
  1565. white-space: nowrap;
  1566. overflow: hidden;
  1567. text-overflow: ellipsis;
  1568. } */
  1569. }
  1570. .body_student {
  1571. margin: 10px auto;
  1572. width: 98%;
  1573. height: 100%;
  1574. }
  1575. .student_head {
  1576. width: 100%;
  1577. background: #fff;
  1578. height: 30%;
  1579. position: relative;
  1580. }
  1581. .wheel {
  1582. width: 250px;
  1583. max-height: 146px;
  1584. display: flex;
  1585. align-items: center;
  1586. }
  1587. .man {
  1588. width: 16px;
  1589. height: 16px;
  1590. }
  1591. .wheel > img,
  1592. .man > img {
  1593. width: 100%;
  1594. height: 100%;
  1595. }
  1596. .box_course {
  1597. display: flex;
  1598. padding: 25px 0 20px 60px;
  1599. }
  1600. .right_box {
  1601. display: flex;
  1602. flex-direction: column;
  1603. margin-left: 30px;
  1604. align-items: flex-start;
  1605. width: calc(100% - 350px);
  1606. }
  1607. .right_box_title {
  1608. font-size: 23px;
  1609. max-width: calc(100% - 190px);
  1610. white-space: nowrap;
  1611. overflow: hidden;
  1612. text-overflow: ellipsis;
  1613. }
  1614. .people {
  1615. display: flex;
  1616. margin-top: 20px;
  1617. }
  1618. .person {
  1619. margin-left: 10px;
  1620. /* line-height: 18px; */
  1621. }
  1622. .btnBox {
  1623. display: flex;
  1624. margin-top: 20px;
  1625. }
  1626. .now_study {
  1627. width: 150px;
  1628. height: 35px;
  1629. color: #fff;
  1630. background: #4a9eed;
  1631. text-align: center;
  1632. line-height: 35px;
  1633. border-radius: 5px;
  1634. font-size: 13px;
  1635. cursor: pointer;
  1636. }
  1637. .now_study + .now_study {
  1638. margin-left: 10px;
  1639. }
  1640. .now_group {
  1641. height: 35px;
  1642. font-size: 14px;
  1643. line-height: 35px;
  1644. margin-left: 32px;
  1645. }
  1646. .now_group > span:nth-child(1) {
  1647. color: rgb(108, 108, 108);
  1648. }
  1649. .choose_who {
  1650. display: flex;
  1651. margin: 15px 0 0 25px;
  1652. }
  1653. .who_choose {
  1654. height: 28px;
  1655. cursor: pointer;
  1656. }
  1657. .choose_who > div:nth-child(2) {
  1658. margin-left: 35px;
  1659. }
  1660. .choose {
  1661. border-bottom: 5px solid #4a9eed;
  1662. color: #4a9eed;
  1663. }
  1664. .student_body {
  1665. display: flex;
  1666. }
  1667. .student_body,
  1668. .right {
  1669. width: 100%;
  1670. margin: 10px auto;
  1671. min-height: 688px;
  1672. }
  1673. .nav {
  1674. margin: auto 25px;
  1675. width: 80%;
  1676. padding-top: 5px;
  1677. text-indent: 25px;
  1678. }
  1679. .pic {
  1680. width: 100%;
  1681. display: flex;
  1682. flex-direction: row;
  1683. flex-wrap: wrap;
  1684. height: 100%;
  1685. justify-content: space-evenly;
  1686. }
  1687. .Img {
  1688. /*width: 30%; */
  1689. width: 300px;
  1690. margin: 20px 50px;
  1691. margin: 20px 10px;
  1692. border: 1px solid #dbdbdb;
  1693. border-radius: 5px;
  1694. overflow: hidden;
  1695. }
  1696. .Img > img {
  1697. width: 100%;
  1698. height: 100%;
  1699. }
  1700. .student_body_one,
  1701. .right_one {
  1702. width: 100%;
  1703. margin: 0 auto;
  1704. background: #fff;
  1705. margin-top: 10px;
  1706. min-height: 688px;
  1707. }
  1708. .student {
  1709. width: 85%;
  1710. display: flex;
  1711. flex-direction: row;
  1712. flex-wrap: wrap;
  1713. justify-content: flex-start;
  1714. margin: auto 10px;
  1715. }
  1716. .student > div {
  1717. width: 12%;
  1718. height: 35px;
  1719. background: #e3759a;
  1720. text-align: center;
  1721. border: 1px solid #e3759a;
  1722. border-radius: 5px;
  1723. color: #fff;
  1724. line-height: 35px;
  1725. margin: 10px;
  1726. }
  1727. .dialog_change >>> .el-dialog {
  1728. border-radius: 5px;
  1729. }
  1730. .dialog_change >>> .el-dialog__header {
  1731. background: #303030;
  1732. height: 36px;
  1733. line-height: 36px;
  1734. padding-left: 10px;
  1735. padding: 0px 10px 0px;
  1736. }
  1737. .dialog_change >>> .el-dialog__headerbtn {
  1738. top: 10px !important;
  1739. right: 10px !important;
  1740. }
  1741. .dialog_change >>> .el-dialog__title {
  1742. color: #fff;
  1743. font-size: 14px;
  1744. line-height: 5px;
  1745. }
  1746. .dialog_change >>> .el-dialog__body {
  1747. background: #f5f5f5;
  1748. }
  1749. .blue_box {
  1750. align-items: center;
  1751. display: flex;
  1752. flex-direction: column;
  1753. justify-content: center;
  1754. }
  1755. .blue_box,
  1756. .blue_box_one {
  1757. width: 30%;
  1758. height: 100px;
  1759. text-align: center;
  1760. color: #fff;
  1761. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  1762. border-radius: 15px;
  1763. margin: 15px 0 15px 15px;
  1764. cursor: pointer;
  1765. }
  1766. .blue_box_one {
  1767. width: 200px;
  1768. height: 200px;
  1769. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  1770. display: flex;
  1771. flex-direction: column;
  1772. flex-wrap: nowrap;
  1773. align-items: center;
  1774. justify-content: center;
  1775. }
  1776. .blue_box_one > div {
  1777. margin: 5px 0;
  1778. }
  1779. .blue_box_one > div:nth-child(1) {
  1780. font-size: 20px;
  1781. font-weight: bold;
  1782. }
  1783. .blue_box > div:nth-child(2) {
  1784. margin-top: 10px;
  1785. }
  1786. .blue_box_one > div:nth-child(2) {
  1787. white-space: nowrap;
  1788. text-overflow: ellipsis;
  1789. overflow: hidden;
  1790. word-break: break-all;
  1791. width: 100%;
  1792. text-align: center;
  1793. max-width: calc(100% - 85px);
  1794. margin: 0 auto;
  1795. }
  1796. .return {
  1797. background: #205cc6;
  1798. width: 70px;
  1799. height: 30px;
  1800. color: #fff;
  1801. text-align: center;
  1802. line-height: 32px;
  1803. margin-right: 20px;
  1804. cursor: pointer;
  1805. border-radius: 5px;
  1806. position: absolute;
  1807. right: 0;
  1808. top: 24px;
  1809. font-size: 14px;
  1810. }
  1811. .return > img {
  1812. width: 100%;
  1813. height: 100%;
  1814. }
  1815. .cType {
  1816. display: flex;
  1817. flex-direction: row;
  1818. justify-content: center;
  1819. align-items: center;
  1820. margin-top: 20px;
  1821. }
  1822. .cType > div > span {
  1823. font-size: 18px;
  1824. }
  1825. .type_children + .type_children {
  1826. margin-left: 10px;
  1827. }
  1828. .all_choose {
  1829. margin-right: 10px;
  1830. max-width: 250px;
  1831. white-space: nowrap;
  1832. overflow: hidden;
  1833. text-overflow: ellipsis;
  1834. }
  1835. .rightT {
  1836. display: flex;
  1837. flex-direction: row;
  1838. flex-wrap: nowrap;
  1839. align-items: center;
  1840. width: calc(100% - 20px);
  1841. }
  1842. .jd {
  1843. background: #4a9eed;
  1844. margin-left: 15px;
  1845. border-radius: 10px;
  1846. color: #fff;
  1847. width: 70px;
  1848. height: 25px;
  1849. text-align: center;
  1850. line-height: 25px;
  1851. }
  1852. .sLeft {
  1853. width: 14%;
  1854. margin-right: 10px;
  1855. background: rgb(255, 255, 255);
  1856. padding: 20px 15px 0 15px;
  1857. box-sizing: border-box;
  1858. border-radius: 10px;
  1859. }
  1860. .courseT {
  1861. border-left: 3px solid #2e66c9;
  1862. padding-left: 5px;
  1863. color: #2e66c9;
  1864. font-weight: bold;
  1865. }
  1866. .courseTd {
  1867. padding-top: 15px;
  1868. height: 700px;
  1869. overflow: auto;
  1870. word-break: break-word;
  1871. }
  1872. .courseTd::-webkit-scrollbar {
  1873. /*滚动条整体样式*/
  1874. width: 6px;
  1875. /*高宽分别对应横竖滚动条的尺寸*/
  1876. height: 6px;
  1877. }
  1878. /*定义滚动条轨道 内阴影+圆角*/
  1879. .courseTd::-webkit-scrollbar {
  1880. border-radius: 10px;
  1881. background-color: #eee;
  1882. }
  1883. /*定义滑块 内阴影+圆角*/
  1884. .courseTd::-webkit-scrollbar-thumb {
  1885. border-radius: 10px;
  1886. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  1887. background-color: rgba(0, 0, 0, 0.1);
  1888. }
  1889. .rightTd,
  1890. .noBRight {
  1891. width: calc(100% - 14% - 10px);
  1892. background: #fff;
  1893. display: flex;
  1894. flex-direction: row;
  1895. flex-wrap: wrap;
  1896. align-content: flex-start;
  1897. align-items: center;
  1898. justify-content: flex-start;
  1899. }
  1900. .noBRight {
  1901. width: 100%;
  1902. }
  1903. .Tname {
  1904. margin-left: 40px;
  1905. word-break: break-all;
  1906. width: auto;
  1907. /* overflow: hidden;
  1908. white-space: nowrap;
  1909. text-overflow: ellipsis; */
  1910. }
  1911. /* .TnameC{
  1912. width:auto;
  1913. overflow: unset;
  1914. white-space: unset;
  1915. text-overflow: unset;
  1916. } */
  1917. .Tname > span {
  1918. cursor: pointer;
  1919. color: #1463eb;
  1920. margin-left: 10px;
  1921. }
  1922. .detail {
  1923. width: 100%;
  1924. padding: 15px;
  1925. box-sizing: border-box;
  1926. }
  1927. .statebox {
  1928. display: flex;
  1929. align-items: center;
  1930. box-sizing: border-box;
  1931. margin-left: 30px;
  1932. }
  1933. .statebox div {
  1934. padding: 10px 20px;
  1935. border-radius: 5px;
  1936. background: #fff;
  1937. display: flex;
  1938. align-items: center;
  1939. }
  1940. .statebox div + div {
  1941. margin-left: 20px;
  1942. }
  1943. .statebox div span {
  1944. font-size: 16px;
  1945. display: flex;
  1946. align-items: center;
  1947. }
  1948. .statebox div span + span {
  1949. margin-left: 10px;
  1950. color: #1463eb;
  1951. }
  1952. .p_tool_box {
  1953. display: flex;
  1954. flex-wrap: wrap;
  1955. background: rgb(217, 227, 239);
  1956. /* color: #fff; */
  1957. padding: 0 15px 10px;
  1958. align-items: center;
  1959. justify-content: space-evenly;
  1960. border-radius: 5px;
  1961. height: 200px;
  1962. overflow: auto;
  1963. max-width: 150px;
  1964. }
  1965. .p_tool {
  1966. display: flex;
  1967. margin-top: 10px;
  1968. }
  1969. .p_tool > div {
  1970. display: flex;
  1971. flex-direction: column;
  1972. align-items: center;
  1973. min-width: 60px;
  1974. }
  1975. .p_tool > div img {
  1976. width: 50px;
  1977. height: 50px;
  1978. }
  1979. .p_tool > div > div {
  1980. margin-top: 5px;
  1981. font-size: 12px;
  1982. }
  1983. .p_tool_box2 {
  1984. padding: 10px 15px;
  1985. }
  1986. .p_tool2 {
  1987. margin-right: 20px;
  1988. display: flex;
  1989. flex-direction: column;
  1990. align-items: flex-start;
  1991. /* margin-bottom: 10px; */
  1992. }
  1993. .p_tool2 > div:nth-child(1) {
  1994. margin-bottom: 10px;
  1995. }
  1996. .toolBigBox {
  1997. display: flex;
  1998. flex-direction: column;
  1999. }
  2000. .toolSta {
  2001. display: flex;
  2002. margin: 20px 0 0;
  2003. }
  2004. .toolSta > div {
  2005. display: flex;
  2006. }
  2007. .toolSta > div + div {
  2008. margin-left: 50px;
  2009. }
  2010. .toolSta > div > div:nth-child(1) {
  2011. margin: 10px 10px 0 0;
  2012. }
  2013. .blueBtn {
  2014. background: rgb(79, 140, 223);
  2015. color: #fff;
  2016. display: flex;
  2017. padding: 10px 15px;
  2018. /* min-width: 150px; */
  2019. min-width: 165px;
  2020. font-size: 16px;
  2021. align-items: center;
  2022. border-radius: 5px;
  2023. }
  2024. .toolSta > div > div:nth-child(2) > div + div {
  2025. margin-top: 10px;
  2026. }
  2027. .toolSta > div > div:nth-child(2) > div > div + div {
  2028. margin: 0 20px;
  2029. }
  2030. .p_tool2 .toolbox {
  2031. display: flex;
  2032. align-items: center;
  2033. margin-top: 10px;
  2034. }
  2035. .p_tool2 .toolbox > div {
  2036. font-size: 16px;
  2037. font-weight: bold;
  2038. }
  2039. .checkBox {
  2040. display: flex;
  2041. padding: 20px 0 0 20px;
  2042. box-sizing: border-box;
  2043. width: 100%;
  2044. }
  2045. .checkBox span {
  2046. padding: 0 10px 5px;
  2047. cursor: pointer;
  2048. font-size: 18px;
  2049. }
  2050. .checkBox span + span {
  2051. margin-left: 20px;
  2052. }
  2053. .checkBox .active {
  2054. border-bottom: 2px solid rgb(75, 151, 229);
  2055. cursor: pointer;
  2056. }
  2057. .detail_box {
  2058. background-color: rgb(231, 240, 247);
  2059. padding: 15px 20px;
  2060. box-sizing: border-box;
  2061. width: 100%;
  2062. }
  2063. .detail_box + .detail_box {
  2064. margin-top: 20px;
  2065. }
  2066. .detail_box .title {
  2067. display: flex;
  2068. align-items: center;
  2069. }
  2070. .detail_box .title > span:nth-child(1) {
  2071. font-size: 20px;
  2072. display: flex;
  2073. align-items: center;
  2074. }
  2075. .detail_box .box {
  2076. margin-top: 20px;
  2077. background-color: #fff;
  2078. padding: 15px 20px;
  2079. border-radius: 5px;
  2080. /* width: 100%; */
  2081. box-sizing: border-box;
  2082. overflow: auto;
  2083. }
  2084. .progress {
  2085. display: -webkit-box;
  2086. display: -ms-flexbox;
  2087. width: 100%;
  2088. overflow: auto;
  2089. padding: 15px 0;
  2090. }
  2091. .chapter {
  2092. margin-right: 30px;
  2093. min-width: 180px;
  2094. }
  2095. .chapter + .chapter {
  2096. padding-left: 10px;
  2097. border-left: 1px solid rgb(220, 220, 220);
  2098. }
  2099. .chapter .stage {
  2100. width: 100%;
  2101. color: #fff;
  2102. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2103. border-radius: 5px;
  2104. height: 50px;
  2105. line-height: 50px;
  2106. font-size: 18px;
  2107. text-align: center;
  2108. min-width: 180px;
  2109. }
  2110. .chapter .task {
  2111. display: flex;
  2112. width: 100%;
  2113. min-width: 180px;
  2114. }
  2115. .chapter .task .taskBox {
  2116. min-width: 180px;
  2117. height: 100%;
  2118. }
  2119. .chapter .task .taskBox + .taskBox {
  2120. margin-left: 10px;
  2121. }
  2122. .chapter .task .taskBox .taskName {
  2123. text-align: center;
  2124. margin: 10px 0;
  2125. display: flex;
  2126. flex-direction: row;
  2127. flex-wrap: nowrap;
  2128. align-items: center;
  2129. min-width: 180px;
  2130. width: 100%;
  2131. }
  2132. .toolIcon::before {
  2133. content: "";
  2134. width: 26px;
  2135. height: 26px;
  2136. display: inline-block;
  2137. background-image: url(../assets/icon/toolion.png);
  2138. background-size: 100% 100%;
  2139. }
  2140. .toolIcon::before {
  2141. content: "";
  2142. width: 26px;
  2143. height: 26px;
  2144. display: inline-block;
  2145. background-image: url(../assets/icon/toolion.png);
  2146. background-size: 100% 100%;
  2147. }
  2148. .taskIcon::before {
  2149. content: "";
  2150. width: 26px;
  2151. height: 26px;
  2152. display: inline-block;
  2153. background-image: url(../assets/icon/task.png);
  2154. background-size: 100% 100%;
  2155. }
  2156. .finishIcon::before {
  2157. content: "";
  2158. width: 26px;
  2159. height: 26px;
  2160. display: inline-block;
  2161. background-image: url(../assets/icon/finish.png);
  2162. background-size: 100% 100%;
  2163. }
  2164. .learningIcon::before {
  2165. content: "";
  2166. width: 22px;
  2167. height: 22px;
  2168. display: inline-block;
  2169. background-image: url(../assets/icon/learning.png);
  2170. background-size: 100% 100%;
  2171. }
  2172. .frequencyIcon::before {
  2173. content: "";
  2174. width: 26px;
  2175. height: 26px;
  2176. display: inline-block;
  2177. background-image: url(../assets/icon/frequency.png);
  2178. background-size: 100% 100%;
  2179. }
  2180. .timeIcon::before {
  2181. content: "";
  2182. width: 26px;
  2183. height: 26px;
  2184. display: inline-block;
  2185. background-image: url(../assets/icon/time.png);
  2186. background-size: 100% 100%;
  2187. }
  2188. .chapter_time_box {
  2189. border-left: 5px solid #f0f0f0;
  2190. padding: 0 30px;
  2191. box-sizing: border-box;
  2192. margin-top: 35px;
  2193. }
  2194. .c_box {
  2195. padding-top: 40px;
  2196. position: relative;
  2197. margin-top: 45px;
  2198. }
  2199. .c_box .stage_box {
  2200. display: flex;
  2201. align-items: center;
  2202. position: absolute;
  2203. top: -20px;
  2204. left: -45px;
  2205. }
  2206. .c_box .stage_box .yuan {
  2207. width: 25px;
  2208. height: 25px;
  2209. background: rgb(244, 244, 244);
  2210. border-radius: 25px;
  2211. display: flex;
  2212. align-items: center;
  2213. justify-content: center;
  2214. margin-right: 10px;
  2215. }
  2216. .c_box .stage_box .yuan::before {
  2217. content: "";
  2218. width: 15px;
  2219. height: 15px;
  2220. background: rgb(59, 149, 238);
  2221. border-radius: 25px;
  2222. }
  2223. .c_box .stage_box .stage {
  2224. background: linear-gradient(90deg, #477cd7, #65b9fc);
  2225. border-radius: 5px;
  2226. height: 50px;
  2227. line-height: 50px;
  2228. font-size: 18px;
  2229. color: #fff;
  2230. width: fit-content;
  2231. padding: 0 20px;
  2232. }
  2233. .s_up {
  2234. cursor: pointer;
  2235. transition: all 0.5s;
  2236. }
  2237. .s_up img {
  2238. width: 35px;
  2239. }
  2240. .s_up2 {
  2241. transform: rotate(90deg);
  2242. }
  2243. .lineBox {
  2244. width: 5px;
  2245. height: 20px;
  2246. background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
  2247. margin-right: 5px;
  2248. }
  2249. .disCss {
  2250. display: flex;
  2251. flex-direction: row;
  2252. flex-wrap: nowrap;
  2253. align-items: center;
  2254. }
  2255. .disCss > div {
  2256. margin: 10px 10px 0 0;
  2257. }
  2258. .titleCss {
  2259. text-align: center;
  2260. max-width: 100px;
  2261. white-space: nowrap;
  2262. overflow: hidden;
  2263. text-overflow: ellipsis;
  2264. word-break: break-word;
  2265. margin-left: 10px;
  2266. }
  2267. .navIndex {
  2268. border-bottom: 1px solid #d7d7d7;
  2269. padding-bottom: 5px;
  2270. background: #96d1ff;
  2271. width: 55px;
  2272. min-width: 55px;
  2273. border-radius: 5px;
  2274. color: #fff;
  2275. text-align: center;
  2276. height: 20px;
  2277. line-height: 26px;
  2278. font-size: 14px;
  2279. }
  2280. .stageCss {
  2281. cursor: pointer;
  2282. display: flex;
  2283. flex-direction: row;
  2284. flex-wrap: nowrap;
  2285. justify-content: center;
  2286. align-items: center;
  2287. }
  2288. .disabled {
  2289. background: rgba(210, 210, 210, 1);
  2290. }
  2291. .teaClass {
  2292. display: flex;
  2293. flex-direction: row;
  2294. flex-wrap: nowrap;
  2295. align-items: center;
  2296. }
  2297. .teaClass>div:nth-child(1){
  2298. min-width: 90px;
  2299. }
  2300. </style>