liveProjectDetail.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718
  1. <template>
  2. <div
  3. style="
  4. background: rgb(230, 234, 240);
  5. width: 100%;
  6. margin: 0;
  7. position: relate;
  8. height: 100%;
  9. "
  10. >
  11. <div class="blackBottom">
  12. <div
  13. style="
  14. display: flex;
  15. flex-direction: row;
  16. flex-wrap: nowrap;
  17. align-items: stretch;
  18. padding-left: 10px;
  19. "
  20. >
  21. <div class="logoLive">
  22. <img src="../assets/icon/logo.png" alt />
  23. </div>
  24. <div style="color: #fff; line-height: 45px; padding-left: 15px">
  25. introduce a festival (Final)
  26. </div>
  27. </div>
  28. </div>
  29. <div class="isNoOther">
  30. <div
  31. class="imgMiddle"
  32. :class="isBlock > 0 ? 'imghalf' : 'imgMiddle'"
  33. v-show="!full"
  34. >
  35. <pdf
  36. :pdfUrl="pdfUrl"
  37. style="width: 100%; height: 100%"
  38. :ppage="ppage"
  39. @getPageTotal="getPageTotal"
  40. ></pdf>
  41. </div>
  42. <div
  43. style="
  44. background: #d0d6e4;
  45. width: 40%;
  46. height: 100%;
  47. max-width: 40%;
  48. overflow: auto;
  49. "
  50. :class="{ fullStyle: full }"
  51. v-if="isBlock > 0"
  52. >
  53. <div
  54. style="
  55. background: #fff;
  56. width: 96%;
  57. margin: 10px auto;
  58. height: 96%;
  59. position: relative;
  60. "
  61. >
  62. <div
  63. style="color: #bfbfbf; padding: 15px 0 15px 25px; font-size: 20px"
  64. v-if="isBlock == 3"
  65. >
  66. 课堂评价
  67. </div>
  68. <div
  69. style="
  70. margin-left: 25px;
  71. border-bottom: 3px solid #2c83ee;
  72. width: 70px;
  73. padding-bottom: 3px;
  74. text-align: center;
  75. padding-top: 15px;
  76. "
  77. v-if="isBlock == 1"
  78. >
  79. 开始答题
  80. </div>
  81. <div class="answerBox" v-if="isBlock == 1">
  82. <div class="answerBox">
  83. <div
  84. style="
  85. display: flex;
  86. flex-direction: column;
  87. flex-wrap: wrap;
  88. align-items: center;
  89. justify-content: center;
  90. "
  91. v-for="item in 1"
  92. :key="item"
  93. >
  94. <div class="choose_style">
  95. <span
  96. @click="isChooseActive(1)"
  97. :class="typeC.indexOf(1) != -1 ? 'isChoose' : ''"
  98. >A</span
  99. >
  100. <span
  101. @click="isChooseActive(2)"
  102. :class="typeC.indexOf(2) != -1 ? 'isChoose' : ''"
  103. >B</span
  104. >
  105. <span
  106. @click="isChooseActive(3)"
  107. :class="typeC.indexOf(3) != -1 ? 'isChoose' : ''"
  108. >C</span
  109. >
  110. <span
  111. @click="isChooseActive(4)"
  112. :class="typeC.indexOf(4) != -1 ? 'isChoose' : ''"
  113. >D</span
  114. >
  115. </div>
  116. <el-button style="margin: 0 auto" @click="showMember(item)"
  117. >提交</el-button
  118. >
  119. </div>
  120. </div>
  121. </div>
  122. <div
  123. class="answerBox tools_box"
  124. v-if="isBlock == 4"
  125. style="padding: 10px 0 0 25px; width: 100%; max-width: 100%"
  126. >
  127. <div style="color: #d1d1d1; font-size: 24px">课堂实践</div>
  128. <div
  129. style="
  130. margin: 20px 0 20px 0;
  131. border-bottom: 4px solid #3e86f3;
  132. width: 75px;
  133. text-align: center;
  134. padding-bottom: 3px;
  135. "
  136. >
  137. 选择工具
  138. </div>
  139. <div
  140. style="
  141. display: flex;
  142. flex-direction: row;
  143. flex-wrap: wrap;
  144. width: 100%;
  145. justify-content: flex-start;
  146. align-items: center;
  147. "
  148. >
  149. <div
  150. v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(1) != -1"
  151. @click="checkTools(1)"
  152. class="toolCss"
  153. >
  154. <div class="toolImg">
  155. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  156. <div>电子白板</div>
  157. </div>
  158. </div>
  159. <div
  160. v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(3) != -1"
  161. @click="checkTools(3)"
  162. class="toolCss"
  163. >
  164. <div class="toolImg">
  165. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  166. <div>思维导图</div>
  167. </div>
  168. </div>
  169. <div
  170. v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(4) != -1"
  171. @click="checkTools(4)"
  172. class="toolCss"
  173. >
  174. <div class="toolImg">
  175. <img src="../assets/icon/thirdToolList/ask.png" alt />
  176. <div>问卷调查</div>
  177. </div>
  178. </div>
  179. <div
  180. v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(6) != -1"
  181. @click="checkTools(6)"
  182. class="toolCss"
  183. >
  184. <div class="toolImg">
  185. <img src="../assets/icon/secondToolList/doc.png" alt />
  186. <div>协同文档</div>
  187. </div>
  188. </div>
  189. <div
  190. v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(7) != -1"
  191. @click="checkTools(7)"
  192. class="toolCss"
  193. >
  194. <div class="toolImg">
  195. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  196. <div>思维网格</div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div
  202. class="answerBox"
  203. style="height: 100%"
  204. v-if="isBlock == 2"
  205. ref="qrcodePicture"
  206. >
  207. <div style="height: 100%; width: 100%">
  208. <div v-if="toolCount == 1" class="tools_child_box">
  209. <div class="tools_title">
  210. <span>电子白板</span>
  211. <div>
  212. <img src="../assets/full.png" class="full" @click="fullTools" />
  213. </div>
  214. </div>
  215. <iframe
  216. style="width: 100%; height: 100%; border: none"
  217. src="https://iwb.cocorobo.cn/"
  218. ref="whiteBoard"
  219. ></iframe>
  220. </div>
  221. <div v-if="toolCount == 3" class="tools_child_box">
  222. <div class="tools_title">
  223. <span>思维导图</span>
  224. <div>
  225. <img src="../assets/full.png" class="full" @click="fullTools" />
  226. </div>
  227. </div>
  228. <iframe
  229. style="width: 100%; height: 100%; border: none"
  230. src="//cloud.cocorobo.cn/mind/"
  231. ref="mind"
  232. ></iframe>
  233. </div>
  234. <div v-if="toolCount == 6" class="tools_child_box">
  235. <div class="tools_title">
  236. <span>协同文档</span>
  237. <div>
  238. <img src="../assets/full.png" class="full" @click="fullTools" />
  239. </div>
  240. </div>
  241. <iframe
  242. style="width: 100%; height: 100%; border: none"
  243. src="https://cloud.cocorobo.cn/Office/Word/WordEditArea.htm"
  244. ></iframe>
  245. </div>
  246. <div v-if="toolCount == 7" class="tools_child_box">
  247. <div class="tools_title">
  248. <span>思维网格</span>
  249. <div>
  250. <img src="../assets/full.png" class="full" @click="fullTools" />
  251. </div>
  252. </div>
  253. <iframe
  254. style="width: 100%; height: 100%; border: none"
  255. src="https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid"
  256. ref="grid"
  257. ></iframe>
  258. </div>
  259. <div
  260. id="shishi_loading"
  261. style="
  262. width: 100%;
  263. height: 100%;
  264. background: #0000008f;
  265. position: absolute;
  266. top: 0;
  267. left: 0;
  268. z-index: 99999999999999;
  269. display: none;
  270. justify-content: center;
  271. align-items: center;
  272. "
  273. >
  274. <div
  275. style="
  276. color: #fff;
  277. padding: 15px;
  278. background: #00000070;
  279. border-radius: 5px;
  280. font-size: 18px;
  281. display: flex;
  282. align-items: center;
  283. "
  284. >
  285. <img
  286. src="https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif"
  287. alt
  288. style="width: 26px; margin-right: 10px"
  289. />
  290. <span>上传中...</span>
  291. </div>
  292. </div>
  293. <div class="nextStepBox">
  294. <div class="nextStepOne" @click="isBlock = 4">返回</div>
  295. </div>
  296. <div
  297. class="nextStepOne"
  298. style="float: right"
  299. @click="getImg"
  300. v-if="toolCount == 1 || toolCount == 3 || toolCount == 7"
  301. >
  302. 截图
  303. </div>
  304. <div
  305. class="nextStepOne"
  306. style="float: right"
  307. @click="addImg($event)"
  308. v-if="toolCount == 1 || toolCount == 3 || toolCount == 7"
  309. >
  310. 上传文件
  311. <input
  312. type="file"
  313. accept="image/png, image/gif, image/jpeg"
  314. style="display: none"
  315. @change="beforeUpload1($event, 1)"
  316. />
  317. </div>
  318. </div>
  319. </div>
  320. <div
  321. class="answerBox"
  322. v-if="
  323. isBlock == 3 &&
  324. tools[ppage - 1].tools &&
  325. tools[ppage - 1].tools.indexOf(14) != -1
  326. "
  327. style="padding: 0 0 0 25px"
  328. >
  329. <div>
  330. <div class="score_box">
  331. <span>聚焦主题</span>
  332. <el-rate v-model="rateList.ca"></el-rate>
  333. </div>
  334. <div class="score_box">
  335. <span>有开头结尾</span>
  336. <el-rate v-model="rateList.sia"></el-rate>
  337. </div>
  338. <div class="score_box">
  339. <span>语言正确,流畅</span>
  340. <el-rate v-model="rateList.zia"></el-rate>
  341. </div>
  342. <div class="score_box">
  343. <span>书写规范,美观</span>
  344. <el-rate v-model="rateList.qia"></el-rate>
  345. </div>
  346. </div>
  347. <!-- <div>
  348. <div style="padding-bottom: 15px; sont-size: 14px">备注</div>
  349. <div class="bz">
  350. <el-input
  351. type="textarea"
  352. placeholder="请输入备注…"
  353. :rows="6"
  354. resize="none"
  355. v-model="rateList.content"
  356. ></el-input>
  357. </div>
  358. </div>-->
  359. <span
  360. slot="footer"
  361. class="dialog-footer sztFooter"
  362. style="padding: 0 0 30px 0px; position: absolute; right: 20px; bottom: 0"
  363. >
  364. <el-button @click="isBlock = 0">取消</el-button>
  365. <el-button type="primary" @click="addWork(6)">确定</el-button>
  366. </span>
  367. </div>
  368. <div class="answerBox" v-if="isBlock == 5" style="padding: 10px 0 0 25px">
  369. <div style="color: #d1d1d1; font-size: 24px">课堂实践</div>
  370. <div
  371. style="
  372. margin: 20px 0 20px 0;
  373. border-bottom: 4px solid #3e86f3;
  374. width: 75px;
  375. text-align: center;
  376. padding-bottom: 3px;
  377. "
  378. >
  379. 选择附件
  380. </div>
  381. <div
  382. style="
  383. display: flex;
  384. flex-direction: row;
  385. flex-wrap: wrap;
  386. width: 100%;
  387. justify-content: flex-start;
  388. align-items: center;
  389. "
  390. >
  391. <div
  392. v-if="tools[ppage - 1].file && tools[ppage - 1].file.length"
  393. class="fileBox"
  394. >
  395. <div class="fileListCss" v-for="(v, vIndex) in videoList" :key="vIndex">
  396. <div class="fileCss" @click="playVideo(v.src, vIndex)">
  397. <img src="../assets/uploadMp4.png" alt />
  398. </div>
  399. <div>{{ v.name }}</div>
  400. </div>
  401. <div class="fileListCss" v-for="(f, fIndex) in fileList" :key="fIndex">
  402. <div class="fileCss" @click="openFile(f.src)">
  403. <img src="../assets/file.png" alt />
  404. </div>
  405. <div>{{ f.name }}</div>
  406. </div>
  407. </div>
  408. </div>
  409. <div class="nextStepBox">
  410. <div class="nextStepOne" @click="isBlock = 0">关闭</div>
  411. </div>
  412. </div>
  413. <div class="answerBox" :class="{ fullStyle: full }" v-if="isBlock == 6">
  414. <div style="height: 70%; width: 100%">
  415. <div class="wheel">
  416. <div class="workd_media" style="height: 100%">
  417. <video-player
  418. class="video-player vjs-custom-skin"
  419. :playsinline="true"
  420. :options="playerO[videoindex]"
  421. @play="onPlayerPlay($event)"
  422. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  423. ></video-player>
  424. </div>
  425. </div>
  426. <div class="nextStepBox" style="margin-top: 5%">
  427. <div class="nextStepOne" @click="isBlock = 0">关闭</div>
  428. </div>
  429. </div>
  430. </div>
  431. <div
  432. class="answerBox"
  433. style="height: 100%"
  434. :class="{ fullStyle: full }"
  435. v-if="isBlock == 7"
  436. >
  437. <div style="height: 70%; width: 100%">
  438. <div class="wheel" style="height: 520px; width: 100%">
  439. <iframe
  440. style="width: 100%; height: 100%; border: none"
  441. :src="pptImgUrl"
  442. ></iframe>
  443. </div>
  444. <div class="nextStepBox" style="margin-top: 5%">
  445. <div class="nextStepOne" @click="isBlock = 5">返回</div>
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. </div>
  451. </div>
  452. <div class="blackBottomB"></div>
  453. <div v-if="proVisible" class="mask">
  454. <div class="progressBox">
  455. <div class="lbox"><img src="../assets/loading.gif" />上传中,请稍后</div>
  456. <el-progress
  457. :text-inside="true"
  458. :stroke-width="20"
  459. :percentage="progress"
  460. style="width: 80%"
  461. ></el-progress>
  462. </div>
  463. </div>
  464. <el-dialog
  465. :visible.sync="dialogVisible"
  466. :append-to-body="true"
  467. width="500px"
  468. :before-close="handleClose"
  469. class="dialog_diy"
  470. >
  471. <div style="text-align: center; padding: 20px 0 50px 0; font-size: 18px">
  472. 提交成功
  473. </div>
  474. <div
  475. style="
  476. width: 200px;
  477. background: #4d8ae0;
  478. height: 35px;
  479. margin: 0 auto;
  480. text-align: center;
  481. line-height: 35px;
  482. color: #fff;
  483. border-radius: 5px;
  484. cursor: pointer;
  485. "
  486. @click="dialogVisible = false"
  487. >
  488. 确定
  489. </div>
  490. </el-dialog>
  491. <div v-html="iframeInnerHtml" ref="iframeIh" class="iframeBox"></div>
  492. </div>
  493. </template>
  494. <script>
  495. import pdf from "./components/pdf";
  496. import html2canvas from "html2canvas";
  497. export default {
  498. components: {
  499. pdf,
  500. },
  501. data() {
  502. return {
  503. iframeInnerHtml: "",
  504. pdfUrl:
  505. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E4%B8%8A%E8%AF%BE%E8%AF%BE%E4%BB%B6---%E4%BA%94%E4%B8%8Bintroduce%20a%20festival%20%28Final%20%29_202208251543361661413469082.pdf",
  506. pptImgUrl: "",
  507. ppage: 2,
  508. full: false,
  509. pageTotal: 0,
  510. howTools: 0,
  511. toolsList: [],
  512. timer: null,
  513. isLoading: false,
  514. formLabelWidth: "100px",
  515. userid: this.$route.query.userid,
  516. cid: this.$route.query.courseId,
  517. oid: this.$route.query.oid,
  518. mr: require("../assets/kc1.png"),
  519. timu: [],
  520. dialogVisible: false,
  521. answerBox: "",
  522. isNoHomeWork: false,
  523. answer: [
  524. { name: "A.1568" },
  525. { name: "B.720" },
  526. { name: "C.1728" },
  527. { name: "D.480" },
  528. ],
  529. steps: 0,
  530. isBlock: 0,
  531. isNext: false,
  532. isAnswer: false,
  533. upload: [
  534. {
  535. upImg: [],
  536. upVedio: [],
  537. upIntro: "",
  538. },
  539. ],
  540. noneBtnImg: false,
  541. proVisible: false,
  542. progress: 0,
  543. typeC: [],
  544. toolCount: 0,
  545. tools: [
  546. "",
  547. "",
  548. {
  549. file: [
  550. {
  551. name: "视频1.mp4",
  552. src:
  553. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9311661413782505.mp4",
  554. },
  555. ],
  556. },
  557. { tools: [9] }, //问答题
  558. { tools: [9] },
  559. { tools: [9] }, //协同文档
  560. { tools: [9] }, //思维导图
  561. { tools: [9] },
  562. { tools: [9] },
  563. { tools: [12] },
  564. { tools: [9] },
  565. {
  566. file: [
  567. {
  568. name: "视频2.mp4",
  569. src:
  570. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9321661413797366.mp4",
  571. },
  572. ],
  573. },
  574. { tools: [9] },
  575. "",
  576. { tools: [3] },
  577. "",
  578. { tools: [14] },
  579. "",
  580. "",
  581. "",
  582. "",
  583. "",
  584. //1、电子白板 2、便签 3、思维导图 4、问卷调查 5、量规评分 6、协同文档 7、思维网格 8、素材库 9、选择题 10、倒计时 11、问答题 12、选人回答 13、分小组 14、老师对提交作业进行评价 15、问答 16、作业提交 17、学习资料 18、训练平台 19、目标管理 20、课程设计 21、编程平台 22、AI体验 23、python 24、AI平台
  585. ],
  586. rateList: {
  587. ca: 0,
  588. sia: 0,
  589. zia: 0,
  590. qia: 0,
  591. content: "",
  592. },
  593. imgUrl: "",
  594. imgFile: "",
  595. imgFileUp: [],
  596. videoList: [],
  597. fileList: [],
  598. playerOptions: {
  599. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  600. autoplay: false, //如果true,浏览器准备好时开始回放。
  601. muted: false, // 默认情况下将会消除任何音频。
  602. loop: false, // 导致视频一结束就重新开始。
  603. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  604. language: "zh-CN",
  605. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  606. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  607. sources: [
  608. {
  609. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  610. src: "", //url地址require("../../assets/media/aaa.mp4")
  611. },
  612. ],
  613. // poster: require("../../assets/tu31.png"), //你的封面地址
  614. // poster: dataRes.imgUrl, //你的封面地址
  615. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  616. controlBar: {
  617. timeDivider: true, //当前时间和持续时间的分隔符
  618. durationDisplay: true, //显示持续时间
  619. remainingTimeDisplay: false, //是否显示剩余时间功能
  620. fullscreenToggle: true, //全屏按钮
  621. },
  622. },
  623. playerO: {},
  624. videoindex: 0,
  625. };
  626. },
  627. methods: {
  628. change(val) {
  629. console.log(val);
  630. },
  631. goTo(path) {
  632. this.$router.push(path);
  633. },
  634. tableRowClassName({ row, rowIndex }) {
  635. if ((rowIndex + 1) % 2 === 0) {
  636. return "even_row";
  637. } else {
  638. return "";
  639. }
  640. },
  641. jump(cid) {
  642. window.parent.postMessage({ cid: cid, type: "1" }, "*");
  643. },
  644. handleCurrentChange(val) {
  645. // console.log(`当前页: ${val}`);
  646. this.page = val;
  647. },
  648. init() {},
  649. handleClose(done) {
  650. done();
  651. },
  652. handleRemove(file, fileList) {
  653. console.log(file, fileList);
  654. },
  655. onExceed() {
  656. this.$message.error("课程海报仅支持上传一张,请删除后再进行上传");
  657. },
  658. //uuid生成
  659. guid() {
  660. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
  661. var r = (Math.random() * 16) | 0,
  662. v = c == "x" ? r : (r & 0x3) | 0x8;
  663. return v.toString(16);
  664. });
  665. },
  666. time() {
  667. if (!this.now) {
  668. this.now = new Date().getTime();
  669. return true;
  670. } else {
  671. let time = new Date().getTime();
  672. if (time - this.now > 3000) {
  673. this.now = time;
  674. return true;
  675. } else {
  676. return false;
  677. }
  678. }
  679. },
  680. // answerWork() {
  681. // this.steps++;
  682. // },
  683. addTool(t) {
  684. if (t == 1) {
  685. window.parent.postMessage({ tools: "1" }, "*");
  686. } else if (t == 3) {
  687. window.parent.postMessage({ tools: "3" }, "*");
  688. } else if (t == 7) {
  689. window.parent.postMessage({ tools: "7" }, "*");
  690. }
  691. },
  692. answerQue() {
  693. this.dialogVisible = true;
  694. },
  695. isChooseActive(t) {
  696. if (this.isAnswer == true) {
  697. return;
  698. } else {
  699. if (this.typeC.length == 0) {
  700. this.typeC.push(t);
  701. } else {
  702. if (this.typeC.indexOf(t) != -1) {
  703. this.typeC.splice(this.typeC.indexOf(t), 1);
  704. } else {
  705. this.typeC.push(t);
  706. }
  707. }
  708. }
  709. },
  710. showMember(i) {
  711. if (this.typeC.length > 0) {
  712. // this.steps = 2;
  713. this.isAnswer = true;
  714. this.addWork(1);
  715. // this.dialogVisible = true;
  716. } else {
  717. this.$message.error("至少选择一个答案!");
  718. }
  719. },
  720. clean(type) {
  721. if (type == 1) {
  722. this.upload[0].upImg.splice(0, 1);
  723. } else if (type == 2) {
  724. this.upload[0].upVedio.splice(0, 1);
  725. }
  726. },
  727. addImg(e) {
  728. var el = e.currentTarget;
  729. el.getElementsByTagName("input")[0].click();
  730. },
  731. imgChange(file, fileList, type) {
  732. if (type == 1) {
  733. var _tmp = this.upload[0].upImg;
  734. } else if (type == 2) {
  735. var _tmp = this.upload[0].upVedio;
  736. } else if (type == 100) {
  737. var _tmp = this.imgFileUp;
  738. }
  739. this.noneBtnImg = _tmp.length >= 1;
  740. },
  741. beforeUpload1(event, type) {
  742. var file = event.target.files[0];
  743. var credentials = {
  744. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  745. secretAccessKey: "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",
  746. }; //秘钥形式的登录上传
  747. window.AWS.config.update(credentials);
  748. window.AWS.config.region = "cn-northwest-1"; //设置区域
  749. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  750. var _this = this;
  751. _this.progress = 0;
  752. _this.proVisible = true;
  753. if (file) {
  754. var params = {
  755. Key:
  756. file.name.split(".")[0] +
  757. new Date().getTime() +
  758. "." +
  759. file.name.split(".")[file.name.split(".").length - 1],
  760. ContentType: file.type,
  761. Body: file,
  762. "Access-Control-Allow-Credentials": "*",
  763. ACL: "public-read",
  764. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  765. var options = {
  766. partSize: 2048 * 1024 * 1024,
  767. queueSize: 2,
  768. leavePartsOnError: true,
  769. };
  770. bucket
  771. .upload(params, options)
  772. .on("httpUploadProgress", function (evt) {
  773. //这里可以写进度条
  774. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  775. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  776. })
  777. .send(function (err, data) {
  778. _this.progress = 100;
  779. setTimeout(() => {
  780. _this.proVisible = false;
  781. }, 1000);
  782. if (err) {
  783. var a = _this.$refs.upload1.uploadFiles;
  784. a.splice(a.length - 1, a.length);
  785. _this.$message.error("上传失败");
  786. } else {
  787. if (type == 1) {
  788. _this.upload[0].upImg.push({
  789. name: file.name,
  790. url: data.Location,
  791. uid: file.uid,
  792. });
  793. _this.imgChange(null, null, type);
  794. _this.addSWork(4);
  795. } else if (type == 2) {
  796. _this.upload[0].upVedio.push({
  797. name: file.name,
  798. url: data.Location,
  799. uid: file.uid,
  800. });
  801. _this.imgChange(null, null, type);
  802. }
  803. console.log(data.Location);
  804. }
  805. });
  806. }
  807. },
  808. beforeUpload2(event) {
  809. var file = event;
  810. var credentials = {
  811. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  812. secretAccessKey: "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",
  813. }; //秘钥形式的登录上传
  814. window.AWS.config.update(credentials);
  815. window.AWS.config.region = "cn-northwest-1"; //设置区域
  816. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  817. var _this = this;
  818. _this.progress = 0;
  819. _this.proVisible = true;
  820. if (file) {
  821. var params = {
  822. Key: file.name.split(".")[0] + new Date().getTime() + "." + "png",
  823. ContentType: file.type,
  824. Body: file,
  825. "Access-Control-Allow-Credentials": "*",
  826. ACL: "public-read",
  827. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  828. var options = {
  829. partSize: 2048 * 1024 * 1024,
  830. queueSize: 2,
  831. leavePartsOnError: true,
  832. };
  833. bucket
  834. .upload(params, options)
  835. .on("httpUploadProgress", function (evt) {
  836. //这里可以写进度条
  837. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  838. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  839. })
  840. .send(function (err, data) {
  841. _this.progress = 100;
  842. setTimeout(() => {
  843. _this.proVisible = false;
  844. }, 1000);
  845. if (err) {
  846. var a = _this.$refs.upload1.uploadFiles;
  847. a.splice(a.length - 1, a.length);
  848. _this.$message.error("上传失败");
  849. } else {
  850. _this.imgFileUp.push({
  851. name: file.name,
  852. url: data.Location,
  853. uid: file.uid,
  854. });
  855. _this.imgChange(null, null, type);
  856. console.log(data.Location);
  857. }
  858. });
  859. }
  860. },
  861. addWork(type) {
  862. if (type == 4) {
  863. if (this.upload[0].upImg.length == 0) {
  864. this.$message.error("请上传图片");
  865. return;
  866. }
  867. }
  868. // else if (this.upload[0].upVedio.length == 0) {
  869. // this.$message.error("请上传视频");
  870. // return;
  871. // }
  872. // else if (this.upload[0].upIntro == "") {
  873. // this.$message.error("请填写简要描述");
  874. // return;
  875. // }
  876. if (this.isNoHomeWork == true || this.isAnswer == true) {
  877. this.$confirm(
  878. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  879. "提示",
  880. {
  881. confirmButtonText: "确定",
  882. cancelButtonText: "取消",
  883. type: "warning",
  884. }
  885. )
  886. .then(() => {
  887. this.addSWork(type);
  888. })
  889. .catch(() => {});
  890. } else {
  891. this.addSWork(type);
  892. }
  893. },
  894. addSWork(type) {
  895. var a;
  896. if (type == 4) {
  897. a = JSON.stringify(this.upload);
  898. } else if (type == 6) {
  899. a = JSON.stringify(this.rateList);
  900. } else if (type == 1) {
  901. a = JSON.stringify(this.typeC);
  902. }
  903. let params = {
  904. uid: this.userid,
  905. cid: this.cid,
  906. p: this.ppage - 1,
  907. t: type,
  908. upload: a,
  909. // upload: JSON.stringify(this.imgFileUp),
  910. };
  911. this.ajax
  912. .get(this.$store.state.api + "insertSWork", params)
  913. .then((res) => {
  914. // this.isNoHomeWork = true;
  915. // this.dialogVisible = true;
  916. // this.upload = res.data[0][0].upload;
  917. this.$message({
  918. message: "提交成功",
  919. type: "success",
  920. });
  921. this.selectSWork(6);
  922. })
  923. .catch((err) => {
  924. this.$message.error("提交成功");
  925. console.error(err);
  926. });
  927. },
  928. selectSWork(type) {
  929. let params = {
  930. uid: this.userid,
  931. cid: this.cid,
  932. p: this.ppage - 1,
  933. t: type,
  934. };
  935. this.ajax
  936. .get(this.$store.state.api + "selectSWork", params)
  937. .then((res) => {
  938. if (res.data[0].length > 0) {
  939. if (res.data[0].type == 1) {
  940. this.isAnswer = true;
  941. } else {
  942. this.isNoHomeWork = true;
  943. }
  944. }
  945. })
  946. .catch((err) => {
  947. this.$message.error("暂无作业");
  948. console.error(err);
  949. });
  950. },
  951. getImg() {
  952. var iframeHtml;
  953. let iframeBody;
  954. if (this.toolCount == 1) {
  955. iframeHtml = this.$refs.whiteBoard;
  956. } else if (this.toolCount == 3) {
  957. iframeHtml = this.$refs.mind;
  958. } else if (this.toolCount == 7) {
  959. iframeHtml = this.$refs.grid;
  960. }
  961. iframeBody = iframeHtml.contentWindow.document.body;
  962. this.iframeInnerHtml = iframeBody.innerHTML;
  963. var iframeIh = this.$refs.iframeIh;
  964. iframeIh.innerHTML = this.iframeInnerHtml;
  965. this.$forceUpdate();
  966. console.log(iframeIh);
  967. // var iframeHtml = this.$refs.whiteBoard;
  968. document.getElementById("shishi_loading").style.display = "flex";
  969. var _ajs = iframeHtml.contentWindow.document.createElement("script");
  970. _ajs.type = "text/javascript";
  971. _ajs.innerHTML =
  972. 'var _js = document.createElement("script");\n' +
  973. '_js.type="text/javascript";\n' +
  974. '_js.src="https://html2canvas.hertzen.com/dist/html2canvas.min.js";\n' +
  975. "_js.onload = function(){\n" +
  976. ' var a = document.getElementsByTagName("img")\n' +
  977. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  978. " html2canvas(document.body).then(canvas => {\n" +
  979. ' var base64Url = canvas.toDataURL("image/png");\n' +
  980. 'var base64 = "<img src=" + base64Url + " />"\n' +
  981. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  982. "beforeUpload_shishi(file," +
  983. "'" +
  984. this.userid +
  985. "'" +
  986. ", " +
  987. "'" +
  988. this.cid +
  989. "'" +
  990. ", " +
  991. "'" +
  992. (this.ppage - 1) +
  993. "'" +
  994. ", " +
  995. "'4'" +
  996. ")\n" +
  997. " });\n" +
  998. "}\n" +
  999. "document.head.appendChild(_js);\n";
  1000. iframeHtml.contentWindow.document.head.appendChild(_ajs);
  1001. // iframeHtml.contentWindow.jietu_shishi(this.userid, this.cid);
  1002. // 第一个参数是需要生成截图的元素,第二个是自己需要配置的参数,宽高等
  1003. // html2canvas(iframeBody, {
  1004. // allowTaint: true,
  1005. // backgroundColor: null, //画出来的图片有白色的边框,不要可设置背景为透明色(null)
  1006. // useCORS: true, //支持图片跨域
  1007. // scale: 1, //设置放大的倍数
  1008. // }).then((canvas) => {
  1009. // // 把生成的base64位图片上传到服务器,生成在线图片地址
  1010. // let url = canvas.toDataURL("image/png"); // toDataURL: 图片格式转成 base64
  1011. // this.imgUrl = url; //将图片下载到本地
  1012. // let a = document.createElement("a"); // 生成一个a元素
  1013. // let event = new MouseEvent("click"); // 创建一个单击事件
  1014. // a.download = "作业"; // 设置图片名称没有设置则为默认
  1015. // a.href = this.imgUrl; // 将生成的URL设置为a.href属性
  1016. // a.dispatchEvent(event); // 触发a的单击事件
  1017. // let file = this.dataURLtoFile(url, "作业");
  1018. // this.imgFile = file;
  1019. // this.beforeUpload2(this.imgFile);
  1020. // this.addSWork();
  1021. // console.log(this.imgFile);
  1022. // });
  1023. },
  1024. dataURLtoFile(dataurl, filename) {
  1025. let arr = dataurl.split(","),
  1026. mime = arr[0].match(/:(.*?);/)[1],
  1027. bstr = atob(arr[1]),
  1028. n = bstr.length,
  1029. u8arr = new Uint8Array(n);
  1030. while (n--) {
  1031. u8arr[n] = bstr.charCodeAt(n);
  1032. }
  1033. return new File([u8arr], filename, { type: mime });
  1034. },
  1035. search() {},
  1036. selectFile() {
  1037. this.fileList = [];
  1038. this.videoList = [];
  1039. var a = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  1040. var b = this.tools[this.ppage - 1].file;
  1041. for (var i = 0; i < b.length; i++) {
  1042. if (
  1043. a.indexOf(
  1044. b[i].src.split(".")[b[i].src.split(".").length - 1].toLocaleUpperCase()
  1045. ) != -1
  1046. ) {
  1047. this.fileList.push(b[i]);
  1048. } else {
  1049. this.videoList.push(b[i]);
  1050. }
  1051. }
  1052. this.playVideo();
  1053. },
  1054. openFile(u) {
  1055. this.pptImgUrl = "https://view.officeapps.live.com/op/view.aspx?src=" + u;
  1056. this.isBlock = 7;
  1057. },
  1058. playVideo() {
  1059. var d = JSON.parse(JSON.stringify(this.playerOptions));
  1060. for (var i = 0; i < this.videoList.length; i++) {
  1061. d.sources[0].src = this.videoList[i].src;
  1062. this.playerO[0] = d;
  1063. this.videoindex = i;
  1064. }
  1065. this.isBlock = 6;
  1066. },
  1067. switchVideo(media) {
  1068. this.playerO = {};
  1069. this.playerOptions.poster = "";
  1070. this.playerOptions.sources[0].src = media;
  1071. this.playerO = this.playerOptions;
  1072. },
  1073. onPlayerPlay() {},
  1074. howPage(page) {
  1075. if (!this.pageTotal) {
  1076. return;
  1077. }
  1078. if (page == this.pageTotal) {
  1079. this.isBlock = 3;
  1080. } else {
  1081. this.isBlock = 0;
  1082. if (this.tools[page - 1].tools && this.tools[page - 1].tools.indexOf(9) != -1) {
  1083. this.isBlock = 1;
  1084. }
  1085. // if (this.ppage > 3) {
  1086. // this.isBlock = 2;
  1087. // }
  1088. this.full = false;
  1089. this.howTools = 0;
  1090. this.toolCount = 0;
  1091. if (
  1092. this.tools[page - 1].tools &&
  1093. (this.tools[page - 1].tools[0] == 14 || this.tools[page - 1].tools[0] == 12)
  1094. ) {
  1095. this.isBlock = 0;
  1096. }
  1097. if (
  1098. this.tools[page - 1].tools &&
  1099. (this.tools[page - 1].tools.indexOf(1) != -1 ||
  1100. this.tools[page - 1].tools.indexOf(3) != -1 ||
  1101. this.tools[page - 1].tools.indexOf(7) != -1)
  1102. ) {
  1103. this.isBlock = 4;
  1104. }
  1105. if (this.tools[page - 1].tools && this.tools[page - 1].tools.length > 1) {
  1106. this.isBlock = 4;
  1107. }
  1108. if (this.tools[page - 1].tools && !this.tools[page - 1].tools.length) {
  1109. this.isBlock = 0;
  1110. }
  1111. if (
  1112. this.tools[this.ppage - 1].tools &&
  1113. this.tools[this.ppage - 1].tools.indexOf(14) != -1
  1114. ) {
  1115. this.isBlock = 3;
  1116. } else if (
  1117. this.tools[this.ppage - 1].tools &&
  1118. (this.tools[this.ppage - 1].tools.indexOf(3) != -1 ||
  1119. this.tools[this.ppage - 1].tools.indexOf(3) != -1 ||
  1120. this.tools[this.ppage - 1].tools.indexOf(6) != -1 ||
  1121. this.tools[this.ppage - 1].tools.indexOf(7) != -1 ||
  1122. this.tools[this.ppage - 1].tools.indexOf(10) != -1 ||
  1123. this.tools[this.ppage - 1].tools.indexOf(13) != -1)
  1124. ) {
  1125. this.isBlock = 4;
  1126. } else if (
  1127. this.tools[this.ppage - 1].file &&
  1128. this.tools[this.ppage - 1].file.length
  1129. ) {
  1130. this.selectFile();
  1131. }
  1132. }
  1133. },
  1134. setPage() {
  1135. this.ajax
  1136. .get(this.$store.state.api + "selectPptPage", "")
  1137. .then((res) => {
  1138. if (res.data[0].length > 0) {
  1139. if (this.ppage == res.data[0][0].page && this.isBlock !== 0) {
  1140. return;
  1141. } else {
  1142. this.ppage = res.data[0][0].page;
  1143. // this.ppage = 3;
  1144. this.typeC = [];
  1145. this.isAnswer = false;
  1146. this.howPage(this.ppage);
  1147. }
  1148. }
  1149. })
  1150. .catch((err) => {
  1151. // this.$message.error("查询失败");
  1152. console.error(err);
  1153. });
  1154. },
  1155. getPageTotal(total) {
  1156. this.pageTotal = total;
  1157. },
  1158. fullTools() {
  1159. this.full = !this.full;
  1160. },
  1161. checkTools(tcount) {
  1162. this.isBlock = 2;
  1163. this.toolCount = tcount;
  1164. let _this = this;
  1165. _this.$nextTick(() => {
  1166. setTimeout(() => {
  1167. const script1 = document.createElement("script");
  1168. script1.type = "text/javascript";
  1169. script1.src =
  1170. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  1171. const script2 = document.createElement("script");
  1172. script2.type = "text/javascript";
  1173. script2.src =
  1174. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  1175. const script3 = document.createElement("script");
  1176. script3.type = "text/javascript";
  1177. script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
  1178. const script4 = document.createElement("script");
  1179. script4.type = "text/javascript";
  1180. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu.js";
  1181. if (_this.toolCount == 1) {
  1182. _this.$refs.whiteBoard.onload = () => {
  1183. _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script1);
  1184. _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script2);
  1185. // _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script3);
  1186. _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script4);
  1187. };
  1188. } else if (_this.toolCount == 3) {
  1189. _this.$refs.mind.onload = () => {
  1190. _this.$refs.mind.contentWindow.document.body.appendChild(script1);
  1191. _this.$refs.mind.contentWindow.document.body.appendChild(script2);
  1192. // _this.$refs.mind.contentWindow.document.body.appendChild(script3);
  1193. _this.$refs.mind.contentWindow.document.body.appendChild(script4);
  1194. };
  1195. } else if (_this.toolCount == 7) {
  1196. _this.$refs.grid.onload = () => {
  1197. _this.$refs.grid.contentWindow.document.body.appendChild(script1);
  1198. _this.$refs.grid.contentWindow.document.body.appendChild(script2);
  1199. // _this.$refs.grid.contentWindow.document.body.appendChild(script3);
  1200. _this.$refs.grid.contentWindow.document.body.appendChild(script4);
  1201. };
  1202. }
  1203. }, 0);
  1204. });
  1205. },
  1206. },
  1207. beforeDestroy() {
  1208. clearInterval(this.timer);
  1209. this.timer = null;
  1210. // window.removeEventListener("message");
  1211. },
  1212. created() {
  1213. // this.selectSWork();
  1214. let _this = this;
  1215. this.timer = setInterval(() => {
  1216. _this.setPage();
  1217. }, 1000);
  1218. // window.addEventListener("message", function (e) {
  1219. // // 监听 message 事件
  1220. // if (e.data.type && e.data.type == "shishi_canvas") {
  1221. // console.log(e.data.data);
  1222. // }
  1223. // });
  1224. },
  1225. };
  1226. </script>
  1227. <style scoped>
  1228. .dialog_diy >>> .el-dialog__header {
  1229. background: #3d67bc !important;
  1230. padding: 15px 20px;
  1231. }
  1232. .dialog_diy >>> .el-dialog__title {
  1233. color: #fff;
  1234. }
  1235. .dialog_diy >>> .el-dialog__headerbtn {
  1236. top: 9px;
  1237. }
  1238. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  1239. color: #fff;
  1240. }
  1241. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  1242. color: #fff;
  1243. }
  1244. .blackBottom {
  1245. background: rgb(0, 0, 0);
  1246. height: 45px;
  1247. width: 100%;
  1248. display: flex;
  1249. flex-direction: row;
  1250. flex-wrap: nowrap;
  1251. align-items: center;
  1252. justify-content: space-between;
  1253. }
  1254. .imgMiddle {
  1255. width: 100%;
  1256. }
  1257. .imgMiddle > img,
  1258. .imghalf > img,
  1259. .szt > img,
  1260. .uploadImg > img,
  1261. .uploadVedio > img,
  1262. .uploadImgPic > img,
  1263. .logoLive > img,
  1264. .close > img,
  1265. .deleteWord > img {
  1266. width: 100%;
  1267. height: 100%;
  1268. }
  1269. .deleteWord {
  1270. width: 22px !important;
  1271. height: 22px;
  1272. position: absolute;
  1273. right: -5px;
  1274. top: -5px;
  1275. cursor: pointer;
  1276. }
  1277. .blackBottomB {
  1278. position: sticky;
  1279. bottom: 0px;
  1280. left: 0px;
  1281. display: flex;
  1282. flex-direction: row;
  1283. flex-wrap: wrap;
  1284. align-content: center;
  1285. justify-content: space-between;
  1286. align-items: center;
  1287. background: rgb(0, 0, 0);
  1288. height: 45px;
  1289. width: 100%;
  1290. }
  1291. .blackBottomB > div:nth-child(1) {
  1292. margin-left: 10px !important;
  1293. }
  1294. .blackButton {
  1295. color: #fff;
  1296. background: #066ebe;
  1297. width: 100px;
  1298. height: 30px;
  1299. line-height: 30px;
  1300. text-align: center;
  1301. margin: 0 25px;
  1302. border-radius: 5px;
  1303. font-size: 15px;
  1304. cursor: pointer;
  1305. }
  1306. .isNoOther {
  1307. width: 100%;
  1308. display: flex;
  1309. height: calc(100% - 90px);
  1310. }
  1311. .imghalf {
  1312. width: 60% !important;
  1313. }
  1314. .answerBox {
  1315. padding: 25px;
  1316. overflow: auto;
  1317. height: 70%;
  1318. box-sizing: border-box;
  1319. }
  1320. .answerTimuBox {
  1321. display: flex;
  1322. flex-direction: row;
  1323. flex-wrap: nowrap;
  1324. align-items: center;
  1325. justify-content: space-between;
  1326. padding-bottom: 15px;
  1327. }
  1328. .memberBox {
  1329. display: flex;
  1330. flex-direction: row;
  1331. flex-wrap: wrap;
  1332. align-items: center;
  1333. }
  1334. .memberBox > div {
  1335. background: rgb(240, 185, 204);
  1336. width: 120px;
  1337. color: #fff;
  1338. height: 40px;
  1339. text-align: center;
  1340. line-height: 40px;
  1341. border-radius: 5px;
  1342. margin: 0 15px 15px 0;
  1343. cursor: pointer;
  1344. }
  1345. .viewSta {
  1346. background: rgb(97, 97, 97);
  1347. color: #bebebe;
  1348. margin: 20% auto 20px;
  1349. width: 300px;
  1350. height: 40px;
  1351. text-align: center;
  1352. line-height: 40px;
  1353. border-radius: 5px;
  1354. cursor: pointer;
  1355. }
  1356. .szt {
  1357. width: 450px;
  1358. margin: 20px auto;
  1359. }
  1360. .sztFooter {
  1361. padding: 20px 10px 50px 0;
  1362. display: flex;
  1363. flex-direction: row;
  1364. flex-wrap: nowrap;
  1365. justify-content: flex-end;
  1366. align-items: center;
  1367. }
  1368. .timuButton {
  1369. background: #649ef2;
  1370. width: 75px;
  1371. height: 27px;
  1372. line-height: 27px;
  1373. text-align: center;
  1374. border-radius: 5px;
  1375. color: #fff;
  1376. margin-right: 20px;
  1377. display: inline-block;
  1378. }
  1379. .anserBoxCss {
  1380. margin: 30px 0 20px 0;
  1381. }
  1382. .anserBoxCss >>> .el-radio__label {
  1383. font-size: 18px;
  1384. }
  1385. .anserBoxCss >>> .el-radio__inner {
  1386. border-radius: 0px !important;
  1387. }
  1388. .nextStepBox {
  1389. display: flex;
  1390. justify-content: center;
  1391. margin-top: 10px;
  1392. }
  1393. .nextStepOne {
  1394. background: #6b92c9;
  1395. color: #fff;
  1396. width: 110px;
  1397. text-align: center;
  1398. height: 35px;
  1399. line-height: 35px;
  1400. font-size: 14px;
  1401. border-radius: 5px;
  1402. cursor: pointer;
  1403. }
  1404. .nextStepOne,
  1405. .nextStepOne {
  1406. margin-left: 10px;
  1407. }
  1408. .toolList {
  1409. display: flex;
  1410. flex-direction: row;
  1411. flex-wrap: wrap;
  1412. justify-content: flex-start;
  1413. align-items: center;
  1414. }
  1415. .tools {
  1416. display: flex;
  1417. flex-direction: column;
  1418. align-items: center;
  1419. margin-right: 20px;
  1420. }
  1421. .tools > div:nth-child(1) {
  1422. width: 60px;
  1423. }
  1424. .tools > div:nth-child(1) > img {
  1425. width: 100%;
  1426. height: 100%;
  1427. }
  1428. .uploadImg {
  1429. width: 100px;
  1430. margin: 10px 0 0 15px;
  1431. cursor: pointer;
  1432. }
  1433. .upImg {
  1434. display: flex;
  1435. flex-direction: column;
  1436. flex-wrap: nowrap;
  1437. align-items: center;
  1438. justify-content: center;
  1439. color: rgb(182, 182, 182);
  1440. font-size: 20px;
  1441. }
  1442. .binfo_input {
  1443. font: inherit;
  1444. color: currentColor;
  1445. width: 100%;
  1446. margin: 0;
  1447. padding: 15px 14px;
  1448. display: block;
  1449. min-width: 0;
  1450. outline: none;
  1451. box-sizing: content-box;
  1452. background: none;
  1453. -webkit-tap-highlight-color: transparent;
  1454. border: 1px solid rgba(0, 0, 0, 0.23);
  1455. border-radius: 4px;
  1456. box-sizing: border-box;
  1457. resize: none;
  1458. }
  1459. .binfo_input:focus-visible {
  1460. border: 1px solid rgba(61, 103, 188);
  1461. }
  1462. .hengCss {
  1463. display: flex;
  1464. flex-direction: row;
  1465. flex-wrap: wrap;
  1466. align-items: center;
  1467. padding: 5px 0 0 20px;
  1468. }
  1469. .uploadImgPic {
  1470. width: 100px;
  1471. height: 100px;
  1472. position: relative;
  1473. margin: 0 20px 0 0;
  1474. }
  1475. .uploadImgPic > div {
  1476. width: 100px;
  1477. white-space: nowrap;
  1478. overflow: hidden;
  1479. text-overflow: ellipsis;
  1480. }
  1481. .mask {
  1482. background-color: rgba(0, 0, 0, 0);
  1483. position: fixed;
  1484. top: 0;
  1485. left: 0;
  1486. width: 100%;
  1487. height: 100%;
  1488. z-index: 20000;
  1489. display: flex;
  1490. align-items: center;
  1491. justify-content: center;
  1492. }
  1493. .progressBox {
  1494. width: 500px;
  1495. height: 180px;
  1496. background: #fff;
  1497. border-radius: 10px;
  1498. box-shadow: 0 0 6px 1px #bfbfbf;
  1499. display: flex;
  1500. align-items: center;
  1501. justify-content: center;
  1502. flex-direction: column;
  1503. }
  1504. .progressBox .lbox {
  1505. height: 100px;
  1506. font-size: 19px;
  1507. display: flex;
  1508. align-items: center;
  1509. }
  1510. .progressBox .lbox img {
  1511. width: 40px;
  1512. margin-right: 20px;
  1513. }
  1514. .progressBox >>> .el-progress-bar__outer {
  1515. background-color: #d1dfff !important;
  1516. }
  1517. .progressBox .lbox {
  1518. height: 100px;
  1519. font-size: 19px;
  1520. display: flex;
  1521. align-items: center;
  1522. }
  1523. .progressBox .lbox img {
  1524. width: 40px;
  1525. margin-right: 20px;
  1526. }
  1527. .logoLive {
  1528. width: 35px;
  1529. }
  1530. .choose_style {
  1531. display: flex;
  1532. justify-content: center;
  1533. align-items: center;
  1534. width: 100%;
  1535. margin: 10px 0 30px;
  1536. }
  1537. .choose_style span {
  1538. background: #f8f9ff;
  1539. color: #677fff;
  1540. border: 1px solid #95b5ff;
  1541. padding: 15px 20px;
  1542. font-size: 25px;
  1543. border-radius: 18px;
  1544. cursor: pointer;
  1545. }
  1546. .choose_style span + span {
  1547. margin-left: 25px;
  1548. }
  1549. .isChoose {
  1550. color: #fff !important;
  1551. background: #5e78fa !important;
  1552. }
  1553. .close {
  1554. position: absolute;
  1555. right: 10px;
  1556. top: 10px;
  1557. width: 20px;
  1558. cursor: pointer;
  1559. }
  1560. .score_box {
  1561. font-size: 14px;
  1562. }
  1563. .score_box >>> .el-rate {
  1564. margin: 10px 0 20px 0;
  1565. }
  1566. .score_box >>> .el-rate__icon {
  1567. font-size: 23px;
  1568. }
  1569. .bz >>> .el-textarea__inner {
  1570. width: 80%;
  1571. background: #f9f9f9;
  1572. border: 1px solid #afafaf;
  1573. border-radius: 0px;
  1574. }
  1575. .tools_title {
  1576. background: #000;
  1577. position: absolute;
  1578. width: 100%;
  1579. top: 0;
  1580. left: 0;
  1581. display: flex;
  1582. align-items: center;
  1583. height: 40px;
  1584. justify-content: space-between;
  1585. padding: 0 15px;
  1586. box-sizing: border-box;
  1587. }
  1588. .tools_title span {
  1589. color: #fff;
  1590. }
  1591. .tools_title div {
  1592. display: flex;
  1593. align-items: center;
  1594. }
  1595. .full,
  1596. .closeImg {
  1597. height: 22px;
  1598. cursor: pointer;
  1599. }
  1600. .tools_title img,
  1601. img {
  1602. margin-left: 10px;
  1603. }
  1604. .tools_box {
  1605. width: 38.5%;
  1606. max-width: 38.5%;
  1607. overflow: auto;
  1608. background: rgb(255, 255, 255);
  1609. height: 91.5%;
  1610. position: relative;
  1611. margin: 10px 15px;
  1612. }
  1613. .tools_child_box {
  1614. width: 100%;
  1615. height: calc(90% - 40px);
  1616. padding-top: 40px;
  1617. }
  1618. .fullStyle {
  1619. width: 100% !important;
  1620. max-width: 100% !important;
  1621. }
  1622. .toolCss {
  1623. display: flex;
  1624. flex-direction: column;
  1625. flex-wrap: wrap;
  1626. width: calc(100% / 6);
  1627. align-items: center;
  1628. text-align: center;
  1629. }
  1630. .toolImg {
  1631. width: 70px;
  1632. height: 70px;
  1633. cursor: pointer;
  1634. }
  1635. .toolImg > img {
  1636. width: 100%;
  1637. height: 100%;
  1638. margin: 0 !important;
  1639. }
  1640. .toolImg > div {
  1641. font-size: 14px;
  1642. }
  1643. .iframeBox {
  1644. overflow: auto;
  1645. position: absolute;
  1646. top: 0;
  1647. z-index: -2;
  1648. width: 100%;
  1649. height: 100%;
  1650. }
  1651. .fileBox {
  1652. display: flex;
  1653. flex-direction: row;
  1654. flex-wrap: wrap;
  1655. align-items: center;
  1656. justify-content: flex-start;
  1657. align-content: center;
  1658. width: 100%;
  1659. }
  1660. .fileListCss {
  1661. display: flex;
  1662. flex-direction: column;
  1663. flex-wrap: nowrap;
  1664. align-items: center;
  1665. margin: 0 15px 15px 0;
  1666. }
  1667. .fileCss {
  1668. width: 70px;
  1669. height: 70px;
  1670. cursor: pointer;
  1671. margin: 0 0 10px 0;
  1672. }
  1673. .fileCss > img {
  1674. width: 100%;
  1675. height: 100%;
  1676. margin: 0;
  1677. }
  1678. .wheel {
  1679. width: 100%;
  1680. height: 100%;
  1681. }
  1682. .video-player >>> .video-js {
  1683. height: 100%;
  1684. }
  1685. </style>