courseDetail.vue 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  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 v-if="screenType != 2 && screenType != '2s'" class="return" @click.stop="
  7. goTo(
  8. '/studentIndex?userid=' +
  9. userid +
  10. '&oid=' +
  11. oid +
  12. '&org=' +
  13. org +
  14. '&cid=' +
  15. classId +
  16. '&tType=' +
  17. tType +
  18. '&role=' +
  19. role +
  20. '&screenType=' +
  21. screenType
  22. )
  23. ">
  24. 返回
  25. </div>
  26. <div class="box_course">
  27. <div class="wheel">
  28. <img style="object-fit: cover" :src="this.courseDetail.cover != null &&
  29. this.courseDetail.cover != ''
  30. ? JSON.parse(this.courseDetail.cover).length > 0
  31. ? JSON.parse(this.courseDetail.cover)[0].url
  32. : mr
  33. : mr
  34. " alt />
  35. </div>
  36. <div class="right_box">
  37. <div class="rightT">
  38. <div class="right_box_title">{{ courseDetail.title }}</div>
  39. <div class="jd">{{ chapInfo.length }}阶段</div>
  40. <div class="jd">{{ rw }}任务</div>
  41. </div>
  42. <div class="cType">
  43. <div class="all_choose" v-for="(item, index) in courseType" :key="index">
  44. <span style="color: #6c6c6c">{{ item + ":" }}</span>
  45. <span class="type_children" v-for="(item2, index2) in courseTypeJson[item]" :key="index2">{{ item2
  46. }}</span>
  47. </div>
  48. </div>
  49. <div class="cType" style="font-size: 18px; color: #6c6c6c">
  50. <div style="min-width:150px">
  51. 创建者:<span style="color: #000">{{
  52. courseDetail.username
  53. }}</span>
  54. </div>
  55. <div class="Tname" v-if="Tname.length > 0" @click="TnameCheck = !TnameCheck">
  56. 协同人员:<span v-for="(tname, tIndex) in TnameCheck ? Tname : Tname.slice(0, 6)" :key="tIndex"
  57. style="margin: 0 5px; color: #000">{{ tname
  58. }}</span><span style="margin: 0 5px; color: #b2b2b2"
  59. v-if="!TnameCheck && Tname.length > 6">更多....</span>
  60. </div>
  61. </div>
  62. <div class="cType" style="font-size: 18px; color: #6c6c6c">
  63. </div>
  64. <div class="btnBox" v-if="false">
  65. <div class="now_study" @click="dialogVisible = true">
  66. 预览
  67. </div>
  68. <div class="now_study" @click="goToCongress">进展</div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="student_body">
  74. <div class="sLeft" v-if="courseDetail.brief">
  75. <div class="courseT">课程详情</div>
  76. <div class="courseTd">{{ courseDetail.brief }}</div>
  77. </div>
  78. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
  79. <div class="checkBox">
  80. <span :class="{ active: type == 1 }" @click="type = 1">阶段选择</span>
  81. <span :class="{ active: type == 2 }" @click="type = 2">项目进展</span>
  82. </div>
  83. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'" v-show="type == 1">
  84. <div class="blue_box_one" v-for="(item, index) in chapInfo" :key="index" @click="addUserRate(index)">
  85. <div>第{{ index + 1 }}阶段</div>
  86. <div :title="item.dyName">{{ item.dyName }}</div>
  87. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  88. </div>
  89. </div>
  90. <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'" v-if="type == 2">
  91. <courseProgress :cid="id" :userid="userid" :oid="oid" :org="org"></courseProgress>
  92. </div>
  93. </div>
  94. </div>
  95. <el-dialog title="阶段选择" :visible.sync="dialogVisible" :append-to-body="true" width="700px"
  96. :before-close="handleClose" class="dialog_change">
  97. <div style="font-size: 20px">请选择阶段</div>
  98. <div style="
  99. padding: 20px 30px;
  100. display: flex;
  101. flex-direction: row;
  102. flex-wrap: wrap;
  103. ">
  104. <div class="blue_box" v-for="(item, index) in chapInfo" :key="index" @click="addUserRate(index)">
  105. <div>第{{ index + 1 }}阶段</div>
  106. <div>{{ item.dyName }}</div>
  107. <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
  108. </div>
  109. </div>
  110. </el-dialog>
  111. </div>
  112. </div>
  113. </div>
  114. </template>
  115. <script>
  116. import Heatmap from '../tools/heatmap.vue'
  117. import courseProgress from './courseProgress.vue'
  118. export default {
  119. components: {
  120. Heatmap,
  121. courseProgress
  122. },
  123. data() {
  124. return {
  125. choose: 0,
  126. dialogVisible: false,
  127. id: this.$route.query.courseId,
  128. userid: this.$route.query.userid,
  129. oid: this.$route.query.oid,
  130. org: this.$route.query.org,
  131. classId: this.$route.query.cid,
  132. tType: this.$route.query.tType,
  133. role: this.$route.query.role,
  134. screenType: this.$route.query.screenType,
  135. courseDetail: {},
  136. aStudentName: [],
  137. chapInfo: [],
  138. courseType: [],
  139. Tname: [],
  140. TnameCheck: false,
  141. courseTypeJson: {},
  142. userinfo: [],
  143. mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  144. rw: 0,
  145. chaptersJson: {},
  146. type: 1,
  147. };
  148. },
  149. methods: {
  150. handleClose(done) {
  151. done();
  152. },
  153. goTo(path) {
  154. this.$router.push(path);
  155. },
  156. goToCongress() {
  157. window.location.href = 'https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseProgress?cid=' +
  158. this.id +
  159. '&userid=' +
  160. this.userid +
  161. '&oid=' +
  162. this.oid +
  163. '&org=' +
  164. this.org
  165. },
  166. addUserRate(i) {
  167. // var suid = this.userid;
  168. // if (
  169. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
  170. // JSON.parse(this.courseDetail.userid) != suid
  171. // ) {
  172. // this.$message.error("你没有该权限");
  173. // return;
  174. // }
  175. // var a =
  176. // this.courseDetail.course_student != ""
  177. // ? JSON.parse(this.courseDetail.course_student)
  178. // : "";
  179. // if (this.courseDetail.userid != suid) {
  180. // if (this.userinfo.type == 2) {
  181. // if (a != "") {
  182. // if (
  183. // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
  184. // ) {
  185. // this.$message.error("你没有该权限");
  186. // return;
  187. // }
  188. // } else {
  189. // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
  190. // return;
  191. // }
  192. // }
  193. // }
  194. // let params = {
  195. // uid: this.userid,
  196. // cid: this.id,
  197. // };
  198. // this.ajax
  199. // .get(this.$store.state.api + "addUserR", params)
  200. // .then((res) => {
  201. // console.log(res.data);
  202. // this.updateVc();
  203. this.goTo(
  204. "/studyStudentS?type=" +
  205. i +
  206. "&courseId=" +
  207. this.id +
  208. "&userid=" +
  209. this.userid +
  210. "&oid=" +
  211. this.oid +
  212. "&org=" +
  213. this.org +
  214. "&cid=" +
  215. this.classId +
  216. '&role=' +
  217. this.role +
  218. "&tType=" +
  219. this.tType +
  220. "&screenType=" +
  221. this.screenType
  222. );
  223. // })
  224. // .catch((err) => {
  225. // console.error(err);
  226. // });
  227. },
  228. updateVc() {
  229. let params = {
  230. cid: this.id,
  231. };
  232. this.ajax
  233. .get(this.$store.state.api + "updateVc", params)
  234. .then((res) => {
  235. console.log(res.data);
  236. })
  237. .catch((err) => {
  238. console.error(err);
  239. });
  240. },
  241. getCourseDetail() {
  242. const loading = this.$loading.service({
  243. background: "rgba(255, 255, 255, 0.7)",
  244. target: document.querySelector(".student_table"),
  245. });
  246. let params = {
  247. courseId: this.id,
  248. };
  249. this.ajax
  250. .get(this.$store.state.api + "selectStudentCourseDetail2", params)
  251. .then((res) => {
  252. loading.close();
  253. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  254. this.courseDetail = res.data[0][0];
  255. var a = res.data[0];
  256. var b = res.data[1];
  257. var c = res.data[2];
  258. for (var i = 0; i < b.length; i++) {
  259. // if (!this.id) {
  260. // this.courseType[b[i].id] = [];
  261. // }
  262. for (var j = 0; j < a.length; j++) {
  263. if (b[i].id == a[j].pid) {
  264. if (!this.courseTypeJson[b[i].name]) {
  265. this.courseType.push(b[i].name);
  266. this.courseTypeJson[b[i].name] = [];
  267. }
  268. this.courseTypeJson[b[i].name].push(a[j].name);
  269. }
  270. }
  271. }
  272. for (var k = 0; k < c.length; k++) {
  273. this.Tname.push(c[k].name);
  274. }
  275. console.log(this.courseTypeJson.length);
  276. this.aStudentName = res.data[2];
  277. this.chapInfo = JSON.parse(this.courseDetail.chapters);
  278. for (var z = 0; z < this.chapInfo.length; z++) {
  279. this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
  280. }
  281. // debugger
  282. })
  283. .catch((err) => {
  284. loading.close();
  285. console.error(err);
  286. });
  287. },
  288. getUser() {
  289. let params = { uid: this.userid };
  290. this.ajax
  291. .get(this.$store.state.api + "getUser", params)
  292. .then((res) => {
  293. this.userinfo = res.data[0][0];
  294. })
  295. .catch((err) => {
  296. console.error(err);
  297. });
  298. },
  299. // getSName() {
  300. // let params = {
  301. // uid: JSON.stringify(this.courseDetail.course_student),
  302. // };
  303. // this.ajax
  304. // .get(this.$store.state.api + "selectSName", params)
  305. // .then((res) => {
  306. // this.aStudentName = res.data[0];
  307. // })
  308. // .catch((err) => {
  309. // console.error(err);
  310. // });
  311. // },
  312. },
  313. created() {
  314. this.getCourseDetail();
  315. this.getUser();
  316. document.scrollingElement.scrollTop = 0;
  317. // this.getSName();
  318. },
  319. };
  320. </script>
  321. <style scoped>
  322. @media screen and (max-width: 1024px) {
  323. /* .Tname {
  324. width: 500px;
  325. white-space: nowrap;
  326. overflow: hidden;
  327. text-overflow: ellipsis;
  328. } */
  329. }
  330. .body_student {
  331. margin: 10px auto;
  332. width: 98%;
  333. height: 100%;
  334. }
  335. .student_head {
  336. width: 100%;
  337. background: #fff;
  338. height: 30%;
  339. position: relative;
  340. }
  341. .wheel {
  342. width: 250px;
  343. max-height: 146px;
  344. display: flex;
  345. align-items: center;
  346. }
  347. .man {
  348. width: 16px;
  349. height: 16px;
  350. }
  351. .wheel>img,
  352. .man>img {
  353. width: 100%;
  354. height: 100%;
  355. }
  356. .box_course {
  357. display: flex;
  358. padding: 25px 0 20px 60px;
  359. }
  360. .right_box {
  361. display: flex;
  362. flex-direction: column;
  363. margin-left: 30px;
  364. align-items: flex-start;
  365. width: calc(100% - 350px);
  366. }
  367. .right_box_title {
  368. font-size: 23px;
  369. max-width: calc(100% - 190px);
  370. white-space: nowrap;
  371. overflow: hidden;
  372. text-overflow: ellipsis;
  373. }
  374. .people {
  375. display: flex;
  376. margin-top: 20px;
  377. }
  378. .person {
  379. margin-left: 10px;
  380. /* line-height: 18px; */
  381. }
  382. .now_study {
  383. padding: 0 50px;
  384. height: 35px;
  385. color: #fff;
  386. background: #4a9eed;
  387. text-align: center;
  388. line-height: 35px;
  389. border-radius: 5px;
  390. font-size: 13px;
  391. cursor: pointer;
  392. margin-top: 30px;
  393. }
  394. .now_study+.now_study {
  395. margin-left: 10px;
  396. }
  397. .choose_who {
  398. display: flex;
  399. margin: 15px 0 0 25px;
  400. }
  401. .who_choose {
  402. height: 28px;
  403. cursor: pointer;
  404. }
  405. .choose_who>div:nth-child(2) {
  406. margin-left: 35px;
  407. }
  408. .choose {
  409. border-bottom: 5px solid #4a9eed;
  410. color: #4a9eed;
  411. }
  412. .student_body {
  413. display: flex;
  414. }
  415. .student_body,
  416. .right {
  417. width: 100%;
  418. margin: 10px auto;
  419. min-height: 688px;
  420. }
  421. .nav {
  422. margin: auto 25px;
  423. width: 80%;
  424. padding-top: 5px;
  425. text-indent: 25px;
  426. }
  427. .pic {
  428. width: 100%;
  429. display: flex;
  430. flex-direction: row;
  431. flex-wrap: wrap;
  432. height: 100%;
  433. justify-content: space-evenly;
  434. }
  435. .Img {
  436. /*width: 30%; */
  437. width: 300px;
  438. margin: 20px 50px;
  439. margin: 20px 10px;
  440. border: 1px solid #dbdbdb;
  441. border-radius: 5px;
  442. overflow: hidden;
  443. }
  444. .Img>img {
  445. width: 100%;
  446. height: 100%;
  447. }
  448. .student_body_one,
  449. .right_one {
  450. width: 100%;
  451. margin: 0 auto;
  452. background: #fff;
  453. margin-top: 10px;
  454. min-height: 688px;
  455. }
  456. .student {
  457. width: 85%;
  458. display: flex;
  459. flex-direction: row;
  460. flex-wrap: wrap;
  461. justify-content: flex-start;
  462. margin: auto 10px;
  463. }
  464. .student>div {
  465. width: 12%;
  466. height: 35px;
  467. background: #e3759a;
  468. text-align: center;
  469. border: 1px solid #e3759a;
  470. border-radius: 5px;
  471. color: #fff;
  472. line-height: 35px;
  473. margin: 10px;
  474. }
  475. .dialog_change>>>.el-dialog {
  476. border-radius: 5px;
  477. }
  478. .dialog_change>>>.el-dialog__header {
  479. background: #303030;
  480. height: 36px;
  481. line-height: 36px;
  482. padding-left: 10px;
  483. padding: 0px 10px 0px;
  484. }
  485. .dialog_change>>>.el-dialog__headerbtn {
  486. top: 10px !important;
  487. right: 10px !important;
  488. }
  489. .dialog_change>>>.el-dialog__title {
  490. color: #fff;
  491. font-size: 14px;
  492. line-height: 5px;
  493. }
  494. .dialog_change>>>.el-dialog__body {
  495. background: #f5f5f5;
  496. }
  497. .blue_box {
  498. align-items: center;
  499. display: flex;
  500. flex-direction: column;
  501. justify-content: center;
  502. }
  503. .blue_box,
  504. .blue_box_one {
  505. width: 30%;
  506. height: 100px;
  507. text-align: center;
  508. color: #fff;
  509. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  510. border-radius: 15px;
  511. margin: 15px 0 15px 15px;
  512. cursor: pointer;
  513. }
  514. .blue_box_one {
  515. width: 200px;
  516. height: 200px;
  517. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  518. display: flex;
  519. flex-direction: column;
  520. flex-wrap: nowrap;
  521. align-items: center;
  522. justify-content: center;
  523. }
  524. .blue_box_one>div {
  525. margin: 5px 0;
  526. }
  527. .blue_box_one>div:nth-child(1) {
  528. font-size: 20px;
  529. font-weight: bold;
  530. }
  531. .blue_box>div:nth-child(2) {
  532. margin-top: 10px;
  533. }
  534. .blue_box_one>div:nth-child(2) {
  535. white-space: nowrap;
  536. text-overflow: ellipsis;
  537. overflow: hidden;
  538. word-break: break-all;
  539. width: 100%;
  540. text-align: center;
  541. max-width: calc(100% - 85px);
  542. margin: 0 auto;
  543. }
  544. .return {
  545. background: #205cc6;
  546. width: 70px;
  547. height: 30px;
  548. color: #fff;
  549. text-align: center;
  550. line-height: 32px;
  551. margin-right: 20px;
  552. cursor: pointer;
  553. border-radius: 5px;
  554. position: absolute;
  555. right: 0;
  556. top: 24px;
  557. font-size: 14px;
  558. }
  559. .return>img {
  560. width: 100%;
  561. height: 100%;
  562. }
  563. .cType {
  564. display: flex;
  565. flex-direction: row;
  566. justify-content: center;
  567. align-items: center;
  568. margin-top: 20px;
  569. }
  570. .cType>div>span {
  571. font-size: 18px;
  572. }
  573. .type_children+.type_children {
  574. margin-left: 10px;
  575. }
  576. .all_choose {
  577. margin-right: 10px;
  578. /* max-width: 250px; */
  579. white-space: nowrap;
  580. overflow: hidden;
  581. text-overflow: ellipsis;
  582. }
  583. .rightT {
  584. display: flex;
  585. flex-direction: row;
  586. flex-wrap: nowrap;
  587. align-items: center;
  588. width: calc(100% - 20px);
  589. }
  590. .jd {
  591. background: #4a9eed;
  592. margin-left: 15px;
  593. border-radius: 10px;
  594. color: #fff;
  595. width: 70px;
  596. height: 25px;
  597. text-align: center;
  598. line-height: 25px;
  599. }
  600. .sLeft {
  601. width: 14%;
  602. margin-right: 10px;
  603. background: rgb(255, 255, 255);
  604. padding: 20px 15px 0 15px;
  605. box-sizing: border-box;
  606. border-radius: 10px;
  607. }
  608. .courseT {
  609. border-left: 3px solid #2e66c9;
  610. padding-left: 5px;
  611. color: #2e66c9;
  612. font-weight: bold;
  613. }
  614. .courseTd {
  615. padding-top: 15px;
  616. height: 700px;
  617. overflow: auto;
  618. word-break: break-word;
  619. }
  620. .courseTd::-webkit-scrollbar {
  621. /*滚动条整体样式*/
  622. width: 6px;
  623. /*高宽分别对应横竖滚动条的尺寸*/
  624. height: 6px;
  625. }
  626. /*定义滚动条轨道 内阴影+圆角*/
  627. .courseTd::-webkit-scrollbar {
  628. border-radius: 10px;
  629. background-color: #eee;
  630. }
  631. /*定义滑块 内阴影+圆角*/
  632. .courseTd::-webkit-scrollbar-thumb {
  633. border-radius: 10px;
  634. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  635. background-color: rgba(0, 0, 0, 0.1);
  636. }
  637. .rightTd,
  638. .noBRight {
  639. width: 84%;
  640. background: #fff;
  641. display: flex;
  642. flex-direction: row;
  643. flex-wrap: wrap;
  644. align-content: flex-start;
  645. align-items: center;
  646. justify-content: flex-start;
  647. }
  648. .noBRight {
  649. width: 100%;
  650. }
  651. .Tname {
  652. cursor: pointer;
  653. margin-left: 40px;
  654. word-break: break-all;
  655. width: auto;
  656. /* overflow: hidden;
  657. white-space: nowrap;
  658. text-overflow: ellipsis; */
  659. }
  660. /* .TnameC{
  661. width:auto;
  662. overflow: unset;
  663. white-space: unset;
  664. text-overflow: unset;
  665. } */
  666. .detail {
  667. width: 100%;
  668. padding: 15px;
  669. box-sizing: border-box;
  670. }
  671. .statebox {
  672. display: flex;
  673. align-items: center;
  674. box-sizing: border-box;
  675. margin-left: 30px;
  676. }
  677. .statebox div {
  678. padding: 10px 20px;
  679. border-radius: 5px;
  680. background: #fff;
  681. display: flex;
  682. align-items: center;
  683. }
  684. .statebox div+div {
  685. margin-left: 20px;
  686. }
  687. .statebox div span {
  688. font-size: 16px;
  689. display: flex;
  690. align-items: center;
  691. }
  692. .statebox div span+span {
  693. margin-left: 10px;
  694. color: #1463eb;
  695. }
  696. .p_tool_box {
  697. display: flex;
  698. flex-wrap: wrap;
  699. background: rgb(217, 227, 239);
  700. /* color: #fff; */
  701. padding: 0 15px 10px;
  702. align-items: center;
  703. justify-content: space-evenly;
  704. border-radius: 5px;
  705. height: 200px;
  706. overflow: auto;
  707. }
  708. .p_tool {
  709. display: flex;
  710. margin-top: 10px;
  711. }
  712. .p_tool>div {
  713. display: flex;
  714. flex-direction: column;
  715. align-items: center;
  716. min-width: 60px;
  717. }
  718. .p_tool>div img {
  719. width: 50px;
  720. height: 50px;
  721. }
  722. .p_tool>div>div {
  723. margin-top: 5px;
  724. font-size: 12px;
  725. }
  726. .p_tool_box2 {
  727. padding: 10px 15px;
  728. }
  729. .p_tool2 {
  730. margin-right: 20px;
  731. display: flex;
  732. flex-direction: column;
  733. align-items: flex-start;
  734. /* margin-bottom: 10px; */
  735. }
  736. .p_tool2>div:nth-child(1) {
  737. margin-bottom: 10px;
  738. }
  739. .toolBigBox {
  740. display: flex;
  741. flex-direction: column;
  742. }
  743. .toolSta {
  744. display: flex;
  745. margin: 20px 0 0;
  746. }
  747. .toolSta>div {
  748. display: flex;
  749. }
  750. .toolSta>div+div {
  751. margin-left: 50px;
  752. }
  753. .toolSta>div>div:nth-child(1) {
  754. margin: 10px 10px 0 0;
  755. }
  756. .toolSta>div>div:nth-child(2)>div {
  757. background: rgb(79, 140, 223);
  758. color: #fff;
  759. display: flex;
  760. padding: 10px 15px;
  761. min-width: 150px;
  762. font-size: 16px;
  763. align-items: center;
  764. border-radius: 5px;
  765. }
  766. .toolSta>div:nth-child(2)>div:nth-child(2)>div {
  767. background: rgb(53, 103, 172);
  768. }
  769. .toolSta>div>div:nth-child(2)>div+div {
  770. margin-top: 10px;
  771. }
  772. .toolSta>div>div:nth-child(2)>div>div+div {
  773. margin: 0 20px;
  774. }
  775. .p_tool2 .toolbox {
  776. display: flex;
  777. align-items: center;
  778. margin-top: 10px;
  779. }
  780. .checkBox {
  781. display: flex;
  782. padding: 20px 0 0 20px;
  783. box-sizing: border-box;
  784. width: 100%;
  785. }
  786. .checkBox span {
  787. padding: 0 10px 5px;
  788. cursor: pointer;
  789. font-size: 18px;
  790. }
  791. .checkBox span+span {
  792. margin-left: 20px;
  793. }
  794. .checkBox .active {
  795. border-bottom: 2px solid rgb(75, 151, 229);
  796. cursor: pointer;
  797. }
  798. .detail_box {
  799. background-color: rgb(231, 240, 247);
  800. padding: 15px 20px;
  801. box-sizing: border-box;
  802. width: 100%;
  803. }
  804. .detail_box+.detail_box {
  805. margin-top: 20px;
  806. }
  807. .detail_box .title {
  808. display: flex;
  809. align-items: center;
  810. }
  811. .detail_box .title>span:nth-child(1) {
  812. font-size: 20px;
  813. display: flex;
  814. align-items: center;
  815. }
  816. .detail_box .box {
  817. margin-top: 20px;
  818. background-color: #fff;
  819. padding: 15px 20px;
  820. border-radius: 5px;
  821. /* width: 100%; */
  822. box-sizing: border-box;
  823. overflow: auto;
  824. }
  825. .progress {
  826. display: -webkit-box;
  827. display: -ms-flexbox;
  828. width: 100%;
  829. overflow: auto;
  830. padding: 15px 0;
  831. }
  832. .chapter {
  833. margin-right: 10px;
  834. }
  835. .chapter+.chapter {
  836. padding-left: 10px;
  837. border-left: 1px solid rgb(220, 220, 220);
  838. }
  839. .chapter .stage {
  840. width: 100%;
  841. color: #fff;
  842. background: linear-gradient(90deg, #477cd7, #65b9fc);
  843. border-radius: 5px;
  844. height: 50px;
  845. line-height: 50px;
  846. font-size: 18px;
  847. text-align: center;
  848. }
  849. .chapter .task {
  850. display: flex;
  851. width: 100%;
  852. }
  853. .chapter .task .taskBox {
  854. min-width: 110px;
  855. max-width: 180px;
  856. height: 100%;
  857. }
  858. .chapter .task .taskBox+.taskBox {
  859. margin-left: 10px;
  860. }
  861. .chapter .task .taskBox .taskName {
  862. text-align: center;
  863. margin: 10px
  864. }
  865. .toolIcon::before {
  866. content: '';
  867. width: 26px;
  868. height: 26px;
  869. display: inline-block;
  870. background-image: url(../../assets/icon/toolion.png);
  871. background-size: 100% 100%;
  872. }
  873. .toolIcon::before {
  874. content: '';
  875. width: 26px;
  876. height: 26px;
  877. display: inline-block;
  878. background-image: url(../../assets/icon/toolion.png);
  879. background-size: 100% 100%;
  880. }
  881. .taskIcon::before {
  882. content: '';
  883. width: 26px;
  884. height: 26px;
  885. display: inline-block;
  886. background-image: url(../../assets/icon/task.png);
  887. background-size: 100% 100%;
  888. }
  889. .finishIcon::before {
  890. content: '';
  891. width: 26px;
  892. height: 26px;
  893. display: inline-block;
  894. background-image: url(../../assets/icon/finish.png);
  895. background-size: 100% 100%;
  896. }
  897. .learningIcon::before {
  898. content: '';
  899. width: 22px;
  900. height: 22px;
  901. display: inline-block;
  902. background-image: url(../../assets/icon/learning.png);
  903. background-size: 100% 100%;
  904. }
  905. .frequencyIcon::before {
  906. content: '';
  907. width: 26px;
  908. height: 26px;
  909. display: inline-block;
  910. background-image: url(../../assets/icon/frequency.png);
  911. background-size: 100% 100%;
  912. }
  913. .timeIcon::before {
  914. content: '';
  915. width: 26px;
  916. height: 26px;
  917. display: inline-block;
  918. background-image: url(../../assets/icon/time.png);
  919. background-size: 100% 100%;
  920. }
  921. .chapter_time_box {
  922. border-left: 5px solid #f0f0f0;
  923. padding: 0 30px;
  924. box-sizing: border-box;
  925. margin-top: 35px;
  926. }
  927. .c_box {
  928. padding-top: 40px;
  929. position: relative;
  930. margin-top: 45px;
  931. }
  932. .c_box .stage_box {
  933. display: flex;
  934. align-items: center;
  935. position: absolute;
  936. top: -20px;
  937. left: -45px;
  938. }
  939. .c_box .stage_box .yuan {
  940. width: 25px;
  941. height: 25px;
  942. background: rgb(244, 244, 244);
  943. border-radius: 25px;
  944. display: flex;
  945. align-items: center;
  946. justify-content: center;
  947. margin-right: 10px;
  948. }
  949. .c_box .stage_box .yuan::before {
  950. content: '';
  951. width: 15px;
  952. height: 15px;
  953. background: rgb(59, 149, 238);
  954. border-radius: 25px;
  955. }
  956. .c_box .stage_box .stage {
  957. background: linear-gradient(90deg, #477cd7, #65b9fc);
  958. border-radius: 5px;
  959. height: 50px;
  960. line-height: 50px;
  961. font-size: 18px;
  962. color: #fff;
  963. width: fit-content;
  964. padding: 0 20px;
  965. }
  966. .s_up {
  967. cursor: pointer;
  968. transition: all .5s;
  969. }
  970. .s_up img {
  971. width: 35px;
  972. }
  973. .s_up2 {
  974. transform: rotate(90deg);
  975. }
  976. .btnBox {
  977. display: flex;
  978. }
  979. .checkBox {
  980. display: flex;
  981. padding: 20px 0 0 20px;
  982. box-sizing: border-box;
  983. width: 100%;
  984. }
  985. .checkBox span {
  986. padding: 0 10px 5px;
  987. cursor: pointer;
  988. font-size: 18px;
  989. }
  990. .checkBox span+span {
  991. margin-left: 20px;
  992. }
  993. .checkBox .active {
  994. border-bottom: 2px solid rgb(75, 151, 229);
  995. cursor: pointer;
  996. }
  997. </style>