study.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="display: flex; min-height: 800px">
  4. <div
  5. style="
  6. width: 20%;
  7. margin-right: 10px;
  8. background: #fff;
  9. padding-right: 10px;
  10. "
  11. >
  12. <div class="courseTitle">
  13. {{ courseDetail.title }}
  14. </div>
  15. <div class="ml">目录</div>
  16. <div
  17. class="blue_box_one"
  18. v-for="(item, index) in chapInfoList"
  19. :key="index"
  20. @click="get(index)"
  21. >
  22. <div>{{ index + 1 }}阶段</div>
  23. <div>{{ item.dyName }}</div>
  24. </div>
  25. </div>
  26. <div class="body_student">
  27. <div class="study_top">
  28. <div class="checkbox">
  29. <div
  30. class="check"
  31. :class="{ checked: type == 1 }"
  32. @click="type = 1"
  33. >
  34. <div v-if="type == 1">
  35. <img src="../assets/icon/videoActive.png" alt="" />
  36. </div>
  37. <div v-else><img src="../assets/icon/video.png" alt="" /></div>
  38. 视频
  39. </div>
  40. <div
  41. class="check"
  42. :class="{ checked: type == 2 }"
  43. @click="type = 2"
  44. >
  45. <div v-if="type == 2">
  46. <img src="../assets/icon/navActive.png" alt="" />
  47. </div>
  48. <div v-else><img src="../assets/icon/nav.png" alt="" /></div>
  49. 文档资料
  50. </div>
  51. <div
  52. class="check"
  53. :class="{ checked: type == 3 }"
  54. @click="type = 3"
  55. >
  56. <div v-if="type == 3">
  57. <img src="../assets/icon/wordActive.png" alt="" />
  58. </div>
  59. <div v-else><img src="../assets/icon/word.png" alt="" /></div>
  60. 附件
  61. </div>
  62. <div
  63. class="check"
  64. :class="{ checked: type == 4 }"
  65. @click="type = 4"
  66. >
  67. <div v-if="type == 4">
  68. <img src="../assets/icon/workActive.png" alt="" />
  69. </div>
  70. <div v-else><img src="../assets/icon/work.png" alt="" /></div>
  71. 作业与测验
  72. </div>
  73. </div>
  74. <div
  75. class="returnBtn"
  76. @click.stop="
  77. goTo(
  78. '/courseDetail?userid=' +
  79. userid +
  80. '&oid=' +
  81. oid +
  82. '&courseId=' +
  83. id
  84. )
  85. "
  86. >
  87. 返回
  88. </div>
  89. </div>
  90. <div class="student_head" v-if="type == 1">
  91. <div class="box_course">
  92. <div class="wheel" v-if="vedio.length > 0">
  93. <div class="workd_media">
  94. <!-- <el-image
  95. style="width: 100%; height: 300px"
  96. :src="require('../../assets/tu4.png')"
  97. ></el-image> -->
  98. <video-player
  99. class="video-player vjs-custom-skin"
  100. ref="videoPlayer"
  101. :playsinline="true"
  102. :options="playerO"
  103. @play="onPlayerPlay($event)"
  104. style="width: 65%; height: 100%; margin: 20px auto"
  105. ></video-player>
  106. </div>
  107. <!-- <div class="cd_content_steps">
  108. <div
  109. class="cd_steps_box"
  110. v-for="(media, index) in vedio"
  111. :key="media"
  112. @click="switchVideo(media, index)"
  113. >
  114. <i :class="{ active: index < 1 }"></i> -->
  115. <!-- <i
  116. :class="{
  117. active: playerOptions.sources[0].src == media,
  118. }"
  119. ></i>
  120. <span>视频{{ index + 1 }}</span> -->
  121. <!-- </div>
  122. </div> -->
  123. <!-- <img src="../assets/sp2.png" alt="" /> -->
  124. </div>
  125. <div style="font-size: 18px; margin: 15px">
  126. {{ chapInfo.dyName }}
  127. </div>
  128. </div>
  129. </div>
  130. <div class="student_body">
  131. <div class="videoTop">
  132. <div v-if="type == 1">视频列表</div>
  133. <div v-if="type == 3">{{ chapInfo.dyName }}</div>
  134. <div v-else></div>
  135. <div
  136. @click="openAddWork"
  137. class="upbtn"
  138. v-if="type == 1 || type == 2"
  139. >
  140. 提交实践作业
  141. </div>
  142. </div>
  143. <div class="project_box" v-if="type == 2">
  144. <div class="detail_content_top">
  145. <div class="detail_title">{{ chapInfo.dyName }}</div>
  146. <div class="detail_time">{{ courseDetail.time }}</div>
  147. </div>
  148. <div class="detail_content" v-html="courseDetail.template"></div>
  149. </div>
  150. <div class="project_box" v-if="type == 1 && vedio.length > 0">
  151. <div class="filebox">
  152. <div class="media" v-for="(media, index) in vedio" :key="index">
  153. <img
  154. :src="
  155. media.cover != null && media.cover != ''
  156. ? JSON.parse(media.cover).length > 0
  157. ? JSON.parse(media.cover)[0].url
  158. : mr
  159. : mr
  160. "
  161. alt=""
  162. />
  163. <div class="title">{{ media.name }}</div>
  164. <div class="btn" @click="lookVedio(media.url)">点击播放</div>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="project_box" v-if="type == 1 && vedio.length == 0">
  169. 暂无视频
  170. </div>
  171. <div class="project_box" v-if="type == 3">
  172. <div class="filebox">
  173. <div
  174. class="file"
  175. v-for="(f, index) in file"
  176. :key="index"
  177. @click="downFile(index)"
  178. >
  179. <img :src="require('../assets/file.png')" alt="" />
  180. <div>{{ f.name }}</div>
  181. </div>
  182. </div>
  183. <div class="upFile" v-if="type == 3 || type == 4">提交</div>
  184. </div>
  185. <div class="project_box" v-if="type == 4">
  186. <div class="filebox">
  187. 暂无数据
  188. <!-- <div
  189. class="file"
  190. v-for="(f, index) in file"
  191. :key="index"
  192. @click="downFile(index)"
  193. >
  194. <img :src="require('../assets/file.png')" alt="" />
  195. <div>{{ f.name }}</div>
  196. </div> -->
  197. </div>
  198. <div class="upFile" v-if="type == 3 || type == 4">提交</div>
  199. </div>
  200. </div>
  201. <el-dialog
  202. title="提交实践作业"
  203. :visible.sync="dialogVisible"
  204. :append-to-body="true"
  205. width="500px"
  206. :before-close="handleClose"
  207. class="dialog_change"
  208. >
  209. <div class="first">
  210. <div>作业名称:</div>
  211. <div>{{ chapInfo.dyName }}</div>
  212. </div>
  213. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  214. <el-input
  215. type="textarea"
  216. resize="none"
  217. rows="7"
  218. placeholder="输入文字描述..."
  219. v-model="studyJuri[0].content"
  220. >
  221. </el-input>
  222. <div class="marginT">
  223. <div>上传图片</div>
  224. <div
  225. class="chapter_add"
  226. v-if="studyJuri[0].cover.length == 0"
  227. @click="addImg($event)"
  228. >
  229. <div class="up_photo">
  230. <img src="../assets/photo.png" alt="" />
  231. </div>
  232. <input
  233. type="file"
  234. accept="image/png,image/gif,image/jpeg"
  235. style="display: none"
  236. @change="beforeUpload1($event, 1)"
  237. />
  238. </div>
  239. <div class="chapter_add" v-else>
  240. <img
  241. :src="
  242. studyJuri[0].cover[0].url != null &&
  243. studyJuri[0].cover[0].url != ''
  244. ? studyJuri[0].cover[0].url
  245. : mr
  246. "
  247. alt=""
  248. />
  249. <span>{{ studyJuri[0].cover[0].name }}</span>
  250. <div class="deleteWord" @click="clean(1)">
  251. <img src="../assets/icon/delete.png" alt="" />
  252. </div>
  253. </div>
  254. </div>
  255. <div class="marginT">
  256. <div>上传视频</div>
  257. <div
  258. class="chapter_add"
  259. v-if="studyJuri[0].upVedio.length == 0"
  260. @click="addImg($event)"
  261. >
  262. <div class="up_photo">
  263. <img src="../assets/vidio.png" alt="" />
  264. </div>
  265. <input
  266. type="file"
  267. accept="video/mp4,video/quicktime,video/x-msvideo"
  268. style="display: none"
  269. @change="beforeUpload2($event, 2)"
  270. />
  271. </div>
  272. <div class="chapter_add" v-else>
  273. <img :src="mr" alt="" />
  274. <span>{{ studyJuri[0].upVedio[0].name }}</span>
  275. <div class="deleteWord" @click="clean(2)">
  276. <img src="../assets/icon/delete.png" alt="" />
  277. </div>
  278. </div>
  279. </div>
  280. <!-- <div class="marginT">
  281. <div>附件上传</div>
  282. <div
  283. class="chapter_add"
  284. v-if="studyJuri[0].upFile.length == 0"
  285. @click="addImg($event)"
  286. >
  287. <div class="up_photo">
  288. <el-button
  289. type="small"
  290. style="background: rgb(60, 102, 189); color: #fff"
  291. >点击上传</el-button
  292. >
  293. </div>
  294. <input
  295. type="file"
  296. accept="application/pdf,.ppt,.pptx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  297. style="display: none"
  298. @change="beforeUpload2($event, 3)"
  299. />
  300. </div>
  301. <div class="chapter_add" v-else>
  302. <img :src="require('../assets/file.png')" alt="" />
  303. <span>{{ studyJuri[0].upFile[0].name }}</span>
  304. <div class="deleteWord" @click="clean(3)">
  305. <img src="../assets/icon/delete.png" alt="" />
  306. </div>
  307. </div>
  308. </div> -->
  309. <div class="upload_send" @click="addWork">提交</div>
  310. </el-dialog>
  311. </div>
  312. </div>
  313. </div>
  314. </template>
  315. <script>
  316. import "../common/aws-sdk-2.235.1.min.js";
  317. export default {
  318. data() {
  319. return {
  320. dialogVisible: false,
  321. id: this.$route.query.courseId,
  322. userid: this.$route.query.userid,
  323. courseType: this.$route.query.type,
  324. oid: this.$route.query.oid,
  325. type: 1,
  326. vedio: [],
  327. file: [],
  328. rateList: {
  329. ca: 0,
  330. },
  331. rateParams: [],
  332. colors: ["#000", "#000", "#000"],
  333. studyJuri: [
  334. {
  335. content: "",
  336. cover: [],
  337. upVedio: [],
  338. upFile: [],
  339. },
  340. ],
  341. mr: require("../assets/tu4.png"),
  342. courseDetail: {},
  343. chapInfo: [],
  344. chapInfoList: [],
  345. playerOptions: {
  346. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  347. autoplay: false, //如果true,浏览器准备好时开始回放。
  348. muted: false, // 默认情况下将会消除任何音频。
  349. loop: false, // 导致视频一结束就重新开始。
  350. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  351. language: "zh-CN",
  352. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  353. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  354. sources: [
  355. {
  356. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  357. src: "", //url地址require("../../assets/media/aaa.mp4")
  358. },
  359. ],
  360. // poster: require("../../assets/tu31.png"), //你的封面地址
  361. // poster: dataRes.imgUrl, //你的封面地址
  362. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  363. controlBar: {
  364. timeDivider: true, //当前时间和持续时间的分隔符
  365. durationDisplay: true, //显示持续时间
  366. remainingTimeDisplay: false, //是否显示剩余时间功能
  367. fullscreenToggle: true, //全屏按钮
  368. },
  369. },
  370. playerO: {},
  371. noneBtnImg: false,
  372. };
  373. },
  374. methods: {
  375. goTo(path) {
  376. this.$router.push(path);
  377. },
  378. clean(type) {
  379. if (type == 1) {
  380. this.studyJuri[0].cover.splice(0, 1);
  381. } else if (type == 2) {
  382. this.studyJuri[0].upVedio.splice(0, 1);
  383. } else {
  384. this.studyJuri[0].upFile.splice(0, 1);
  385. }
  386. },
  387. handleClose(done) {
  388. done();
  389. // this.studyJuri[0].push([
  390. // {
  391. // content: "",
  392. // cover: [],
  393. // upVedio: [],
  394. // upFile: [],
  395. // },
  396. // ]);
  397. },
  398. imgChange(file, fileList, type) {
  399. if (type == 1) {
  400. var _tmp = this.studyJuri[0].cover;
  401. } else if (type == 2) {
  402. var _tmp = this.studyJuri[0].upVedio;
  403. } else {
  404. var _tmp = this.studyJuri[0].upFile;
  405. }
  406. this.noneBtnImg = _tmp.length >= 1;
  407. },
  408. addImg(e) {
  409. var el = e.currentTarget;
  410. el.getElementsByTagName("input")[0].click();
  411. },
  412. beforeUpload1(event, type) {
  413. var file = event.target.files[0];
  414. var credentials = {
  415. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  416. secretAccessKey: "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",
  417. }; //秘钥形式的登录上传
  418. window.AWS.config.update(credentials);
  419. window.AWS.config.region = "cn-northwest-1"; //设置区域
  420. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  421. var _this = this;
  422. if (file) {
  423. var params = {
  424. Key:
  425. file.name.split(".")[0] +
  426. new Date().getTime() +
  427. "." +
  428. file.name.split(".")[1],
  429. ContentType: file.type,
  430. Body: file,
  431. "Access-Control-Allow-Credentials": "*",
  432. ACL: "public-read",
  433. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  434. var options = {
  435. partSize: 2048 * 1024 * 1024,
  436. queueSize: 2,
  437. leavePartsOnError: true,
  438. };
  439. bucket
  440. .upload(params, options)
  441. .on("httpUploadProgress", function (evt) {
  442. //这里可以写进度条
  443. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  444. })
  445. .send(function (err, data) {
  446. if (err) {
  447. var a = _this.$refs.upload1.uploadFiles;
  448. a.splice(a.length - 1, a.length);
  449. _this.$message.error("上传失败");
  450. } else {
  451. _this.studyJuri[0].cover.push({
  452. name: file.name,
  453. url: data.Location,
  454. uid: file.uid,
  455. });
  456. _this.imgChange(null, null, type);
  457. console.log(data.Location);
  458. }
  459. });
  460. }
  461. },
  462. beforeUpload2(event, type) {
  463. var file = event.target.files[0];
  464. var credentials = {
  465. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  466. secretAccessKey: "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",
  467. }; //秘钥形式的登录上传
  468. window.AWS.config.update(credentials);
  469. window.AWS.config.region = "cn-northwest-1"; //设置区域
  470. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  471. var _this = this;
  472. if (file) {
  473. var params = {
  474. Key:
  475. file.name.split(".")[0] +
  476. new Date().getTime() +
  477. "." +
  478. file.name.split(".")[1],
  479. ContentType: file.type,
  480. Body: file,
  481. "Access-Control-Allow-Credentials": "*",
  482. ACL: "public-read",
  483. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  484. var options = {
  485. partSize: 2048 * 1024 * 1024,
  486. queueSize: 2,
  487. leavePartsOnError: true,
  488. };
  489. bucket
  490. .upload(params, options)
  491. .on("httpUploadProgress", function (evt) {
  492. //这里可以写进度条
  493. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  494. })
  495. .send(function (err, data) {
  496. if (err) {
  497. var a = _this.$refs.upload1.uploadFiles;
  498. a.splice(a.length - 1, a.length);
  499. _this.$message.error("上传失败");
  500. } else {
  501. if (type == 2) {
  502. _this.studyJuri[0].upVedio.push({
  503. name: file.name,
  504. url: data.Location,
  505. uid: file.uid,
  506. });
  507. _this.imgChange(null, null, type);
  508. } else if (type == 3) {
  509. _this.studyJuri[0].upFile.push({
  510. name: file.name,
  511. url: data.Location,
  512. uid: file.uid,
  513. });
  514. _this.imgChange(null, null, type);
  515. }
  516. console.log(data.Location);
  517. }
  518. });
  519. }
  520. },
  521. get(i) {
  522. this.courseType = i;
  523. this.getCourseDetail();
  524. },
  525. getCourseDetail() {
  526. const loading = this.$loading.service({
  527. background: "rgba(255, 255, 255, 0.7)",
  528. target: document.querySelector(".student_table"),
  529. });
  530. var t = this.courseType;
  531. let params = {
  532. courseId: this.id,
  533. };
  534. this.ajax
  535. .get(this.$store.state.api + "selectCourseDetail", params)
  536. .then((res) => {
  537. loading.close();
  538. // element.imgUrl = JSON.parse(element.chapters).poster;
  539. var a = JSON.parse(res.data[0][0].chapters)[t].chapterInfo[0]
  540. .chapterData;
  541. var b = [
  542. "AVI",
  543. "NAVI",
  544. "MPEG",
  545. "ASF",
  546. "MOV",
  547. "WMV",
  548. "3GP",
  549. "RM",
  550. "RMVB",
  551. "FLV",
  552. "F4V",
  553. "H.264",
  554. "H.265",
  555. "REAL VIDEO",
  556. "MKV",
  557. "WebM",
  558. "HDDVD",
  559. "MP4",
  560. "MPG",
  561. "M4V",
  562. "MGV",
  563. "OGV",
  564. "QTM",
  565. "STR",
  566. "AMC",
  567. "DVX",
  568. "EVO",
  569. "DAT",
  570. "OGG",
  571. "OGM",
  572. ];
  573. this.vedio = [];
  574. this.file = [];
  575. for (var i = 0; i < a.length; i++) {
  576. if (
  577. b.indexOf(
  578. a[i].url
  579. .split(".")
  580. [a[i].url.split(".").length - 1].toLocaleUpperCase()
  581. ) != -1
  582. ) {
  583. this.vedio.push(a[i]);
  584. } else {
  585. this.file.push(a[i]);
  586. }
  587. }
  588. // element.mediaList = JSON.parse(element.chapters)[0].chapterInfo[t].chapterData;
  589. console.log(this.vedio);
  590. console.log(this.file);
  591. // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  592. this.courseDetail = res.data[0][0];
  593. this.chapInfo = JSON.parse(this.courseDetail.chapters)[t];
  594. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  595. // this.playerOptions.poster = this.course.imgUrl;
  596. this.playerOptions.sources[0].src =
  597. this.vedio.length > 0
  598. ? this.vedio[0].url
  599. : require("../assets/icon/wheel.png");
  600. console.log(this.playerOptions.sources[0].src);
  601. this.playerO = this.playerOptions;
  602. })
  603. .catch((err) => {
  604. loading.close();
  605. console.error(err);
  606. });
  607. },
  608. switchVideo(media, index) {
  609. this.playerO = {};
  610. this.playerOptions.poster = "";
  611. this.playerOptions.sources[0].src = media;
  612. this.playerO = this.playerOptions;
  613. },
  614. onPlayerPlay() {},
  615. lookVedio(u) {
  616. this.playerOptions.sources[0].src = u;
  617. this.playerO = this.playerOptions;
  618. },
  619. downFile(i) {
  620. window.open(this.file[i].url);
  621. },
  622. openAddWork() {
  623. this.dialogVisible = true;
  624. this.studyJuri = [
  625. {
  626. content: "",
  627. cover: [],
  628. upVedio: [],
  629. upFile: [],
  630. },
  631. ];
  632. },
  633. addWork() {
  634. let params = [
  635. {
  636. uid: this.userid,
  637. cid: this.id,
  638. stage: this.courseType,
  639. content: JSON.stringify(this.studyJuri),
  640. },
  641. ];
  642. this.ajax
  643. .post(this.$store.state.api + "addWorks", params)
  644. .then((res) => {
  645. this.$message({
  646. message: "提交成功",
  647. type: "success",
  648. });
  649. this.dialogVisible = false;
  650. // this.studyJuri.push([
  651. // {
  652. // content: "",
  653. // cover: [],
  654. // upVedio: [],
  655. // upFile: [],
  656. // },
  657. // ]);
  658. })
  659. .catch((err) => {
  660. this.$message.error("提交失败");
  661. console.error(err);
  662. });
  663. },
  664. },
  665. created() {
  666. this.getCourseDetail();
  667. document.scrollingElement.scrollTop = 0;
  668. },
  669. };
  670. </script>
  671. <style scoped>
  672. .body_student {
  673. margin: 0px auto;
  674. width: 80%;
  675. height: 100%;
  676. min-height: 800px;
  677. }
  678. .student_head {
  679. width: 100%;
  680. margin: 0 auto;
  681. background: #fff;
  682. }
  683. .wheel > img,
  684. .project > img,
  685. .star > img,
  686. .evaluate > img,
  687. .up_photo > img,
  688. .chapter_add > img,
  689. .deleteWord > img {
  690. width: 100%;
  691. height: 100%;
  692. }
  693. .chapter_add {
  694. width: 120px;
  695. margin-top: 20px;
  696. position: relative;
  697. text-align: center;
  698. }
  699. .deleteWord {
  700. width: 22px;
  701. height: 22px;
  702. position: absolute;
  703. right: -10px;
  704. top: -10px;
  705. cursor: pointer;
  706. }
  707. .box_course {
  708. display: flex;
  709. flex-direction: column;
  710. }
  711. .wheel {
  712. width: 100%;
  713. }
  714. .right_box {
  715. display: flex;
  716. flex-direction: column;
  717. margin-left: 30px;
  718. justify-content: space-around;
  719. }
  720. .right_box_title {
  721. font-size: 23px;
  722. }
  723. .people {
  724. display: flex;
  725. }
  726. .student_body {
  727. width: 100%;
  728. margin: 0 auto;
  729. background: #fff;
  730. margin-top: 20px;
  731. padding: 0 0 20px;
  732. }
  733. .study_top {
  734. display: flex;
  735. flex-direction: row;
  736. justify-content: space-between;
  737. background: #fff;
  738. margin: 10px 0;
  739. height: 60px;
  740. align-items: center;
  741. }
  742. .study_top .checkbox {
  743. display: flex;
  744. align-items: center;
  745. margin-left: 25px;
  746. }
  747. .study_top .check {
  748. margin: 0 15px 0 0;
  749. /* border-bottom: 4px solid #ccc; */
  750. padding-bottom: 5px;
  751. text-align: center;
  752. color: rgb(170, 170, 170);
  753. cursor: pointer;
  754. height: 30px;
  755. box-sizing: border-box;
  756. display: flex;
  757. }
  758. .study_top .checked {
  759. border-bottom: 4px solid #3fc6a0;
  760. padding-bottom: 5px;
  761. color: #3fc6a0;
  762. display: flex;
  763. }
  764. .study_top .checked > div,
  765. .study_top .check > div {
  766. margin-right: 10px;
  767. }
  768. .videoTop {
  769. display: flex;
  770. flex-direction: row;
  771. justify-content: space-between;
  772. background: #fff;
  773. height: 60px;
  774. align-items: center;
  775. width: 95%;
  776. margin: 10px auto;
  777. border-bottom: 2px solid #ededed;
  778. }
  779. .upbtn {
  780. margin: 25px;
  781. background: #70afdb;
  782. color: #fff;
  783. width: 120px;
  784. text-align: center;
  785. height: 30px;
  786. line-height: 30px;
  787. font-size: 13px;
  788. border-radius: 5px;
  789. cursor: pointer;
  790. }
  791. .project_box {
  792. padding: 0 30px 10px 21px;
  793. }
  794. .filebox {
  795. display: flex;
  796. flex-wrap: wrap;
  797. }
  798. .file {
  799. display: flex;
  800. flex-direction: column;
  801. align-items: center;
  802. justify-content: center;
  803. margin: 0 20px 20px 0;
  804. cursor: pointer;
  805. }
  806. .file div {
  807. margin-top: 10px;
  808. width: 150px;
  809. text-align: center;
  810. overflow: hidden;
  811. white-space: nowrap;
  812. text-overflow: ellipsis;
  813. }
  814. .media {
  815. display: flex;
  816. flex-direction: column;
  817. align-items: center;
  818. justify-content: center;
  819. margin: 0 20px 20px 0;
  820. cursor: pointer;
  821. width: 250px;
  822. overflow: hidden;
  823. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  824. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  825. border-radius: 0 0 5px 5px;
  826. /* border: 1px solid #cecece; */
  827. box-sizing: border-box;
  828. }
  829. .media img {
  830. width: 250px;
  831. height: 150px;
  832. object-fit: cover;
  833. }
  834. .media .title {
  835. padding: 5px;
  836. text-align: left;
  837. width: 100%;
  838. box-sizing: border-box;
  839. }
  840. .media .btn {
  841. width: 100%;
  842. height: 35px;
  843. line-height: 35px;
  844. color: #fff;
  845. background: #606060;
  846. text-align: center;
  847. overflow: hidden;
  848. white-space: nowrap;
  849. text-overflow: ellipsis;
  850. }
  851. .detail_content_top {
  852. width: 100%;
  853. padding: 25px 0 25px 0;
  854. }
  855. .detail_title {
  856. text-align: center;
  857. font-size: 24px;
  858. }
  859. .detail_time {
  860. font-size: 13px;
  861. padding: 15px 0 0 40px;
  862. }
  863. .detail_content {
  864. line-height: 2pc;
  865. width: 90%;
  866. margin: 0 auto;
  867. padding-top: 30px;
  868. text-indent: 30px;
  869. }
  870. .score_box >>> .el-rate {
  871. margin-left: 10px;
  872. }
  873. .dialog_change >>> .el-dialog {
  874. border-radius: 5px;
  875. }
  876. .dialog_change >>> .el-dialog__header {
  877. background: #f2f2f2;
  878. text-align: center;
  879. }
  880. .dialog_change >>> .el-dialog__title {
  881. line-height: 5px;
  882. }
  883. .dialog_change >>> .el-dialog__body {
  884. background: #fff;
  885. padding: 10px 20px;
  886. }
  887. .score_box {
  888. display: flex;
  889. align-items: center;
  890. margin-bottom: 18px;
  891. margin-top: 20px;
  892. }
  893. .up_photo {
  894. width: 60px;
  895. cursor: pointer;
  896. margin-top: 10px;
  897. }
  898. .upload_send {
  899. margin: 20px auto;
  900. width: 60%;
  901. background: #169bd6;
  902. text-align: center;
  903. height: 35px;
  904. line-height: 35px;
  905. color: #fff;
  906. border-radius: 5px;
  907. cursor: pointer;
  908. }
  909. .marginT {
  910. margin-top: 20px;
  911. }
  912. .workd_media {
  913. width: 100%;
  914. }
  915. .cd_content_steps {
  916. display: flex;
  917. width: 90%;
  918. justify-content: space-around;
  919. border-top: 1px solid #eeeeee;
  920. }
  921. .cd_steps_box {
  922. display: flex;
  923. justify-content: center;
  924. align-items: center;
  925. flex-direction: column;
  926. cursor: pointer;
  927. }
  928. .first {
  929. display: flex;
  930. align-items: center;
  931. margin: 15px 0 20px 0;
  932. font-size: 20px;
  933. }
  934. .first > div:nth-child(2) {
  935. font-size: 16px !important;
  936. padding-left: 10px;
  937. line-height: 26px;
  938. box-sizing: border-box;
  939. }
  940. .blue_box_one {
  941. text-align: center;
  942. color: #fff;
  943. background-image: linear-gradient(to right, #30c499, #75ceba);
  944. border-radius: 7px;
  945. margin: 10px;
  946. cursor: pointer;
  947. width: 95%;
  948. height: 45px;
  949. display: flex;
  950. flex-direction: row;
  951. justify-content: flex-start;
  952. align-items: center;
  953. }
  954. .blue_box_one > div:nth-child(1) {
  955. line-height: 65px;
  956. margin: 0 10px;
  957. width: 40%;
  958. }
  959. .blue_box_one > div:nth-child(2) {
  960. white-space: nowrap;
  961. text-overflow: ellipsis;
  962. overflow: hidden;
  963. word-break: break-all;
  964. width: 60%;
  965. }
  966. .blue_box_one > div:nth-child(2):hover {
  967. overflow: hidden;
  968. text-overflow: ellipsis;
  969. white-space: nowrap;
  970. cursor: pointer;
  971. }
  972. .upFile {
  973. margin: 0 auto;
  974. width: 120px;
  975. background: #70afdb;
  976. color: #fff;
  977. height: 30px;
  978. text-align: center;
  979. line-height: 30px;
  980. border-radius: 5px;
  981. font-size: 14px;
  982. cursor: pointer;
  983. }
  984. .courseTitle {
  985. background: #329c74;
  986. width: 95%;
  987. margin: 10px auto;
  988. height: 40px;
  989. color: #fff;
  990. line-height: 40px;
  991. text-indent: 15px;
  992. }
  993. .ml {
  994. margin-left: 15px;
  995. color: #d1d1d1;
  996. }
  997. .return {
  998. width: 2rem;
  999. height: 2rem;
  1000. cursor: pointer;
  1001. }
  1002. .return > img {
  1003. width: 100%;
  1004. height: 100%;
  1005. }
  1006. .returnBtn {
  1007. background: #3ec6a0;
  1008. width: 58px;
  1009. height: 30px;
  1010. color: #fff;
  1011. text-align: center;
  1012. line-height: 32px;
  1013. margin-right: 20px;
  1014. cursor: pointer;
  1015. }
  1016. </style>