study.vue 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div class="pb_left">
  8. <div class="courseTitle">{{ courseDetail.title }}</div>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div
  18. class="navChild"
  19. v-for="(nav, navIndex) in item.task"
  20. :key="navIndex"
  21. >
  22. <div
  23. class="navTask"
  24. @click="openTask(stageIndex, navIndex, nav.id)"
  25. :class="{
  26. openTaskActive:
  27. navIndex == taskCount &&
  28. nav.id == navId &&
  29. stageIndex == courseType,
  30. }"
  31. >
  32. <div
  33. class="vedioNav"
  34. style="
  35. margin: 0;
  36. background: #aee3d2;
  37. color: #32a77a;
  38. width: 50px;
  39. min-width: 50px;
  40. "
  41. >
  42. 任务{{ navIndex + 1 }}
  43. </div>
  44. <div class="navTaskname">{{ nav.taskName }}</div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="body_student">
  52. <div
  53. class="new_top"
  54. style="position: fixed; top: 0; width: 77%; z-index: 999"
  55. >
  56. <div class="before"></div>
  57. <div class="courseIndex">
  58. <div>第{{ courseType - 0 + 1 }}阶段</div>
  59. <div>{{ chapInfo.dyName }}</div>
  60. </div>
  61. <div class="btnAll">
  62. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  63. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  64. <div class="returnBtn" @click="allScrell">全屏</div>
  65. <div
  66. class="returnBtn"
  67. @click.stop="
  68. goTo(
  69. '/courseDetail?userid=' +
  70. userid +
  71. '&oid=' +
  72. oid +
  73. '&courseId=' +
  74. id
  75. )
  76. "
  77. >
  78. 返回
  79. </div>
  80. </div>
  81. </div>
  82. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  83. .taskJson"
  84. :key="index" -->
  85. <div class="study_top">
  86. <div
  87. class="vedioBox"
  88. v-if="
  89. vedio[taskCount].length > 0 ||
  90. chapInfo.chapterInfo[0].taskJson[taskCount].taskDetail != ''
  91. "
  92. >
  93. <div class="checkbox">
  94. <div
  95. class="check"
  96. style="font-size: 25px"
  97. :id="chapInfo.chapterInfo[0].taskJson[taskCount].id"
  98. >
  99. <!-- {{ taskCount + 1 }}
  100. {{ chapInfo.chapterInfo[0].taskJson[taskCount].task }} -->
  101. 学一学
  102. </div>
  103. </div>
  104. <!-- 有视频 -->
  105. <div class="student_head" v-if="vedio[taskCount].length > 0">
  106. <div class="vedioTaskBox">
  107. <div class="taskBox">
  108. <div
  109. style="
  110. display: flex;
  111. flex-wrap: nowrap;
  112. flex-direction: column;
  113. position: relative;
  114. "
  115. >
  116. <div
  117. style="
  118. padding: 20px;
  119. line-height: 30px;
  120. max-height: 105px;
  121. overflow: auto;
  122. "
  123. v-if="
  124. chapInfo.chapterInfo[0].taskJson[taskCount]
  125. .taskDetail != ''
  126. "
  127. >
  128. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  129. {{
  130. chapInfo.chapterInfo[0].taskJson[taskCount].taskDetail
  131. ? chapInfo.chapterInfo[0].taskJson[taskCount]
  132. .taskDetail
  133. : "暂无描述"
  134. }}
  135. </div>
  136. </div>
  137. </div>
  138. <div
  139. class="box_course"
  140. :class="vedio[taskCount].length == 0 ? 'noVedio' : ''"
  141. >
  142. <div
  143. class="wheel"
  144. v-if="
  145. vedio.length &&
  146. vedio[taskCount] &&
  147. vedio[taskCount].length > 0
  148. "
  149. >
  150. <div class="workd_media" style="height: 100%">
  151. <video-player
  152. class="video-player vjs-custom-skin"
  153. :playsinline="true"
  154. :options="playerO[taskCount]"
  155. @play="onPlayerPlay($event)"
  156. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  157. ></video-player>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. <div
  163. class="vedioList"
  164. :class="vedio[taskCount].length == 0 ? 'listNoVedio' : ''"
  165. v-if="
  166. (vedio.length &&
  167. vedio[taskCount] &&
  168. vedio[taskCount].length > 0) ||
  169. (textList.length &&
  170. textList[taskCount] &&
  171. textList[taskCount].length > 0) ||
  172. (chapToolList.length &&
  173. chapToolList[taskCount] &&
  174. chapToolList[taskCount].length > 0) ||
  175. (lineList.length &&
  176. lineList[taskCount] &&
  177. lineList[taskCount].length > 0)
  178. "
  179. >
  180. <div style="padding: 15px 0 5px 15px">内容列表:</div>
  181. <div class="navBox">
  182. <div
  183. v-show="
  184. vedio.length &&
  185. vedio[taskCount] &&
  186. vedio[taskCount].length > 0
  187. "
  188. >
  189. <div class="vedioNav">视频</div>
  190. <div
  191. class="vedioTimeBox"
  192. v-for="(media, vedioIndex) in vedio[taskCount]"
  193. :key="vedioIndex + '1'"
  194. >
  195. <div
  196. class="media"
  197. style="width: 90px; height: 60px; position: relative"
  198. >
  199. <img
  200. style="height: 90px; width: 160px"
  201. :src="
  202. media.cover != null && media.cover != ''
  203. ? JSON.parse(media.cover).length > 0
  204. ? JSON.parse(media.cover)[0].url
  205. : mr
  206. : mr
  207. "
  208. alt
  209. @click="lookVedio(media.url)"
  210. />
  211. <div class="vedioTime">{{ vedioTime }}</div>
  212. <!-- <div class="vedioName">{{ media.name }}</div> -->
  213. </div>
  214. <div class="vedioName">{{ media.name }}</div>
  215. </div>
  216. </div>
  217. <div
  218. v-show="
  219. textList.length &&
  220. textList[taskCount] &&
  221. textList[taskCount].length > 0
  222. "
  223. class="newNav"
  224. v-for="(text, textIndex) in textList[taskCount]"
  225. :key="textIndex + '2'"
  226. >
  227. <div class="vedioNav" style="width: 70px">富文本</div>
  228. <div>
  229. <div
  230. class="navText"
  231. @click="lookText(taskCount, textIndex)"
  232. >
  233. {{
  234. textList[taskCount].length > 0 ? text.name : ""
  235. }}.doc
  236. </div>
  237. </div>
  238. </div>
  239. <div
  240. v-show="
  241. chapInfoList.length &&
  242. chapToolList[taskCount] &&
  243. chapToolList[taskCount].length > 0
  244. "
  245. class="newNav"
  246. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  247. :key="toolsIndex + '3'"
  248. >
  249. <div class="vedioNav">工具</div>
  250. <div>
  251. <div
  252. class="navText"
  253. @click="lookTools(taskCount, toolsIndex)"
  254. >
  255. {{
  256. chapToolList[taskCount].length > 0 ? tools.name : ""
  257. }}
  258. </div>
  259. </div>
  260. </div>
  261. <div
  262. v-show="
  263. lineList.length &&
  264. lineList[taskCount] &&
  265. lineList[taskCount].length > 0
  266. "
  267. class="newNav"
  268. v-for="(lines, lineIndex) in lineList[taskCount]"
  269. :key="lineIndex + '4'"
  270. >
  271. <div class="vedioNav">链接</div>
  272. <div>
  273. <div class="navText">
  274. <a
  275. style="text-decoration: none; color: #000"
  276. target="_Blank"
  277. :href="'https://' + lines.url"
  278. >{{ lines.url }}</a
  279. >
  280. </div>
  281. </div>
  282. </div>
  283. <div
  284. class="newNav"
  285. v-show="
  286. file.length &&
  287. file[taskCount] &&
  288. file[taskCount].length > 0
  289. "
  290. v-for="(f, fileIndex) in file[taskCount]"
  291. :key="fileIndex"
  292. >
  293. <div class="vedioNav">附件</div>
  294. <div>
  295. <div class="navText" @click="downFile(f, fileIndex)">
  296. {{ f.name }}
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <!-- 没视频 -->
  304. <div class="student_head" style="display: block" v-else>
  305. <div class="taskBox">
  306. <div
  307. style="
  308. display: flex;
  309. flex-wrap: nowrap;
  310. flex-direction: column;
  311. position: relative;
  312. "
  313. >
  314. <div
  315. style="
  316. padding: 20px;
  317. line-height: 30px;
  318. max-height: 105px;
  319. overflow: auto;
  320. "
  321. v-if="
  322. chapInfo.chapterInfo[0].taskJson[taskCount].taskDetail !=
  323. ''
  324. "
  325. >
  326. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  327. {{
  328. chapInfo.chapterInfo[0].taskJson[taskCount].taskDetail
  329. ? chapInfo.chapterInfo[0].taskJson[taskCount].taskDetail
  330. : "暂无描述"
  331. }}
  332. </div>
  333. </div>
  334. </div>
  335. <div
  336. class="box_course hangVedio"
  337. v-if="
  338. (vedio.length &&
  339. vedio[taskCount] &&
  340. vedio[taskCount].length > 0) ||
  341. (textList.length &&
  342. textList[taskCount] &&
  343. textList[taskCount].length > 0) ||
  344. (chapToolList.length &&
  345. chapToolList[taskCount] &&
  346. chapToolList[taskCount].length > 0) ||
  347. (lineList.length &&
  348. lineList[taskCount] &&
  349. lineList[taskCount].length > 0)
  350. "
  351. >
  352. <div class="vedioList hangVedioList">
  353. <!-- <div
  354. v-if="
  355. vedio.length &&
  356. vedio[taskCount] &&
  357. vedio[taskCount].length > 0
  358. "
  359. >
  360. <div class="vedioNav">视频</div>
  361. <div
  362. class="media"
  363. style="
  364. width: 160px;
  365. margin: 10px auto;
  366. position: relative;
  367. "
  368. v-for="(media, vedioIndex) in vedio[taskCount]"
  369. :key="vedioIndex + '1'"
  370. >
  371. <img
  372. style="height: 90px; width: 160px"
  373. :src="
  374. media.cover != null && media.cover != ''
  375. ? JSON.parse(media.cover).length > 0
  376. ? JSON.parse(media.cover)[0].url
  377. : mr
  378. : mr
  379. "
  380. alt
  381. @click="lookVedio(media.url)"
  382. />
  383. <div class="vedioName">{{ media.name }}</div>
  384. </div>
  385. </div> -->
  386. <div
  387. v-show="
  388. textList.length &&
  389. textList[taskCount] &&
  390. textList[taskCount].length > 0
  391. "
  392. class="newNav"
  393. v-for="(text, textIndex) in textList[taskCount]"
  394. :key="textIndex + '2'"
  395. >
  396. <div class="vedioNav" style="width: 70px">富文本</div>
  397. <div>
  398. <div
  399. class="noNavText"
  400. @click="lookText(taskCount, textIndex)"
  401. >
  402. {{
  403. textList[taskCount].length > 0 ? text.name : ""
  404. }}.doc
  405. </div>
  406. </div>
  407. </div>
  408. <div
  409. v-show="
  410. chapInfoList.length &&
  411. chapToolList[taskCount] &&
  412. chapToolList[taskCount].length > 0
  413. "
  414. class="newNav"
  415. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  416. :key="toolsIndex + '3'"
  417. >
  418. <div class="vedioNav">工具</div>
  419. <div>
  420. <div
  421. class="noNavText"
  422. @click="lookTools(taskCount, toolsIndex)"
  423. >
  424. {{
  425. chapToolList[taskCount].length > 0 ? tools.name : ""
  426. }}
  427. </div>
  428. </div>
  429. </div>
  430. <div
  431. v-show="
  432. lineList.length &&
  433. lineList[taskCount] &&
  434. lineList[taskCount].length > 0
  435. "
  436. class="newNav"
  437. v-for="(lines, lineIndex) in lineList[taskCount]"
  438. :key="lineIndex + '4'"
  439. >
  440. <div class="vedioNav">链接</div>
  441. <div>
  442. <div class="noNavText">
  443. <a
  444. style="text-decoration: none; color: #000"
  445. target="_Blank"
  446. :href="'https://' + lines.url"
  447. >{{ lines.url }}</a
  448. >
  449. </div>
  450. </div>
  451. </div>
  452. <div
  453. class="newNav"
  454. v-show="
  455. file.length &&
  456. file[taskCount] &&
  457. file[taskCount].length > 0
  458. "
  459. v-for="(f, fileIndex) in file[taskCount]"
  460. :key="fileIndex"
  461. >
  462. <div class="vedioNav">附件</div>
  463. <div>
  464. <div class="navText" @click="downFile(f, fileIndex)">
  465. {{ f.name }}
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. </div>
  471. </div>
  472. </div>
  473. <div class="student_body">
  474. <!-- <div
  475. class="vedioBox"
  476. v-if="
  477. file.length && file[taskCount] && file[taskCount].length > 0
  478. "
  479. >
  480. <div class="queTop">
  481. <div class="question" style="width: 30px; margin-top: 5px">
  482. <img src="../assets/icon/fileIcon.png" alt />
  483. </div>
  484. <div class="queTitle">
  485. <div>附件</div>
  486. </div>
  487. </div>
  488. <div class="filebox" style="width: 100%">
  489. <div
  490. class="file"
  491. v-for="(f, fileIndex) in file[taskCount]"
  492. :key="fileIndex"
  493. @click="downFile(f, fileIndex)"
  494. >
  495. <img :src="require('../assets/file.png')" alt />
  496. <div>{{ f.name }}</div>
  497. </div>
  498. </div>
  499. <div class="upFile" v-if="type == 3">提交</div>
  500. </div> -->
  501. <div
  502. class="vedioBox"
  503. v-if="
  504. chapInfo.chapterInfo[0].taskJson[taskCount].toolChoose[0]
  505. .tool &&
  506. chapInfo.chapterInfo[0].taskJson[taskCount].toolChoose[0].tool
  507. .length &&
  508. chapInfo.chapterInfo[0].taskJson[taskCount].toolChoose[0].tool
  509. .length > 0
  510. "
  511. >
  512. <div
  513. class="queTop"
  514. style="
  515. font-size: 25px;
  516. padding: 20px 0 20px 30px;
  517. font-weight: bold;
  518. "
  519. >
  520. <!-- <div class="question" style="width: 30px">
  521. <img src="../assets/icon/toolIcon.png" alt />
  522. </div>
  523. <div class="queTitle">
  524. <div>工具</div>
  525. </div> -->
  526. 练一练
  527. </div>
  528. <div class="toolHeng2" style="position: relative">
  529. <div
  530. class="filebox"
  531. style="flex-wrap: nowrap; margin: 0 20px"
  532. v-for="(tool, toolIndex) in chapInfo.chapterInfo[0].taskJson[
  533. taskCount
  534. ].toolChoose"
  535. :key="toolIndex"
  536. >
  537. <div
  538. style="
  539. font-size: 20px;
  540. font-weight: bold;
  541. padding: 0 0 10px 10px;
  542. "
  543. >
  544. 步骤{{ toolIndex + 1 }}
  545. </div>
  546. <div class="toolBox">
  547. <div>
  548. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  549. :key="indexTool"-->
  550. <!-- <div class="iframeBox">
  551. <div
  552. class="addPoint isBorder"
  553. v-for="(tooC, toolCIndex) in tool.tool"
  554. :key="toolCIndex"
  555. >
  556. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  557. <div
  558. class="iframeName"
  559. >
  560. 电子白板
  561. </div>
  562. <iframe
  563. src="https://iwb.cocorobo.cn/"
  564. ref="whiteBoard"
  565. ></iframe>
  566. </div>
  567. </div>
  568. </div> -->
  569. <div class="noiframeBox">
  570. <div
  571. class="addPoint"
  572. v-for="(tooC, toolCIndex) in tool.tool"
  573. :key="toolCIndex"
  574. >
  575. <div v-if="tooC == 1">
  576. <img
  577. src="../assets/icon/secondToolList/whiteBoard.png"
  578. alt
  579. @click="addTools(tooC, toolIndex, taskCount)"
  580. />
  581. <div style="margin: 5px 0">电子白板</div>
  582. </div>
  583. <div v-if="tooC == 3">
  584. <img
  585. src="../assets/icon/secondToolList/mindMapping.png"
  586. alt
  587. @click="addTools(tooC, toolIndex, taskCount)"
  588. />
  589. <div style="margin: 5px 0">思维导图</div>
  590. </div>
  591. <div v-if="tooC == 6">
  592. <img
  593. src="../assets/icon/secondToolList/doc.png"
  594. alt
  595. @click="addTools(tooC, toolIndex, taskCount)"
  596. />
  597. <div style="margin: 5px 0">协同文档</div>
  598. </div>
  599. <div v-if="tooC == 7">
  600. <img
  601. src="../assets/icon/secondToolList/mindNetwork.png"
  602. alt
  603. @click="addTools(tooC, toolIndex, taskCount)"
  604. />
  605. <div style="margin: 5px 0">思维网格</div>
  606. </div>
  607. <div v-if="tooC == 8">
  608. <img
  609. src="../assets/icon/secondToolList/library.png"
  610. alt
  611. @click="addTools(tooC, toolIndex, taskCount)"
  612. />
  613. <div style="margin: 5px 0">素材库</div>
  614. </div>
  615. <div v-if="tooC == 17">
  616. <img
  617. src="../assets/icon/secondToolList/library.png"
  618. alt
  619. @click="addTools(tooC, toolIndex, taskCount)"
  620. />
  621. <div style="margin: 5px 0">学习资料</div>
  622. </div>
  623. <div v-if="tooC == 2">
  624. <img
  625. @click="addTools(tooC, toolIndex, taskCount)"
  626. src="../assets/icon/secondToolList/note.png"
  627. alt
  628. />
  629. <div style="margin: 5px 0">便签</div>
  630. </div>
  631. <div v-if="tooC == 4">
  632. <img
  633. @click="addTools(tooC, toolIndex, taskCount)"
  634. src="../assets/icon/thirdToolList/ask.png"
  635. alt
  636. />
  637. <div style="margin: 5px 0">问卷调查</div>
  638. </div>
  639. <div v-if="tooC == 5">
  640. <img
  641. @click="addTools(tooC, toolIndex, taskCount)"
  642. src="../assets/icon/thirdToolList/score.png"
  643. alt
  644. />
  645. <div style="margin: 5px 0">量规评分</div>
  646. </div>
  647. <div v-if="tooC == 10">
  648. <img
  649. @click="addTools(tooC, toolIndex, taskCount)"
  650. src="../assets/icon/thirdToolList/time.png"
  651. alt
  652. />
  653. <div style="margin: 5px 0">倒计时</div>
  654. </div>
  655. <div v-if="tooC == 15">
  656. <img
  657. @click="addTools(tooC, toolIndex, taskCount)"
  658. src="../assets/icon/thirdToolList/answer.png"
  659. alt
  660. />
  661. <div style="margin: 5px 0">问答工具</div>
  662. </div>
  663. <div v-if="tooC == 18">
  664. <img
  665. @click="addTools(tooC, toolIndex, taskCount)"
  666. src="../assets/icon/thirdToolList/trainPlatform.png"
  667. alt
  668. />
  669. <div style="margin: 5px 0">训练服务器</div>
  670. </div>
  671. <div v-if="tooC == 16">
  672. <img
  673. @click="addTools(tooC, toolIndex, taskCount)"
  674. src="../assets/icon/thirdToolList/work.png"
  675. alt
  676. />
  677. <div style="margin: 5px 0">作业提交</div>
  678. </div>
  679. </div>
  680. </div>
  681. </div>
  682. <div class="tooldetail" v-if="tool.toolDetail != ''">
  683. <!-- <div class="toolTitle">工具描述</div> -->
  684. <div>
  685. {{ tool.toolDetail }}
  686. </div>
  687. </div>
  688. </div>
  689. <div
  690. v-if="tType && tType == 1 && tool.tool.indexOf(16) != -1"
  691. class="worksBox"
  692. >
  693. <div
  694. class="worksBTitle"
  695. v-if="worksStudent[toolIndex].length > 0"
  696. >
  697. <div class="greenBox"></div>
  698. 作业提交情况
  699. </div>
  700. <div
  701. style="padding-top: 15px; font-size: 18px"
  702. v-if="worksStudent[toolIndex].length > 0"
  703. >
  704. 作业预览
  705. </div>
  706. <div
  707. class="worksDetailBox"
  708. v-if="worksStudent[toolIndex].length > 0"
  709. >
  710. <div
  711. class="works"
  712. v-for="(w, wIndex) in worksStudent[toolIndex]"
  713. :key="wIndex"
  714. >
  715. <div class="workImg">
  716. <img
  717. :src="w.works"
  718. @click="previewImg(w.works)"
  719. alt=""
  720. />
  721. </div>
  722. <div class="worksName">
  723. 姓名:<span>{{ w.sName }}</span>
  724. </div>
  725. </div>
  726. </div>
  727. <div
  728. style="
  729. padding-top: 15px;
  730. padding-bottom: 15px;
  731. border-bottom: 1px solid #eeeeee;
  732. font-size: 18px;
  733. "
  734. >
  735. 未提交
  736. </div>
  737. <div class="noWorksS">
  738. <div
  739. v-for="(s, sIndex) in noWorksS[toolIndex]"
  740. :key="sIndex"
  741. class="noWorksName"
  742. >
  743. {{ s.student }}
  744. </div>
  745. </div>
  746. </div>
  747. <div
  748. v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
  749. class="worksBox"
  750. >
  751. <div
  752. class="worksBTitle"
  753. v-if="worksStudent[toolIndex].length > 0"
  754. >
  755. <div class="greenBox"></div>
  756. 作业提交情况
  757. </div>
  758. <div
  759. style="padding-top: 15px; font-size: 18px"
  760. v-if="worksStudent[toolIndex].length > 0"
  761. >
  762. 作业预览
  763. </div>
  764. <div
  765. class="worksDetailBox"
  766. v-if="worksStudent[toolIndex].length > 0"
  767. >
  768. <div
  769. class="works"
  770. v-for="(w, wIndex) in worksStudent[toolIndex]"
  771. :key="wIndex"
  772. >
  773. <!-- @click="previewImg(w.works)" -->
  774. <div class="workImg">
  775. <img
  776. src="../assets/icon/works/noImg.png"
  777. @click="openTools(4, toolIndex, taskCount, w.works)"
  778. alt=""
  779. />
  780. </div>
  781. <div class="worksName">
  782. 姓名:<span>{{ w.sName }}</span>
  783. </div>
  784. </div>
  785. </div>
  786. <div
  787. style="
  788. padding-top: 15px;
  789. padding-bottom: 15px;
  790. border-bottom: 1px solid #eeeeee;
  791. font-size: 18px;
  792. "
  793. >
  794. 未提交
  795. </div>
  796. <div class="noWorksS">
  797. <div
  798. v-for="(s, sIndex) in noWorksS[toolIndex]"
  799. :key="sIndex"
  800. class="noWorksName"
  801. >
  802. {{ s.student }}
  803. </div>
  804. </div>
  805. </div>
  806. <div
  807. v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
  808. class="worksBox"
  809. >
  810. <div
  811. class="worksBTitle"
  812. v-if="worksStudent[toolIndex].length > 0"
  813. >
  814. <div class="greenBox"></div>
  815. 作业提交情况
  816. </div>
  817. <div
  818. style="padding-top: 15px; font-size: 18px"
  819. v-if="worksStudent[toolIndex].length > 0"
  820. >
  821. 作业预览
  822. </div>
  823. <div
  824. class="worksDetailBox"
  825. v-if="worksStudent[toolIndex].length > 0"
  826. >
  827. <div
  828. class="works"
  829. v-for="(w, wIndex) in worksStudent[toolIndex]"
  830. :key="wIndex"
  831. >
  832. <!-- @click="previewImg(w.works)" -->
  833. <div class="workImg">
  834. <img
  835. src="../assets/icon/works/noImg.png"
  836. @click="
  837. openTools(15, toolIndex, taskCount, w.works)
  838. "
  839. alt=""
  840. />
  841. </div>
  842. <div class="worksName">
  843. 姓名:<span>{{ w.sName }}</span>
  844. </div>
  845. </div>
  846. </div>
  847. <div
  848. style="
  849. padding-top: 15px;
  850. padding-bottom: 15px;
  851. border-bottom: 1px solid #eeeeee;
  852. font-size: 18px;
  853. "
  854. >
  855. 未提交
  856. </div>
  857. <div class="noWorksS">
  858. <div
  859. v-for="(s, sIndex) in noWorksS[toolIndex]"
  860. :key="sIndex"
  861. class="noWorksName"
  862. >
  863. {{ s.student }}
  864. </div>
  865. </div>
  866. </div>
  867. <div
  868. v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
  869. class="worksBox"
  870. >
  871. <div
  872. class="worksBTitle"
  873. v-if="worksStudent[toolIndex].length > 0"
  874. >
  875. <div class="greenBox"></div>
  876. 作业提交情况
  877. </div>
  878. <div
  879. style="padding-top: 15px; font-size: 18px"
  880. v-if="worksStudent[toolIndex].length > 0"
  881. >
  882. 作业预览
  883. </div>
  884. <div
  885. class="worksDetailBox"
  886. v-if="worksStudent[toolIndex].length > 0"
  887. >
  888. <div
  889. class="works"
  890. v-for="(w, wIndex) in worksStudent[toolIndex]"
  891. :key="wIndex"
  892. >
  893. <!-- @click="previewImg(w.works)" -->
  894. <div class="workImg">
  895. <img
  896. :src="w.works"
  897. @click="previewImg(w.works)"
  898. alt=""
  899. />
  900. </div>
  901. <div class="worksName">
  902. 姓名:<span>{{ w.sName }}</span>
  903. </div>
  904. </div>
  905. </div>
  906. <div
  907. style="
  908. padding-top: 15px;
  909. padding-bottom: 15px;
  910. border-bottom: 1px solid #eeeeee;
  911. font-size: 18px;
  912. "
  913. >
  914. 未提交
  915. </div>
  916. <div class="noWorksS">
  917. <div
  918. v-for="(s, sIndex) in noWorksS[toolIndex]"
  919. :key="sIndex"
  920. class="noWorksName"
  921. >
  922. {{ s.student }}
  923. </div>
  924. </div>
  925. </div>
  926. <div
  927. v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
  928. class="worksBox"
  929. >
  930. <div
  931. class="worksBTitle"
  932. v-if="worksStudent[toolIndex].length > 0"
  933. >
  934. <div class="greenBox"></div>
  935. 作业提交情况
  936. </div>
  937. <div
  938. style="padding-top: 15px; font-size: 18px"
  939. v-if="worksStudent[toolIndex].length > 0"
  940. >
  941. 作业预览
  942. </div>
  943. <div
  944. class="worksDetailBox"
  945. v-if="worksStudent[toolIndex].length > 0"
  946. >
  947. <div
  948. class="works"
  949. v-for="(w, wIndex) in worksStudent[toolIndex]"
  950. :key="wIndex"
  951. >
  952. <!-- @click="previewImg(w.works)" -->
  953. <div class="workImg">
  954. <img
  955. :src="w.works"
  956. @click="previewImg(w.works)"
  957. alt=""
  958. />
  959. </div>
  960. <div class="worksName">
  961. 姓名:<span>{{ w.sName }}</span>
  962. </div>
  963. </div>
  964. </div>
  965. <div
  966. style="
  967. padding-top: 15px;
  968. padding-bottom: 15px;
  969. border-bottom: 1px solid #eeeeee;
  970. font-size: 18px;
  971. "
  972. >
  973. 未提交
  974. </div>
  975. <div class="noWorksS">
  976. <div
  977. v-for="(s, sIndex) in noWorksS[toolIndex]"
  978. :key="sIndex"
  979. class="noWorksName"
  980. >
  981. {{ s.student }}
  982. </div>
  983. </div>
  984. </div>
  985. <div
  986. v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
  987. class="worksBox"
  988. >
  989. <div
  990. class="worksBTitle"
  991. v-if="worksStudent[toolIndex].length > 0"
  992. >
  993. <div class="greenBox"></div>
  994. 作业提交情况
  995. </div>
  996. <div
  997. style="padding-top: 15px; font-size: 18px"
  998. v-if="worksStudent[toolIndex].length > 0"
  999. >
  1000. 作业预览
  1001. </div>
  1002. <div
  1003. class="worksDetailBox"
  1004. v-if="worksStudent[toolIndex].length > 0"
  1005. >
  1006. <div
  1007. class="works"
  1008. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1009. :key="wIndex"
  1010. >
  1011. <!-- @click="previewImg(w.works)" -->
  1012. <div class="workImg">
  1013. <img
  1014. :src="w.works"
  1015. @click="previewImg(w.works)"
  1016. alt=""
  1017. />
  1018. </div>
  1019. <div class="worksName">
  1020. 姓名:<span>{{ w.sName }}</span>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <div
  1025. style="
  1026. padding-top: 15px;
  1027. padding-bottom: 15px;
  1028. border-bottom: 1px solid #eeeeee;
  1029. font-size: 18px;
  1030. "
  1031. >
  1032. 未提交
  1033. </div>
  1034. <div class="noWorksS">
  1035. <div
  1036. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1037. :key="sIndex"
  1038. class="noWorksName"
  1039. >
  1040. {{ s.student }}
  1041. </div>
  1042. </div>
  1043. </div>
  1044. <div
  1045. v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
  1046. class="worksBox"
  1047. >
  1048. <div
  1049. class="worksBTitle"
  1050. v-if="worksStudent[toolIndex].length > 0"
  1051. >
  1052. <div class="greenBox"></div>
  1053. 作业提交情况
  1054. </div>
  1055. <div
  1056. style="padding-top: 15px; font-size: 18px"
  1057. v-if="worksStudent[toolIndex].length > 0"
  1058. >
  1059. 作业预览
  1060. </div>
  1061. <div
  1062. class="worksDetailBox"
  1063. v-if="worksStudent[toolIndex].length > 0"
  1064. >
  1065. <div
  1066. class="works"
  1067. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1068. :key="wIndex"
  1069. >
  1070. <!-- @click="previewImg(w.works)" -->
  1071. <div class="workImg">
  1072. <img
  1073. :src="w.works"
  1074. @click="previewImg(w.works)"
  1075. alt=""
  1076. />
  1077. </div>
  1078. <div class="worksName">
  1079. 姓名:<span>{{ w.sName }}</span>
  1080. </div>
  1081. </div>
  1082. </div>
  1083. <div
  1084. style="
  1085. padding-top: 15px;
  1086. padding-bottom: 15px;
  1087. border-bottom: 1px solid #eeeeee;
  1088. font-size: 18px;
  1089. "
  1090. >
  1091. 未提交
  1092. </div>
  1093. <div class="noWorksS">
  1094. <div
  1095. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1096. :key="sIndex"
  1097. class="noWorksName"
  1098. >
  1099. {{ s.student }}
  1100. </div>
  1101. </div>
  1102. </div>
  1103. </div>
  1104. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1105. 上传文件
  1106. <input
  1107. type="file"
  1108. accept="image/png, image/gif, image/jpeg"
  1109. style="display: none"
  1110. @change="beforeUpload1($event, 2, index)"
  1111. />
  1112. </div> -->
  1113. </div>
  1114. </div>
  1115. <!-- <div
  1116. class="project_box"
  1117. style="margin-top: 15px; padding-bottom: 30px"
  1118. >
  1119. <div
  1120. style="
  1121. display: flex;
  1122. flex-wrap: nowrap;
  1123. flex-direction: column;
  1124. position: relative;
  1125. "
  1126. >
  1127. <div class="queTop">
  1128. <div class="question">
  1129. <img src="../assets/icon/homeWork.png" alt="" />
  1130. </div>
  1131. <div class="queTitle">
  1132. <div>作业提交<span>(提交图文视频等)</span></div>
  1133. <div>:任务:{{ task.task }}</div>
  1134. </div>
  1135. </div>
  1136. <div class="ediBottom">
  1137. <div
  1138. class="addEditor"
  1139. style="margin-top: 23px"
  1140. @click="openAddWork"
  1141. v-if="!isNoHomeWork"
  1142. >
  1143. 选择文件
  1144. </div>
  1145. <div
  1146. class="addEditor"
  1147. style="margin-top: 23px"
  1148. @click="openAddWork"
  1149. v-else
  1150. >
  1151. 已提交
  1152. </div>
  1153. </div>
  1154. </div>
  1155. </div>-->
  1156. </div>
  1157. </div>
  1158. <el-dialog
  1159. title="提交实践作业"
  1160. :visible.sync="dialogVisible"
  1161. :append-to-body="true"
  1162. width="500px"
  1163. :before-close="handleClose"
  1164. class="dialog_change"
  1165. >
  1166. <div class="marginT">
  1167. <div>上传图片</div>
  1168. <div
  1169. class="chapter_add"
  1170. @click="addImg($event)"
  1171. v-if="studyJuri[0].cover.length == 0"
  1172. >
  1173. <div class="up_photo">
  1174. <img src="../assets/icon/uploadImg.png" alt />
  1175. </div>
  1176. <input
  1177. type="file"
  1178. accept="image/png, image/gif, image/jpeg"
  1179. style="display: none"
  1180. @change="beforeUpload1($event, 1)"
  1181. />
  1182. </div>
  1183. <div
  1184. class="chapter_add"
  1185. style="
  1186. display: flex;
  1187. width: 100%;
  1188. flex-direction: row;
  1189. flex-wrap: wrap;
  1190. justify-content: flex-start;
  1191. padding: 15px 0;
  1192. "
  1193. v-if="studyJuri[0].cover.length > 0"
  1194. >
  1195. <div class="upCover">
  1196. <img :src="studyJuri[0].cover[0].url" alt />
  1197. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1198. <div class="deleteWord" @click="clean(1)">
  1199. <img src="../assets/icon/deleteWorks.png" alt />
  1200. </div>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <!-- <div class="first">
  1205. <div>作业名称:</div>
  1206. <div>{{ chapInfo.dyName }}</div>
  1207. </div>
  1208. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  1209. <el-input
  1210. type="textarea"
  1211. resize="none"
  1212. rows="7"
  1213. placeholder="输入文字描述..."
  1214. v-model="studyJuri[0].content"
  1215. ></el-input>
  1216. <div class="marginT">
  1217. <div>上传图片</div>
  1218. <div class="chapter_add" @click="addImg($event)">
  1219. <div class="up_photo">
  1220. <img src="../assets/photo.png" alt />
  1221. </div>
  1222. <input
  1223. type="file"
  1224. accept="image/png, image/gif, image/jpeg"
  1225. style="display: none"
  1226. @change="beforeUpload1($event, 1)"
  1227. />
  1228. </div>
  1229. <div
  1230. class="chapter_add"
  1231. style="
  1232. display: flex;
  1233. width: 100%;
  1234. flex-direction: row;
  1235. flex-wrap: wrap;
  1236. justify-content: flex-start;
  1237. "
  1238. v-if="studyJuri[0].cover.length > 0"
  1239. >
  1240. <div
  1241. v-for="(c, cIndex) in studyJuri[0].cover"
  1242. :key="cIndex"
  1243. class="upCover"
  1244. >
  1245. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  1246. <span class="picName">{{ c.name }}</span>
  1247. <div class="deleteWord" @click="clean(1)">
  1248. <img src="../assets/icon/delete.png" alt />
  1249. </div>
  1250. </div>
  1251. </div>
  1252. </div>
  1253. <div class="marginT">
  1254. <div>上传视频</div>
  1255. <div class="chapter_add" @click="addImg($event)">
  1256. <div class="up_photo">
  1257. <img src="../assets/vidio.png" alt />
  1258. </div>
  1259. <input
  1260. type="file"
  1261. accept="video/mp4, video/quicktime, video/x-msvideo"
  1262. style="display: none"
  1263. @change="beforeUpload2($event, 2)"
  1264. />
  1265. </div>
  1266. <div
  1267. class="chapter_add"
  1268. style="
  1269. display: flex;
  1270. flex-direction: row;
  1271. flex-wrap: wrap;
  1272. width: 100%;
  1273. justify-content: flex-start;
  1274. "
  1275. v-if="studyJuri[0].upVedio.length > 0"
  1276. >
  1277. <div
  1278. style="
  1279. width: 100%;
  1280. display: flex;
  1281. flex-direction: row;
  1282. flex-wrap: wrap;
  1283. align-content: flex-start;
  1284. justify-content: flex-start;
  1285. align-items: center;
  1286. "
  1287. >
  1288. <div
  1289. class="uploadVedio isAddThings"
  1290. v-for="(v, vIndex) in studyJuri[0].upVedio"
  1291. :key="vIndex"
  1292. >
  1293. <img src="../assets/uploadMp4.png" alt />
  1294. <span>{{ v.name }}</span>
  1295. <div class="deleteWord" @click="clean(2)">
  1296. <img src="../assets/icon/delete.png" alt />
  1297. </div>
  1298. </div>
  1299. </div>
  1300. </div>
  1301. </div> -->
  1302. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  1303. </el-dialog>
  1304. </div>
  1305. </div>
  1306. <div v-if="proVisible" class="mask">
  1307. <div class="progressBox">
  1308. <div class="lbox">
  1309. <img src="../assets/loading.gif" />上传中,请稍后
  1310. </div>
  1311. <el-progress
  1312. :text-inside="true"
  1313. :stroke-width="20"
  1314. :percentage="progress"
  1315. style="width: 80%"
  1316. ></el-progress>
  1317. </div>
  1318. </div>
  1319. <el-dialog :visible.sync="pictureDialog" size="tiny">
  1320. <img width="100%" :src="dialogImageUrl" alt />
  1321. </el-dialog>
  1322. <el-dialog
  1323. title="查看问卷调查"
  1324. :visible.sync="dialogVisible5"
  1325. :append-to-body="true"
  1326. width="800px"
  1327. :before-close="handleClose"
  1328. class="dialog_diy"
  1329. >
  1330. <div>
  1331. <div
  1332. class="a_add_title"
  1333. style="
  1334. display: flex;
  1335. flex-direction: row;
  1336. align-items: center;
  1337. justify-content: center;
  1338. "
  1339. >
  1340. <div style="margin-right: 20px; font-size: 20px">问卷标题:</div>
  1341. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1342. </div>
  1343. <div class="a_addBox">
  1344. <div style="font-size: 16px; color: #c7c7c7">问卷内容</div>
  1345. <div
  1346. class="a_add_box"
  1347. v-for="(item1, index1) in askJson.askCount"
  1348. :key="index1"
  1349. >
  1350. <div class="a_add_head">
  1351. <div style="display: flex">
  1352. {{ index1 + 1 + "、" }}
  1353. <div>问卷题目:{{ askJson.askJson[index1].askstitle }}</div>
  1354. </div>
  1355. </div>
  1356. <div class="a_add_body" v-if="!isAnswer">
  1357. <div class="a_add_input">
  1358. <el-radio-group v-model="radio[index1]">
  1359. <el-radio
  1360. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1361. .checkList"
  1362. :key="checkIndex"
  1363. :label="checkIndex"
  1364. class="redioStyle"
  1365. >{{ item2 }}</el-radio
  1366. >
  1367. </el-radio-group>
  1368. </div>
  1369. </div>
  1370. <div class="a_add_body" v-else>
  1371. <div class="a_add_input">
  1372. <el-radio-group v-model="radio[index1]">
  1373. <el-radio
  1374. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1375. .checkList"
  1376. :key="checkIndex"
  1377. :label="checkIndex"
  1378. disabled
  1379. class="redioStyle"
  1380. >{{ item2 }}</el-radio
  1381. >
  1382. </el-radio-group>
  1383. </div>
  1384. </div>
  1385. </div>
  1386. </div>
  1387. </div>
  1388. <span slot="footer" class="dialog-footer">
  1389. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1390. <el-button type="primary" @click="addStudentAsk" v-if="!isAnswer"
  1391. >确 定</el-button
  1392. >
  1393. <el-button type="primary" @click="dialogVisible5 = false" v-else
  1394. >确 定</el-button
  1395. >
  1396. </span>
  1397. </el-dialog>
  1398. <el-dialog
  1399. title="查看富文本"
  1400. :visible.sync="dialogVisible1"
  1401. :append-to-body="true"
  1402. width="500px"
  1403. :before-close="handleClose"
  1404. class="dialog_diy textCss"
  1405. >
  1406. <el-form style="font-size: 20px">
  1407. <el-form-item label="文本标题" class="textTitle">
  1408. <div style="font-size: 20px">{{ text.name }}</div>
  1409. </el-form-item>
  1410. <div>富文本内容</div>
  1411. <div
  1412. v-html="text.url"
  1413. style="font-size: 18px; padding: 40px 0 0 0"
  1414. ></div>
  1415. </el-form>
  1416. <span slot="footer" class="dialog-footer">
  1417. <el-button type="primary" @click="dialogVisible1 = false"
  1418. >确定</el-button
  1419. >
  1420. </span>
  1421. </el-dialog>
  1422. <el-dialog
  1423. title="文件预览"
  1424. :visible.sync="dialogVisible3"
  1425. width="50%"
  1426. :before-close="handleClose"
  1427. class="dialog_diy"
  1428. >
  1429. <iframe
  1430. :src="pptImgUrl"
  1431. frameborder="0"
  1432. width="100%"
  1433. height="600"
  1434. ></iframe>
  1435. </el-dialog>
  1436. <el-dialog
  1437. title="提示"
  1438. :visible.sync="dialogVisible4"
  1439. :append-to-body="true"
  1440. width="800px"
  1441. :before-close="handleClose"
  1442. class="dialog_diy notice"
  1443. >
  1444. <div>此功能暂未开放!</div>
  1445. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1446. </el-dialog>
  1447. <el-dialog
  1448. title="问答"
  1449. :visible.sync="answerDialogVisible"
  1450. :append-to-body="true"
  1451. width="800px"
  1452. :before-close="handleClose"
  1453. class="dialog_diy"
  1454. >
  1455. <div>
  1456. <div
  1457. style="
  1458. display: flex;
  1459. flex-wrap: nowrap;
  1460. flex-direction: column;
  1461. position: relative;
  1462. "
  1463. >
  1464. <div class="queTop" style="padding: 20px 0 20px 0">
  1465. <div class="question">
  1466. <img src="../assets/icon/question.png" alt />
  1467. </div>
  1468. <div class="queTitle">
  1469. <div>提问:</div>
  1470. <div>{{ answerQ }}</div>
  1471. </div>
  1472. </div>
  1473. <div class="ediBottom">
  1474. <textarea
  1475. rows="6"
  1476. class="binfo_input"
  1477. cols
  1478. style="width: 95%; height: 120px"
  1479. v-model="questionAnswer"
  1480. ></textarea>
  1481. </div>
  1482. </div>
  1483. </div>
  1484. <div slot="footer">
  1485. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1486. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1487. </div>
  1488. </el-dialog>
  1489. <el-dialog
  1490. title="倒计时"
  1491. :visible.sync="timeDialogVisible"
  1492. :append-to-body="true"
  1493. width="800px"
  1494. :before-close="handleClose"
  1495. class="dialog_diy"
  1496. >
  1497. <div>
  1498. <Time v-if="timeDialogVisible"></Time>
  1499. </div>
  1500. <div slot="footer">
  1501. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1502. </div>
  1503. </el-dialog>
  1504. </div>
  1505. </template>
  1506. <script>
  1507. import "../common/aws-sdk-2.235.1.min.js";
  1508. import EditorBar from "../components/tools/wangEnduit.vue";
  1509. import Time from "../components/tools/time.vue";
  1510. export default {
  1511. components: { EditorBar, Time },
  1512. data() {
  1513. return {
  1514. dialogVisible: false,
  1515. id: this.$route.query.courseId,
  1516. userid: this.$route.query.userid,
  1517. courseTypeLine: this.$route.query.type,
  1518. oid: this.$route.query.oid,
  1519. tType: this.$route.query.tType,
  1520. courseType: 0,
  1521. pptImgUrl: "",
  1522. type: 1,
  1523. vedio: [],
  1524. text: [],
  1525. textList: [],
  1526. line: [],
  1527. lineList: [],
  1528. chapTools: [],
  1529. chapToolList: [],
  1530. file: [],
  1531. vedioTime: "",
  1532. upToolImg: "",
  1533. rateList: {
  1534. ca: 0,
  1535. },
  1536. rateParams: [],
  1537. colors: ["#000", "#000", "#000"],
  1538. studyJuri: [
  1539. {
  1540. content: "",
  1541. cover: [],
  1542. upVedio: [],
  1543. upFile: [],
  1544. },
  1545. ],
  1546. mr: require("../assets/vedioPic.png"),
  1547. courseDetail: {},
  1548. chapInfo: [],
  1549. chapInfoList: [],
  1550. taskCount: 0,
  1551. imgList: [],
  1552. noImgList: [],
  1553. navId: "",
  1554. playerOptions: {
  1555. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  1556. autoplay: false, //如果true,浏览器准备好时开始回放。
  1557. muted: false, // 默认情况下将会消除任何音频。
  1558. loop: false, // 导致视频一结束就重新开始。
  1559. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  1560. language: "zh-CN",
  1561. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  1562. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  1563. sources: [
  1564. {
  1565. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  1566. src: "", //url地址require("../../assets/media/aaa.mp4")
  1567. },
  1568. ],
  1569. // poster: require("../../assets/tu31.png"), //你的封面地址
  1570. // poster: dataRes.imgUrl, //你的封面地址
  1571. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  1572. controlBar: {
  1573. timeDivider: true, //当前时间和持续时间的分隔符
  1574. durationDisplay: true, //显示持续时间
  1575. remainingTimeDisplay: false, //是否显示剩余时间功能
  1576. fullscreenToggle: true, //全屏按钮
  1577. },
  1578. },
  1579. playerO: {},
  1580. noneBtnImg: false,
  1581. proVisible: false,
  1582. progress: 0,
  1583. questionAnswer: "",
  1584. answerQ: "", //问答标题
  1585. wbCount: 0,
  1586. wordCount: 0,
  1587. mindCount: 0,
  1588. askCount: 0,
  1589. noteCount: 0,
  1590. mindNetWorkCount: 0,
  1591. libraryCount: 0,
  1592. workCount: 0,
  1593. timeCount: 0,
  1594. answerCount: 0,
  1595. trainCount: 0,
  1596. dialogImageUrl: "",
  1597. pictureDialog: false,
  1598. toolTypeList: [],
  1599. dialogVisible1: false,
  1600. dialogVisible2: false,
  1601. dialogVisible3: false,
  1602. dialogVisible4: false,
  1603. isNoHomeWork: false,
  1604. dialogVisible5: false,
  1605. answerDialogVisible: false,
  1606. timeDialogVisible: false,
  1607. radio: [],
  1608. isAsk: false,
  1609. askJson: {
  1610. askCount: 1,
  1611. askTitle: "",
  1612. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1613. },
  1614. askList: [],
  1615. answerList: [],
  1616. navList: [],
  1617. worksStudent: [],
  1618. noWorksS: [],
  1619. isWorksS: [],
  1620. toolindex: 0,
  1621. workTypeA: false,
  1622. workTypeB: false,
  1623. workTypeC: false,
  1624. isAnswer: false,
  1625. timer: null,
  1626. };
  1627. },
  1628. methods: {
  1629. previewImg(url) {
  1630. this.$hevueImgPreview(url);
  1631. },
  1632. change(val) {
  1633. console.log(val);
  1634. },
  1635. goTo(path) {
  1636. this.$router.push(path);
  1637. },
  1638. handlePictureCardPreview(url) {
  1639. this.dialogImageUrl = url;
  1640. this.pictureDialog = true;
  1641. },
  1642. clean(type) {
  1643. if (type == 1) {
  1644. this.studyJuri[0].cover.splice(0, 1);
  1645. } else if (type == 2) {
  1646. this.studyJuri[0].upVedio.splice(0, 1);
  1647. } else {
  1648. this.studyJuri[0].upFile.splice(0, 1);
  1649. }
  1650. },
  1651. handleClose(done) {
  1652. done();
  1653. },
  1654. imgChange(file, fileList, type) {
  1655. if (type == 1) {
  1656. var _tmp = this.studyJuri[0].cover;
  1657. } else if (type == 2) {
  1658. var _tmp = this.studyJuri[0].upVedio;
  1659. } else {
  1660. var _tmp = this.studyJuri[0].upFile;
  1661. }
  1662. this.noneBtnImg = _tmp.length >= 1;
  1663. },
  1664. addImg(e) {
  1665. var el = e.currentTarget;
  1666. el.getElementsByTagName("input")[0].click();
  1667. },
  1668. addCourseWorks(i) {
  1669. if (this.workTypeA == true) {
  1670. this.$confirm(
  1671. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  1672. "提示",
  1673. {
  1674. confirmButtonText: "确定",
  1675. cancelButtonText: "取消",
  1676. type: "warning",
  1677. }
  1678. )
  1679. .then(() => {
  1680. let params = [
  1681. {
  1682. uid: this.userid,
  1683. cid: this.id,
  1684. stage: this.courseType,
  1685. task: i,
  1686. tool: this.toolindex,
  1687. content: this.studyJuri[0].cover[0].url,
  1688. type: 1,
  1689. },
  1690. ];
  1691. this.ajax
  1692. .post(this.$store.state.api + "addCourseWorks", params)
  1693. .then((res) => {
  1694. this.$message({
  1695. message: "提交成功",
  1696. type: "success",
  1697. });
  1698. this.studyJuri[0].cover = [];
  1699. this.dialogVisible = false;
  1700. this.getCourseDetail();
  1701. })
  1702. .catch((err) => {
  1703. this.$message.error("提交失败");
  1704. console.error(err);
  1705. });
  1706. })
  1707. .catch(() => {});
  1708. } else {
  1709. let params = [
  1710. {
  1711. uid: this.userid,
  1712. cid: this.id,
  1713. stage: this.courseType,
  1714. task: i,
  1715. tool: this.toolindex,
  1716. content: this.studyJuri[0].cover[0].url,
  1717. type: 1,
  1718. },
  1719. ];
  1720. this.ajax
  1721. .post(this.$store.state.api + "addCourseWorks", params)
  1722. .then((res) => {
  1723. this.$message({
  1724. message: "提交成功",
  1725. type: "success",
  1726. });
  1727. this.studyJuri[0].cover = [];
  1728. this.dialogVisible = false;
  1729. this.getCourseDetail();
  1730. })
  1731. .catch((err) => {
  1732. this.$message.error("提交失败");
  1733. console.error(err);
  1734. });
  1735. }
  1736. },
  1737. selectWorksStudent() {
  1738. let params = {
  1739. oid: this.oid,
  1740. };
  1741. this.ajax
  1742. .get(this.$store.state.api + "selectWorksStudent", params)
  1743. .then((res) => {
  1744. var a = res.data[0];
  1745. for (var i = 0; i < this.isWorksS.length; i++) {
  1746. this.noWorksS[i] = [];
  1747. if (this.isWorksS[i].length > 0) {
  1748. var a2 = JSON.parse(JSON.stringify(a));
  1749. for (var j = 0; j < a.length; j++) {
  1750. for (var z = 0; z < this.isWorksS[i].length; z++) {
  1751. if (this.isWorksS[i][z].sName == a[j].name) {
  1752. a2.splice(j, 1);
  1753. }
  1754. }
  1755. }
  1756. for (var f = 0; f < a2.length; f++) {
  1757. this.noWorksS[i].push({ student: a2[f].name });
  1758. }
  1759. } else {
  1760. for (var k = 0; k < a.length; k++) {
  1761. this.noWorksS[i].push({ student: a[k].name });
  1762. }
  1763. }
  1764. }
  1765. this.$forceUpdate();
  1766. })
  1767. .catch((err) => {
  1768. console.error(err);
  1769. });
  1770. },
  1771. selectSWorks() {
  1772. let params = {
  1773. cid: this.id,
  1774. s: this.courseType,
  1775. t: this.taskCount,
  1776. };
  1777. this.ajax
  1778. .get(this.$store.state.api + "selectSWorks", params)
  1779. .then((res) => {
  1780. var a =
  1781. this.chapInfo.chapterInfo[0].taskJson[this.taskCount].toolChoose;
  1782. var b = res.data[0];
  1783. for (var i = 0; i < a.length; i++) {
  1784. this.worksStudent[i] = [];
  1785. this.isWorksS[i] = [];
  1786. for (var j = 0; j < b.length; j++) {
  1787. if (i == b[j].tool) {
  1788. this.worksStudent[i].push({
  1789. works: b[j].content,
  1790. sName: b[j].name,
  1791. });
  1792. this.isWorksS[i].push({ sName: b[j].name });
  1793. }
  1794. }
  1795. }
  1796. this.selectWorksStudent();
  1797. })
  1798. .catch((err) => {
  1799. console.error(err);
  1800. });
  1801. },
  1802. beforeUpload1(event, type, i) {
  1803. var file = event.target.files[0];
  1804. var credentials = {
  1805. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1806. secretAccessKey: "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",
  1807. }; //秘钥形式的登录上传
  1808. window.AWS.config.update(credentials);
  1809. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1810. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1811. var _this = this;
  1812. _this.progress = 0;
  1813. _this.proVisible = true;
  1814. if (file) {
  1815. var params = {
  1816. Key:
  1817. file.name.split(".")[0] +
  1818. new Date().getTime() +
  1819. "." +
  1820. file.name.split(".")[1],
  1821. ContentType: file.type,
  1822. Body: file,
  1823. "Access-Control-Allow-Credentials": "*",
  1824. ACL: "public-read",
  1825. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1826. var options = {
  1827. partSize: 2048 * 1024 * 1024,
  1828. queueSize: 2,
  1829. leavePartsOnError: true,
  1830. };
  1831. bucket
  1832. .upload(params, options)
  1833. .on("httpUploadProgress", function (evt) {
  1834. //这里可以写进度条
  1835. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1836. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  1837. })
  1838. .send(function (err, data) {
  1839. _this.progress = 100;
  1840. setTimeout(() => {
  1841. _this.proVisible = false;
  1842. }, 1000);
  1843. if (err) {
  1844. var a = _this.$refs.upload1.uploadFiles;
  1845. a.splice(a.length - 1, a.length);
  1846. _this.$message.error("上传失败");
  1847. } else {
  1848. if (type == 1) {
  1849. _this.studyJuri[0].cover.push({
  1850. name: file.name,
  1851. url: data.Location,
  1852. uid: file.uid,
  1853. });
  1854. _this.imgChange(null, null, type);
  1855. } else if (type == 2) {
  1856. _this.upToolImg = data.Location;
  1857. _this.imgChange(null, null, type);
  1858. _this.addCourseWorks(i);
  1859. }
  1860. _this.imgChange(null, null, type);
  1861. console.log(data.Location);
  1862. }
  1863. });
  1864. }
  1865. },
  1866. beforeUpload2(event, type) {
  1867. var file = event.target.files[0];
  1868. var credentials = {
  1869. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1870. secretAccessKey: "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",
  1871. }; //秘钥形式的登录上传
  1872. window.AWS.config.update(credentials);
  1873. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1874. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1875. var _this = this;
  1876. _this.progress = 0;
  1877. _this.proVisible = true;
  1878. if (file) {
  1879. var params = {
  1880. Key:
  1881. file.name.split(".")[0] +
  1882. new Date().getTime() +
  1883. "." +
  1884. file.name.split(".")[1],
  1885. ContentType: file.type,
  1886. Body: file,
  1887. "Access-Control-Allow-Credentials": "*",
  1888. ACL: "public-read",
  1889. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1890. var options = {
  1891. partSize: 2048 * 1024 * 1024,
  1892. queueSize: 2,
  1893. leavePartsOnError: true,
  1894. };
  1895. bucket
  1896. .upload(params, options)
  1897. .on("httpUploadProgress", function (evt) {
  1898. //这里可以写进度条
  1899. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1900. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  1901. })
  1902. .send(function (err, data) {
  1903. _this.progress = 100;
  1904. setTimeout(() => {
  1905. _this.proVisible = false;
  1906. }, 1000);
  1907. if (err) {
  1908. var a = _this.$refs.upload1.uploadFiles;
  1909. a.splice(a.length - 1, a.length);
  1910. _this.$message.error("上传失败");
  1911. } else {
  1912. if (type == 2) {
  1913. _this.studyJuri[0].upVedio.push({
  1914. name: file.name,
  1915. url: data.Location,
  1916. uid: file.uid,
  1917. });
  1918. _this.imgChange(null, null, type);
  1919. } else if (type == 3) {
  1920. _this.studyJuri[0].upFile.push({
  1921. name: file.name,
  1922. url: data.Location,
  1923. uid: file.uid,
  1924. });
  1925. _this.imgChange(null, null, type);
  1926. }
  1927. console.log(data.Location);
  1928. }
  1929. });
  1930. }
  1931. },
  1932. allScrell() {
  1933. window.parent.postMessage({ allScreen: "1" }, "*");
  1934. },
  1935. nextOrpreSteps(t) {
  1936. if (t == 0) {
  1937. if (this.taskCount == 0) {
  1938. this.taskCount = 0;
  1939. } else {
  1940. this.taskCount--;
  1941. }
  1942. } else {
  1943. if (
  1944. this.taskCount ==
  1945. this.chapInfo.chapterInfo[0].taskJson.length - 1
  1946. ) {
  1947. this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  1948. } else {
  1949. this.taskCount++;
  1950. }
  1951. }
  1952. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  1953. if (this.vedio[this.taskCount].length > 0) {
  1954. var a =
  1955. document.getElementsByClassName("vedioTaskBox")[this.taskCount]
  1956. .offsetHeight;
  1957. document.getElementsByClassName("vedioList")[
  1958. this.taskCount
  1959. ].style.height = a - 15 + "px";
  1960. document.getElementsByClassName("navBox")[this.taskCount].style.height =
  1961. a - 100 + "px";
  1962. }
  1963. this.isNoHomeWork = false;
  1964. (this.studyJuri = [
  1965. {
  1966. content: "",
  1967. cover: [],
  1968. upVedio: [],
  1969. upFile: [],
  1970. },
  1971. ]),
  1972. (this.radio = []);
  1973. this.getHomeWork();
  1974. this.getCourseDetail();
  1975. },
  1976. openTask(s, n, i) {
  1977. this.courseType = s;
  1978. this.navId = i;
  1979. this.taskCount = n;
  1980. this.isNoHomeWork = false;
  1981. (this.studyJuri = [
  1982. {
  1983. content: "",
  1984. cover: [],
  1985. upVedio: [],
  1986. upFile: [],
  1987. },
  1988. ]),
  1989. (this.radio = []);
  1990. setTimeout(() => {
  1991. let a = document.getElementById(i);
  1992. if (a.offsetTop - 110 == 0) {
  1993. window.scrollTo(0, 0);
  1994. } else {
  1995. window.scrollTo(0, a.offsetTop);
  1996. }
  1997. }, 0);
  1998. this.getHomeWork();
  1999. this.getCourseDetail();
  2000. this.vedioTime = document.getElementsByClassName(
  2001. "vjs-duration-display"
  2002. )[0].textContent;
  2003. },
  2004. get(i) {
  2005. this.navList[i].isOpen = !this.navList[i].isOpen;
  2006. },
  2007. addQuestion() {
  2008. this.answerList.push({
  2009. answerTitle: this.answerQ,
  2010. answer: this.questionAnswer,
  2011. });
  2012. let params = [
  2013. {
  2014. uid: this.userid,
  2015. cid: this.id,
  2016. stage: this.courseType,
  2017. task: this.taskCount,
  2018. tool: this.toolindex,
  2019. content: JSON.stringify(this.answerList),
  2020. type: 3,
  2021. },
  2022. ];
  2023. this.ajax
  2024. .post(this.$store.state.api + "addCourseWorks", params)
  2025. .then((res) => {
  2026. this.$message({
  2027. message: "提交成功",
  2028. type: "success",
  2029. });
  2030. this.answerList = [];
  2031. this.answerDialogVisible = false;
  2032. })
  2033. .catch((err) => {
  2034. this.$message.error("提交失败");
  2035. console.error(err);
  2036. });
  2037. },
  2038. getCourseDetail() {
  2039. const loading = this.$loading.service({
  2040. background: "rgba(255, 255, 255, 0.7)",
  2041. target: document.querySelector(".student_table"),
  2042. });
  2043. var t = this.courseType;
  2044. let params = {
  2045. courseId: this.id,
  2046. };
  2047. this.ajax
  2048. .get(this.$store.state.api + "selectCourseDetail", params)
  2049. .then((res) => {
  2050. loading.close();
  2051. var a = JSON.parse(res.data[0][0].chapters)[t].chapterInfo[0]
  2052. .taskJson;
  2053. var b = [
  2054. "AVI",
  2055. "NAVI",
  2056. "MPEG",
  2057. "ASF",
  2058. "MOV",
  2059. "WMV",
  2060. "3GP",
  2061. "RM",
  2062. "RMVB",
  2063. "FLV",
  2064. "F4V",
  2065. "H.264",
  2066. "H.265",
  2067. "REAL VIDEO",
  2068. "MKV",
  2069. "WebM",
  2070. "HDDVD",
  2071. "MP4",
  2072. "MPG",
  2073. "M4V",
  2074. "MGV",
  2075. "OGV",
  2076. "QTM",
  2077. "STR",
  2078. "AMC",
  2079. "DVX",
  2080. "EVO",
  2081. "DAT",
  2082. "OGG",
  2083. "OGM",
  2084. ];
  2085. for (var i = 0; i < a.length; i++) {
  2086. var c = a[i].chapterData;
  2087. this.vedio[i] = [];
  2088. this.textList[i] = [];
  2089. this.lineList[i] = [];
  2090. this.chapToolList[i] = [];
  2091. this.file[i] = [];
  2092. for (var j = 0; j < c.length; j++) {
  2093. if (c[j].type == 7) {
  2094. this.chapToolList[i].push(c[j]);
  2095. } else if (c[j].type == 8) {
  2096. this.lineList[i].push(c[j]);
  2097. } else if (c[j].type == 6) {
  2098. this.textList[i].push(c[j]);
  2099. } else {
  2100. if (
  2101. b.indexOf(
  2102. c[j].url
  2103. .split(".")
  2104. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  2105. ) != -1
  2106. ) {
  2107. this.vedio[i].push(c[j]);
  2108. } else {
  2109. this.file[i].push(c[j]);
  2110. }
  2111. }
  2112. }
  2113. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2114. d.sources[0].src =
  2115. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  2116. this.playerO[i] = d;
  2117. }
  2118. this.courseDetail = res.data[0][0];
  2119. this.chapInfo = JSON.parse(this.courseDetail.chapters)[t];
  2120. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  2121. if (this.navList.length == 0) {
  2122. this.navList = [];
  2123. for (var l = 0; l < this.chapInfoList.length; l++) {
  2124. var q = this.chapInfoList[l].dyName;
  2125. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2126. var e;
  2127. this.navList.push({
  2128. dyName: q,
  2129. isOpen: l === 0 ? true : false,
  2130. task: [],
  2131. });
  2132. for (var r = 0; r < w.length; r++) {
  2133. e = w[r].task;
  2134. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  2135. this.navId = this.navId ? this.navId : l + "-" + r;
  2136. }
  2137. }
  2138. }
  2139. for (var l = 0; l < this.chapInfoList.length; l++) {
  2140. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2141. for (var m = 0; m < w.length; m++) {
  2142. w[m].id = l + "-" + m;
  2143. }
  2144. }
  2145. this.$nextTick(function () {
  2146. setTimeout(() => {
  2147. // for (
  2148. // var i = 0;
  2149. // i < document.getElementsByClassName("video-player").length;
  2150. // i++
  2151. // ) {
  2152. // var a =
  2153. // document.getElementsByClassName("video-player")[i]
  2154. // .offsetHeight;
  2155. // document.getElementsByClassName("vedioList")[i].style.height =
  2156. // a + "px";
  2157. // }
  2158. var a =
  2159. document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2160. document.getElementsByClassName("vedioList")[0].style.height =
  2161. a - 15 + "px";
  2162. document.getElementsByClassName("navBox")[0].style.height =
  2163. a - 100 + "px";
  2164. }, 500);
  2165. });
  2166. this.selectSWorks();
  2167. let _this = this;
  2168. _this.timer = setInterval(function () {
  2169. _this.selectSWorks();
  2170. }, 5000);
  2171. })
  2172. .catch((err) => {
  2173. loading.close();
  2174. console.error(err);
  2175. });
  2176. },
  2177. getHomeWork() {
  2178. let params = {
  2179. cid: this.id,
  2180. stage: this.courseType,
  2181. task: this.taskCount,
  2182. uid: this.userid,
  2183. };
  2184. this.ajax
  2185. .get(this.$store.state.api + "selectWork", params)
  2186. .then((res) => {
  2187. if (res.data[0].length > 0) {
  2188. this.studyJuri = JSON.parse(res.data[0][0].content);
  2189. this.isNoHomeWork = true;
  2190. }
  2191. })
  2192. .catch((err) => {
  2193. console.error(err);
  2194. });
  2195. },
  2196. isAssetTypeAnImage(ext) {
  2197. return (
  2198. [
  2199. "png",
  2200. "jpg",
  2201. "jpeg",
  2202. "bmp",
  2203. "gif",
  2204. "webp",
  2205. "psd",
  2206. "svg",
  2207. "tiff",
  2208. ].indexOf(ext) !== -1
  2209. );
  2210. },
  2211. switchVideo(media) {
  2212. this.playerO = {};
  2213. this.playerOptions.poster = "";
  2214. this.playerOptions.sources[0].src = media;
  2215. this.playerO = this.playerOptions;
  2216. },
  2217. onPlayerPlay() {},
  2218. lookVedio(u) {
  2219. // this.playerOptions.sources[0].src = u;
  2220. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2221. d.sources[0].src = u;
  2222. this.playerO[0] = d;
  2223. },
  2224. lookText(i, t) {
  2225. this.text = this.textList[i][t];
  2226. this.dialogVisible1 = true;
  2227. },
  2228. lookTools(i, t) {
  2229. this.chapTools = this.chapToolList[i][t];
  2230. this.dialogVisible2 = true;
  2231. },
  2232. downFile(f, i) {
  2233. this.pptImgUrl = "";
  2234. var a = ["PPT", "PPTX", "PDF", "XLSX", "XLS", "DOC", "DOCX"];
  2235. if (
  2236. a.indexOf(
  2237. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  2238. ) != -1
  2239. ) {
  2240. this.pptImgUrl =
  2241. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  2242. this.dialogVisible3 = true;
  2243. } else {
  2244. window.open(this.file[i].url);
  2245. }
  2246. },
  2247. downFileList(i) {
  2248. window.open(this.noImgList[i].url);
  2249. },
  2250. openAddWork() {
  2251. this.dialogVisible = true;
  2252. },
  2253. addStudentAsk() {
  2254. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  2255. let params = [
  2256. {
  2257. uid: this.userid,
  2258. cid: this.id,
  2259. stage: this.courseType,
  2260. task: this.taskCount,
  2261. tool: this.toolindex,
  2262. content: JSON.stringify(this.askList),
  2263. type: 2,
  2264. },
  2265. ];
  2266. this.ajax
  2267. .post(this.$store.state.api + "addCourseWorks", params)
  2268. .then((res) => {
  2269. this.$message({
  2270. message: "提交成功",
  2271. type: "success",
  2272. });
  2273. this.askList = [];
  2274. this.dialogVisible5 = false;
  2275. })
  2276. .catch((err) => {
  2277. this.$message.error("提交失败");
  2278. console.error(err);
  2279. });
  2280. },
  2281. addWork() {
  2282. if (this.studyJuri[0].content == "") {
  2283. this.$message.error("请将信息填写完整");
  2284. return;
  2285. } else if (this.studyJuri[0].cover.length == 0) {
  2286. this.$message.error("请将信息填写完整");
  2287. return;
  2288. } else if (this.studyJuri[0].upVedio.length == 0) {
  2289. this.$message.error("请将信息填写完整");
  2290. return;
  2291. }
  2292. if (this.isNoHomeWork) {
  2293. this.$confirm(
  2294. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  2295. "提示",
  2296. {
  2297. confirmButtonText: "确定",
  2298. cancelButtonText: "取消",
  2299. type: "warning",
  2300. }
  2301. )
  2302. .then(() => {
  2303. let params = [
  2304. {
  2305. uid: this.userid,
  2306. cid: this.id,
  2307. stage: this.courseType,
  2308. task: this.taskCount,
  2309. content: JSON.stringify(this.studyJuri),
  2310. },
  2311. ];
  2312. this.ajax
  2313. .post(this.$store.state.api + "addWorks", params)
  2314. .then((res) => {
  2315. this.$message({
  2316. message: "提交成功",
  2317. type: "success",
  2318. });
  2319. this.isNoHomeWork = true;
  2320. this.dialogVisible = false;
  2321. })
  2322. .catch((err) => {
  2323. this.$message.error("提交失败");
  2324. console.error(err);
  2325. });
  2326. })
  2327. .catch(() => {});
  2328. } else {
  2329. let params = [
  2330. {
  2331. uid: this.userid,
  2332. cid: this.id,
  2333. stage: this.courseType,
  2334. task: this.taskCount,
  2335. content: JSON.stringify(this.studyJuri),
  2336. },
  2337. ];
  2338. this.ajax
  2339. .post(this.$store.state.api + "addWorks", params)
  2340. .then((res) => {
  2341. this.$message({
  2342. message: "提交成功",
  2343. type: "success",
  2344. });
  2345. this.isNoHomeWork = true;
  2346. this.dialogVisible = false;
  2347. })
  2348. .catch((err) => {
  2349. this.$message.error("提交失败");
  2350. console.error(err);
  2351. });
  2352. }
  2353. },
  2354. selectCount() {
  2355. let params = {
  2356. cid: this.id,
  2357. chid: this.courseType,
  2358. uid: this.userid,
  2359. };
  2360. this.ajax
  2361. .get(this.$store.state.api + "selectToolsCount", params)
  2362. .then((res) => {
  2363. for (var i = 0; i < res.data[0].length; i++) {
  2364. if (res.data[0][i].tools == 1) {
  2365. this.wbCount = res.data[0][i].count;
  2366. } else if (res.data[0][i].tools == 2) {
  2367. this.wordCount = res.data[0][i].count;
  2368. } else if (res.data[0][i].tools == 3) {
  2369. this.mindCount = res.data[0][i].count;
  2370. } else if (res.data[0][i].tools == 4) {
  2371. this.askCount = res.data[0][i].count;
  2372. } else if (res.data[0][i].tools == 6) {
  2373. this.noteCount = res.data[0][i].count;
  2374. } else if (res.data[0][i].tools == 7) {
  2375. this.mindNetWorkCount = res.data[0][i].count;
  2376. } else if (res.data[0][i].tools == 8) {
  2377. this.libraryCount = res.data[0][i].count;
  2378. } else if (res.data[0][i].tools == 16) {
  2379. this.workCount = res.data[0][i].count;
  2380. } else if (res.data[0][i].tools == 10) {
  2381. this.timeCount = res.data[0][i].count;
  2382. } else if (res.data[0][i].tools == 15) {
  2383. this.answerCount = res.data[0][i].count;
  2384. } else if (res.data[0][i].tools == 18) {
  2385. this.trainCount = res.data[0][i].count;
  2386. }
  2387. }
  2388. })
  2389. .catch((err) => {
  2390. console.error(err);
  2391. });
  2392. },
  2393. openTools(t, i, index, c) {
  2394. var z = JSON.parse(c);
  2395. if (t == 4) {
  2396. this.radio = [];
  2397. this.isAnswer = false;
  2398. for (var i = 0; i < z.length; i++) {
  2399. let a = z[i];
  2400. let b = a.anwer.split(",");
  2401. let d = [];
  2402. for (var j = 0; j < b.length; j++) {
  2403. d.push(parseInt(b[j]));
  2404. }
  2405. this.radio = d;
  2406. this.askJson = a.askJson;
  2407. }
  2408. this.isAnswer = true;
  2409. this.dialogVisible5 = true;
  2410. } else if (t == 15) {
  2411. this.answerQ = "";
  2412. this.questionAnswer = "";
  2413. this.answerQ = z[0].answerTitle;
  2414. this.questionAnswer = z[0].answer;
  2415. this.answerDialogVisible = true;
  2416. }
  2417. },
  2418. addTools(t, i, index) {
  2419. var a = 0;
  2420. // this.taskCount = index;
  2421. this.toolindex = i;
  2422. if (t == 1) {
  2423. if (this.wbCount > 0) {
  2424. this.updateCount(this.wbCount, t);
  2425. } else {
  2426. this.wbCount++;
  2427. a = this.wbCount;
  2428. this.toolsCount(a, t);
  2429. }
  2430. window.parent.postMessage(
  2431. {
  2432. tools: "1",
  2433. cid: this.id,
  2434. stage: this.courseType,
  2435. task: this.taskCount,
  2436. tool: i,
  2437. },
  2438. "*"
  2439. );
  2440. } else if (t == 2) {
  2441. if (this.wordCount > 0) {
  2442. this.updateCount(this.wordCount, t);
  2443. } else {
  2444. this.wordCount++;
  2445. a = this.wordCount;
  2446. this.toolsCount(a, t);
  2447. }
  2448. window.parent.postMessage({ tools: "2" }, "*");
  2449. } else if (t == 3) {
  2450. if (this.mindCount > 0) {
  2451. this.updateCount(this.mindCount, t);
  2452. } else {
  2453. this.mindCount++;
  2454. a = this.mindCount;
  2455. this.toolsCount(a, t);
  2456. }
  2457. window.parent.postMessage(
  2458. {
  2459. tools: "3",
  2460. cid: this.id,
  2461. stage: this.courseType,
  2462. task: this.taskCount,
  2463. tool: i,
  2464. },
  2465. "*"
  2466. );
  2467. } else if (t == 4) {
  2468. this.radio = [];
  2469. this.isAnswer = false;
  2470. if (this.askCount > 0) {
  2471. this.updateCount(this.askCount, t);
  2472. } else {
  2473. this.askCount++;
  2474. a = this.askCount;
  2475. this.toolsCount(a, t);
  2476. }
  2477. if (!this.dialogVisible2) {
  2478. this.askJson.askJson =
  2479. this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  2480. this.askJson.askTitle =
  2481. this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  2482. this.askJson.askCount =
  2483. this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  2484. } else {
  2485. this.askJson.askJson = this.chapTools.askJson.askJson;
  2486. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  2487. this.askJson.askCount = this.chapTools.askJson.askCount;
  2488. }
  2489. this.dialogVisible5 = true;
  2490. // window.parent.postMessage({ tools: "4" }, "*");
  2491. } else if (t == 5) {
  2492. if (this.scoreCount > 0) {
  2493. this.updateCount(this.scoreCount, t);
  2494. } else {
  2495. this.scoreCount++;
  2496. a = this.scoreCount;
  2497. this.toolsCount(a, t);
  2498. }
  2499. this.dialogVisible4 = true;
  2500. // window.parent.postMessage({ tools: "5" }, "*");
  2501. } else if (t == 6) {
  2502. if (this.noteCount > 0) {
  2503. this.updateCount(this.noteCount, t);
  2504. } else {
  2505. this.noteCount++;
  2506. a = this.noteCount;
  2507. this.toolsCount(a, t);
  2508. }
  2509. window.parent.postMessage(
  2510. {
  2511. tools: "6",
  2512. cid: this.id,
  2513. stage: this.courseType,
  2514. task: this.taskCount,
  2515. tool: i,
  2516. },
  2517. "*"
  2518. );
  2519. } else if (t == 7) {
  2520. if (this.mindNetWorkCount > 0) {
  2521. this.updateCount(this.mindNetWorkCount, t);
  2522. } else {
  2523. this.mindNetWorkCount++;
  2524. a = this.mindNetWorkCount;
  2525. this.toolsCount(a, t);
  2526. }
  2527. window.parent.postMessage(
  2528. {
  2529. tools: "7",
  2530. cid: this.id,
  2531. stage: this.courseType,
  2532. task: this.taskCount,
  2533. tool: i,
  2534. },
  2535. "*"
  2536. );
  2537. } else if (t == 16) {
  2538. if (this.workCount > 0) {
  2539. this.updateCount(this.workCount, t);
  2540. } else {
  2541. this.workCount++;
  2542. a = this.workCount;
  2543. this.toolsCount(a, t);
  2544. }
  2545. this.dialogVisible = true;
  2546. } else if (t == 8) {
  2547. if (this.libraryCount > 0) {
  2548. this.updateCount(this.libraryCount, t);
  2549. } else {
  2550. this.libraryCount++;
  2551. a = this.libraryCount;
  2552. this.toolsCount(a, t);
  2553. }
  2554. window.parent.postMessage({ tools: "8" }, "*");
  2555. } else if (t == 17) {
  2556. if (this.libraryCount > 0) {
  2557. this.updateCount(this.libraryCount, t);
  2558. } else {
  2559. this.libraryCount++;
  2560. a = this.libraryCount;
  2561. this.toolsCount(a, t);
  2562. }
  2563. window.parent.postMessage({ tools: "17" }, "*");
  2564. } else if (t == 18) {
  2565. if (this.trainCount > 0) {
  2566. this.updateCount(this.trainCount, t);
  2567. } else {
  2568. this.trainCount++;
  2569. a = this.trainCount;
  2570. this.toolsCount(a, t);
  2571. }
  2572. window.parent.postMessage({ tools: "18" }, "*");
  2573. } else if (t == 10) {
  2574. if (this.timeCount > 0) {
  2575. this.updateCount(this.timeCount, t);
  2576. } else {
  2577. this.timeCount++;
  2578. a = this.timeCount;
  2579. this.toolsCount(a, t);
  2580. }
  2581. this.timeDialogVisible = true;
  2582. } else if (t == 15) {
  2583. this.answerQ = "";
  2584. this.questionAnswer = "";
  2585. if (this.answerCount > 0) {
  2586. this.updateCount(this.answerCount, t);
  2587. } else {
  2588. this.answerCount++;
  2589. a = this.answerCount;
  2590. this.toolsCount(a, t);
  2591. }
  2592. this.answerQ = this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
  2593. i
  2594. ].answerQ
  2595. ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
  2596. : "";
  2597. this.answerDialogVisible = true;
  2598. }
  2599. },
  2600. toolsCount(a, t) {
  2601. let params = {
  2602. cid: this.id,
  2603. chid: this.courseType,
  2604. uid: this.userid,
  2605. tid: t,
  2606. count: a,
  2607. };
  2608. this.ajax
  2609. .get(this.$store.state.api + "insertToolsCount", params)
  2610. .then((res) => {
  2611. this.selectCount();
  2612. })
  2613. .catch((err) => {
  2614. console.error(err);
  2615. });
  2616. },
  2617. updateCount(c, t) {
  2618. c++;
  2619. let params = {
  2620. cid: this.id,
  2621. chid: this.courseType,
  2622. uid: this.userid,
  2623. tid: t,
  2624. count: c,
  2625. };
  2626. this.ajax
  2627. .get(this.$store.state.api + "updateToolsCount", params)
  2628. .then((res) => {
  2629. this.selectCount();
  2630. })
  2631. .catch((err) => {
  2632. console.error(err);
  2633. });
  2634. },
  2635. },
  2636. destroyed() {
  2637. window.onresize = null;
  2638. },
  2639. created() {
  2640. this.getCourseDetail();
  2641. this.selectCount();
  2642. this.getHomeWork();
  2643. document.scrollingElement.scrollTop = 0;
  2644. window.addEventListener("resize", () => {
  2645. var a = document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2646. document.getElementsByClassName("vedioList")[0].style.height =
  2647. a - 15 + "px";
  2648. document.getElementsByClassName("navBox")[0].style.height =
  2649. a - 100 + "px";
  2650. });
  2651. setTimeout(() => {
  2652. this.vedioTime = document.getElementsByClassName(
  2653. "vjs-duration-display"
  2654. )[0].textContent;
  2655. }, 1000);
  2656. },
  2657. };
  2658. </script>
  2659. <style scoped>
  2660. .body_student {
  2661. width: 77%;
  2662. height: 100%;
  2663. position: absolute;
  2664. left: 22%;
  2665. top: 0;
  2666. }
  2667. .student_head {
  2668. width: 100%;
  2669. margin: 0 auto;
  2670. padding-bottom: 50px;
  2671. display: flex;
  2672. flex-direction: row;
  2673. flex-wrap: nowrap;
  2674. align-items: flex-start;
  2675. justify-content: flex-start;
  2676. }
  2677. .pb_left {
  2678. width: 20%;
  2679. margin-right: 10px;
  2680. background: rgb(255, 255, 255);
  2681. padding-right: 10px;
  2682. position: fixed;
  2683. height: 100%;
  2684. }
  2685. .wheel > img,
  2686. .project > img,
  2687. .star > img,
  2688. .evaluate > img,
  2689. .up_photo > img,
  2690. .chapter_add > img,
  2691. .upCover > img,
  2692. .deleteWord > img,
  2693. .question > img,
  2694. .homework > img {
  2695. width: 100%;
  2696. height: 100%;
  2697. }
  2698. .upCover {
  2699. width: calc(100% / 3.5);
  2700. position: relative;
  2701. margin: 0 15px 10px 0;
  2702. display: flex;
  2703. flex-direction: column;
  2704. flex-wrap: nowrap;
  2705. justify-content: center;
  2706. align-content: center;
  2707. align-items: center;
  2708. }
  2709. .chapter_add {
  2710. width: 120px;
  2711. position: relative;
  2712. text-align: center;
  2713. }
  2714. .isAddThings {
  2715. margin-top: 20px;
  2716. position: relative;
  2717. text-align: center;
  2718. background: #f7f8fa;
  2719. height: 90px;
  2720. width: 90px;
  2721. display: flex;
  2722. flex-direction: column;
  2723. justify-content: center;
  2724. }
  2725. .deleteWord {
  2726. width: 22px;
  2727. height: 22px;
  2728. position: absolute;
  2729. right: -5px;
  2730. top: -5px;
  2731. cursor: pointer;
  2732. }
  2733. .box_course {
  2734. display: flex;
  2735. flex-direction: row;
  2736. justify-content: flex-start;
  2737. align-items: center;
  2738. }
  2739. .wheel {
  2740. width: 100%;
  2741. height: 100%;
  2742. }
  2743. .right_box {
  2744. display: flex;
  2745. flex-direction: column;
  2746. margin-left: 30px;
  2747. justify-content: space-around;
  2748. }
  2749. .right_box_title {
  2750. font-size: 23px;
  2751. }
  2752. .people {
  2753. display: flex;
  2754. }
  2755. .student_body {
  2756. width: 100%;
  2757. margin: 0 auto;
  2758. margin-top: 20px;
  2759. padding: 0 0 20px;
  2760. }
  2761. .study_top {
  2762. margin-top: 90px;
  2763. width: 100%;
  2764. overflow: auto;
  2765. height: auto;
  2766. }
  2767. .study_top .checkbox {
  2768. display: flex;
  2769. align-items: center;
  2770. padding: 20px 0 20px 30px;
  2771. flex: 0 0 auto;
  2772. font-weight: bold;
  2773. border-bottom: 1px solid #eee;
  2774. }
  2775. .study_top .check {
  2776. padding-bottom: 5px;
  2777. text-align: center;
  2778. cursor: pointer;
  2779. height: 30px;
  2780. box-sizing: border-box;
  2781. display: flex;
  2782. }
  2783. .study_top .checked {
  2784. border-bottom: 4px solid #3fc6a0;
  2785. padding-bottom: 5px;
  2786. color: #3fc6a0;
  2787. display: flex;
  2788. height: 35px;
  2789. }
  2790. .study_top .checked > div,
  2791. .study_top .check > div {
  2792. margin-right: 5px;
  2793. }
  2794. .videoTop {
  2795. display: flex;
  2796. flex-direction: row;
  2797. justify-content: space-between;
  2798. background: #fff;
  2799. align-items: center;
  2800. width: 95%;
  2801. padding: 20px;
  2802. }
  2803. .upbtn {
  2804. margin: 25px;
  2805. background: #70afdb;
  2806. color: #fff;
  2807. width: 120px;
  2808. text-align: center;
  2809. height: 30px;
  2810. line-height: 30px;
  2811. font-size: 13px;
  2812. border-radius: 5px;
  2813. cursor: pointer;
  2814. }
  2815. .filebox {
  2816. display: flex;
  2817. flex-wrap: wrap;
  2818. flex-direction: column;
  2819. padding: 15px 0 25px;
  2820. }
  2821. .filebox .tooldetail {
  2822. width: 100%;
  2823. margin: 0px 12px;
  2824. background: rgb(247, 247, 247);
  2825. padding: 20px;
  2826. line-height: 30px;
  2827. max-height: 105px;
  2828. overflow: auto;
  2829. height: 70px;
  2830. }
  2831. .file {
  2832. display: flex;
  2833. flex-direction: column;
  2834. align-items: center;
  2835. justify-content: center;
  2836. cursor: pointer;
  2837. width: 200px;
  2838. }
  2839. .file div {
  2840. margin-top: 10px;
  2841. width: 150px;
  2842. text-align: center;
  2843. overflow: hidden;
  2844. white-space: nowrap;
  2845. text-overflow: ellipsis;
  2846. }
  2847. .media {
  2848. display: flex;
  2849. flex-direction: column;
  2850. align-items: center;
  2851. justify-content: center;
  2852. margin: 0 20px 20px 0;
  2853. cursor: pointer;
  2854. margin: 12px 0 5px 15px;
  2855. overflow: hidden;
  2856. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  2857. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  2858. box-sizing: border-box;
  2859. }
  2860. .media img {
  2861. height: 90px;
  2862. width: 160px;
  2863. object-fit: cover;
  2864. }
  2865. .media .title {
  2866. padding: 5px;
  2867. text-align: left;
  2868. width: 100%;
  2869. box-sizing: border-box;
  2870. }
  2871. .media .btn {
  2872. width: 100%;
  2873. height: 35px;
  2874. line-height: 35px;
  2875. color: #fff;
  2876. background: #606060;
  2877. text-align: center;
  2878. overflow: hidden;
  2879. white-space: nowrap;
  2880. text-overflow: ellipsis;
  2881. }
  2882. .detail_content_top {
  2883. width: 100%;
  2884. padding: 25px 0 25px 0;
  2885. }
  2886. .detail_title {
  2887. text-align: center;
  2888. font-size: 24px;
  2889. }
  2890. .detail_time {
  2891. font-size: 13px;
  2892. padding: 15px 0 0 40px;
  2893. }
  2894. .detail_content {
  2895. line-height: 2pc;
  2896. width: 90%;
  2897. margin: 0 auto;
  2898. padding-top: 30px;
  2899. text-indent: 30px;
  2900. overflow: auto;
  2901. height: 200px;
  2902. }
  2903. .score_box >>> .el-rate {
  2904. margin-left: 10px;
  2905. }
  2906. .dialog_change >>> .el-dialog {
  2907. border-radius: 5px;
  2908. }
  2909. .dialog_change >>> .el-dialog__header {
  2910. background: #f2f2f2;
  2911. text-align: center;
  2912. }
  2913. .dialog_change >>> .el-dialog__title {
  2914. line-height: 5px;
  2915. }
  2916. .dialog_change >>> .el-dialog__body {
  2917. background: #fff;
  2918. padding: 10px 20px;
  2919. }
  2920. .score_box {
  2921. display: flex;
  2922. align-items: center;
  2923. margin-bottom: 18px;
  2924. margin-top: 20px;
  2925. }
  2926. .up_photo {
  2927. width: 120px;
  2928. cursor: pointer;
  2929. margin-top: 10px;
  2930. }
  2931. .upload_send {
  2932. margin: 200px auto 30px;
  2933. width: 60%;
  2934. background: #169bd6;
  2935. text-align: center;
  2936. height: 35px;
  2937. line-height: 35px;
  2938. color: #fff;
  2939. border-radius: 5px;
  2940. cursor: pointer;
  2941. }
  2942. .marginT {
  2943. margin-top: 20px;
  2944. }
  2945. .cd_content_steps {
  2946. display: flex;
  2947. width: 90%;
  2948. justify-content: space-around;
  2949. border-top: 1px solid #eeeeee;
  2950. }
  2951. .cd_steps_box {
  2952. display: flex;
  2953. justify-content: center;
  2954. align-items: center;
  2955. flex-direction: column;
  2956. cursor: pointer;
  2957. }
  2958. .first {
  2959. display: flex;
  2960. align-items: center;
  2961. margin: 15px 0 20px 0;
  2962. font-size: 20px;
  2963. }
  2964. .first > div:nth-child(2) {
  2965. font-size: 16px !important;
  2966. padding-left: 10px;
  2967. line-height: 26px;
  2968. box-sizing: border-box;
  2969. }
  2970. .blue_box_one {
  2971. text-align: center;
  2972. color: #fff;
  2973. background-image: linear-gradient(to right, #30c499, #75ceba);
  2974. border-radius: 7px;
  2975. margin: 10px;
  2976. cursor: pointer;
  2977. width: 95%;
  2978. height: 45px;
  2979. display: flex;
  2980. flex-direction: row;
  2981. justify-content: flex-start;
  2982. align-items: center;
  2983. }
  2984. .blue_box_one > div:nth-child(1) {
  2985. line-height: 65px;
  2986. margin: 0 5px 0 10px;
  2987. width: 30%;
  2988. min-width: 70px;
  2989. }
  2990. .blue_box_one > div:nth-child(2) {
  2991. white-space: nowrap;
  2992. text-overflow: ellipsis;
  2993. overflow: hidden;
  2994. word-break: break-all;
  2995. width: 70%;
  2996. text-align: left;
  2997. max-width: calc(100% - 85px);
  2998. }
  2999. .blue_box_one > div:nth-child(2):hover {
  3000. overflow: hidden;
  3001. text-overflow: ellipsis;
  3002. white-space: nowrap;
  3003. cursor: pointer;
  3004. }
  3005. .upFile {
  3006. margin: 0 auto;
  3007. width: 120px;
  3008. background: #70afdb;
  3009. color: #fff;
  3010. height: 30px;
  3011. text-align: center;
  3012. line-height: 30px;
  3013. border-radius: 5px;
  3014. font-size: 14px;
  3015. cursor: pointer;
  3016. }
  3017. .courseTitle {
  3018. background: #329c74;
  3019. width: 95%;
  3020. margin: 10px auto;
  3021. height: 40px;
  3022. color: #fff;
  3023. line-height: 40px;
  3024. text-indent: 15px;
  3025. }
  3026. .ml {
  3027. margin-left: 15px;
  3028. color: #d1d1d1;
  3029. }
  3030. .return {
  3031. width: 2rem;
  3032. height: 2rem;
  3033. cursor: pointer;
  3034. }
  3035. .return > img {
  3036. width: 100%;
  3037. height: 100%;
  3038. }
  3039. .returnBtn {
  3040. background: rgb(238, 238, 238);
  3041. width: 58px;
  3042. height: 30px;
  3043. color: rgb(22, 22, 22);
  3044. text-align: center;
  3045. line-height: 32px;
  3046. margin-right: 20px;
  3047. cursor: pointer;
  3048. }
  3049. .tool {
  3050. display: flex;
  3051. flex-direction: column;
  3052. flex-wrap: nowrap;
  3053. width: 13%;
  3054. margin: 0 30px;
  3055. align-items: center;
  3056. }
  3057. .whiteBIcon {
  3058. width: 150px;
  3059. cursor: pointer;
  3060. }
  3061. .whiteBIcon > img {
  3062. width: 100%;
  3063. height: 100%;
  3064. }
  3065. .mask {
  3066. background-color: rgba(0, 0, 0, 0);
  3067. position: fixed;
  3068. top: 0;
  3069. left: 0;
  3070. width: 100%;
  3071. height: 100%;
  3072. z-index: 20000;
  3073. display: flex;
  3074. align-items: center;
  3075. justify-content: center;
  3076. }
  3077. .progressBox {
  3078. width: 500px;
  3079. height: 180px;
  3080. background: #fff;
  3081. border-radius: 10px;
  3082. box-shadow: 0 0 6px 1px #bfbfbf;
  3083. display: flex;
  3084. align-items: center;
  3085. justify-content: center;
  3086. flex-direction: column;
  3087. }
  3088. .progressBox .lbox {
  3089. height: 100px;
  3090. font-size: 19px;
  3091. display: flex;
  3092. align-items: center;
  3093. }
  3094. .progressBox .lbox img {
  3095. width: 40px;
  3096. margin-right: 20px;
  3097. }
  3098. .progressBox >>> .el-progress-bar__outer {
  3099. background-color: #d1dfff !important;
  3100. }
  3101. .progressBox .lbox {
  3102. height: 100px;
  3103. font-size: 19px;
  3104. display: flex;
  3105. align-items: center;
  3106. }
  3107. .progressBox .lbox img {
  3108. width: 40px;
  3109. margin-right: 20px;
  3110. }
  3111. .uploadVedio {
  3112. display: flex;
  3113. flex-direction: column;
  3114. flex-wrap: nowrap;
  3115. justify-content: center;
  3116. align-items: center;
  3117. margin: 0 15px 10px 0;
  3118. }
  3119. .uploadVedio > img {
  3120. width: 30px;
  3121. height: 30px;
  3122. }
  3123. .uploadVedio > span {
  3124. white-space: nowrap;
  3125. overflow: hidden;
  3126. text-overflow: ellipsis;
  3127. width: 75px;
  3128. margin-top: 7px;
  3129. }
  3130. .picName {
  3131. white-space: nowrap;
  3132. overflow: hidden;
  3133. text-overflow: ellipsis;
  3134. width: 75px;
  3135. margin-top: 7px;
  3136. }
  3137. .new_top {
  3138. display: flex;
  3139. background: #fff;
  3140. flex-direction: row;
  3141. justify-content: flex-start;
  3142. align-items: center;
  3143. height: 60px;
  3144. position: relative;
  3145. }
  3146. .before {
  3147. position: absolute;
  3148. background: #c3dad4;
  3149. width: 6px;
  3150. height: 100%;
  3151. }
  3152. .courseIndex {
  3153. display: flex;
  3154. flex-direction: row;
  3155. align-items: baseline;
  3156. }
  3157. .courseIndex > div:nth-child(1) {
  3158. margin: 0 20px;
  3159. padding-bottom: 5px;
  3160. color: #288a6e;
  3161. font-size: 20px;
  3162. width: 80px;
  3163. font-weight: bold;
  3164. border-bottom: 4px solid #41c4a4;
  3165. text-align: center;
  3166. }
  3167. .courseIndex > div:nth-child(2) {
  3168. font-size: 23px;
  3169. color: #c0c0c0;
  3170. }
  3171. .course_text {
  3172. padding: 20px 0 0 15px;
  3173. text-indent: 30px;
  3174. width: 80%;
  3175. min-height: 20px;
  3176. }
  3177. .vedioList {
  3178. background: #f2f2f2;
  3179. border: 1px solid #ececec;
  3180. width: 213px;
  3181. height: 530px;
  3182. border-radius: 10px;
  3183. margin-top: 15px;
  3184. }
  3185. .vedioNav {
  3186. margin: 10px 0 0 15px;
  3187. border-bottom: 1px solid #d7d7d7;
  3188. padding-bottom: 5px;
  3189. background: #d2e3ff;
  3190. width: 60px;
  3191. border-radius: 5px;
  3192. color: #4d97d6;
  3193. text-align: center;
  3194. height: 20px;
  3195. line-height: 26px;
  3196. font-size: 14px;
  3197. }
  3198. .queTop {
  3199. display: flex;
  3200. padding: 20px 0 20px 30px;
  3201. width: 100%;
  3202. flex-direction: row;
  3203. justify-content: flex-start;
  3204. align-items: center;
  3205. border-bottom: 1px solid #eeeeee;
  3206. box-sizing: border-box;
  3207. }
  3208. .question {
  3209. width: 40px;
  3210. margin-right: 10px;
  3211. margin-top: 7px;
  3212. }
  3213. .queTitle {
  3214. margin-left: 5px;
  3215. font-size: 25px;
  3216. display: flex;
  3217. align-items: center;
  3218. }
  3219. .addEditor {
  3220. width: 100px;
  3221. height: 30px;
  3222. background: #42cda6;
  3223. color: #fff;
  3224. border-radius: 5px;
  3225. text-align: center;
  3226. line-height: 30px;
  3227. box-shadow: 1px 3px 6px 1px #bfbfbf;
  3228. cursor: pointer;
  3229. }
  3230. .vedioName {
  3231. width: 90px;
  3232. text-overflow: ellipsis;
  3233. position: absolute;
  3234. top: 8px;
  3235. font-size: 14px;
  3236. left: 110px;
  3237. height: 60px;
  3238. }
  3239. .vedioTime {
  3240. width: 35px;
  3241. position: absolute;
  3242. color: #fff;
  3243. bottom: 0px;
  3244. right: 0px;
  3245. text-align: center;
  3246. background: #46411f;
  3247. height: 20px;
  3248. font-size: 14px;
  3249. line-height: 20px;
  3250. }
  3251. .homework {
  3252. width: 200px;
  3253. display: flex;
  3254. flex-direction: column;
  3255. flex-wrap: nowrap;
  3256. align-items: center;
  3257. cursor: pointer;
  3258. }
  3259. .homebox {
  3260. display: flex;
  3261. flex-wrap: wrap;
  3262. flex-direction: row;
  3263. justify-content: flex-start;
  3264. align-items: center;
  3265. padding: 15px 0;
  3266. }
  3267. .isChooseActive {
  3268. color: #3e88f4;
  3269. border-bottom: 2px solid #2f80f3;
  3270. }
  3271. .chooseWho {
  3272. display: flex;
  3273. width: 100%;
  3274. flex-direction: row;
  3275. flex-wrap: nowrap;
  3276. justify-content: flex-start;
  3277. padding-bottom: 10px;
  3278. }
  3279. .chooseWho > div {
  3280. cursor: pointer;
  3281. padding-bottom: 10px;
  3282. margin: 0 30px;
  3283. }
  3284. .addPoint > div > img {
  3285. cursor: pointer;
  3286. margin: 0 10px;
  3287. width: 85px;
  3288. }
  3289. .addPoint > div {
  3290. display: flex;
  3291. flex-direction: column;
  3292. flex-wrap: nowrap;
  3293. align-items: center;
  3294. }
  3295. .isBorder > div {
  3296. margin: 0 0 10px 0;
  3297. align-items: flex-start !important;
  3298. }
  3299. .noiframeBox {
  3300. display: flex;
  3301. flex-wrap: wrap;
  3302. }
  3303. .iframeBox {
  3304. }
  3305. .iframeBox iframe {
  3306. width: 100%;
  3307. height: 800px;
  3308. border: none;
  3309. margin-bottom: 20px;
  3310. border: 1px solid #ccc;
  3311. }
  3312. .upload_toolBtn {
  3313. background: #6b92c9;
  3314. color: #fff;
  3315. width: 110px;
  3316. text-align: center;
  3317. height: 35px;
  3318. line-height: 35px;
  3319. font-size: 14px;
  3320. border-radius: 5px;
  3321. cursor: pointer;
  3322. position: absolute;
  3323. right: 10px;
  3324. bottom: 0;
  3325. }
  3326. .binfo_input {
  3327. font: inherit;
  3328. color: currentColor;
  3329. width: 100%;
  3330. margin: 0;
  3331. padding: 15px 14px;
  3332. display: block;
  3333. min-width: 0;
  3334. outline: none;
  3335. box-sizing: content-box;
  3336. background: none;
  3337. -webkit-tap-highlight-color: transparent;
  3338. border: 1px solid rgba(0, 0, 0, 0.23);
  3339. border-radius: 4px;
  3340. box-sizing: border-box;
  3341. resize: none;
  3342. }
  3343. .binfo_input:focus-visible {
  3344. border: 1px solid rgba(61, 103, 188);
  3345. }
  3346. .dialog_diy >>> .el-dialog__header {
  3347. background: #484848 !important;
  3348. padding: 15px 20px;
  3349. }
  3350. .dialog_diy >>> .el-dialog__title {
  3351. color: #fff;
  3352. }
  3353. .dialog_diy >>> .el-dialog__headerbtn {
  3354. top: 19px;
  3355. }
  3356. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  3357. color: #fff;
  3358. }
  3359. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  3360. color: #fff;
  3361. }
  3362. .dialog_diy >>> .el-dialog__body,
  3363. .dialog_diy >>> .el-dialog__footer {
  3364. background: #fafafa;
  3365. }
  3366. .a_addBox {
  3367. margin: 10px 0;
  3368. background: #fff;
  3369. padding: 15px;
  3370. max-height: 400px;
  3371. overflow: auto;
  3372. }
  3373. .a_add_box {
  3374. border-bottom: 2px solid #eee;
  3375. padding-bottom: 10px;
  3376. }
  3377. .a_add_head {
  3378. display: flex;
  3379. align-items: center;
  3380. justify-content: space-between;
  3381. margin: 10px 0;
  3382. font-size: 18px;
  3383. }
  3384. .a_add_head .a_add_head_input {
  3385. width: 300px;
  3386. }
  3387. .a_add_head .a_add_head_div {
  3388. display: flex;
  3389. align-items: center;
  3390. justify-content: space-between;
  3391. }
  3392. .a_add_body {
  3393. display: flex;
  3394. align-items: center;
  3395. }
  3396. .a_add_input {
  3397. display: flex;
  3398. align-items: center;
  3399. flex-wrap: wrap;
  3400. }
  3401. .a_add_input >>> el-radio-group {
  3402. margin: 10px 0;
  3403. }
  3404. .a_add_input >>> .el-radio {
  3405. margin-bottom: 10px;
  3406. }
  3407. .redioStyle >>> .el-radio__label {
  3408. font-size: 18px;
  3409. }
  3410. .toolHeng2 {
  3411. width: 100%;
  3412. }
  3413. .toolHeng {
  3414. display: flex;
  3415. flex-direction: row;
  3416. flex-wrap: wrap;
  3417. justify-content: flex-start;
  3418. align-items: center;
  3419. width: 100%;
  3420. }
  3421. .toolHeng > div {
  3422. padding-left: 20px;
  3423. }
  3424. .isWidth {
  3425. width: 20%;
  3426. }
  3427. .textTitle >>> .el-form-item__label {
  3428. font-size: 20px;
  3429. }
  3430. .textCss >>> .el-dialog {
  3431. width: 800px !important;
  3432. height: 400px;
  3433. background: #fafafa;
  3434. }
  3435. .textCss >>> .el-dialog__body {
  3436. margin: 55px 8% 0 8%;
  3437. padding: 0 !important;
  3438. }
  3439. .textCss >>> .el-dialog__footer {
  3440. padding-top: 38px;
  3441. }
  3442. .toolsCss >>> .el-dialog__body {
  3443. padding: 20px;
  3444. }
  3445. .lineCss >>> .el-dialog__body {
  3446. display: flex;
  3447. flex-direction: row;
  3448. align-items: center;
  3449. justify-content: center;
  3450. }
  3451. .newNav {
  3452. display: flex;
  3453. flex-direction: row;
  3454. align-items: baseline;
  3455. justify-content: flex-start;
  3456. }
  3457. .navText {
  3458. cursor: pointer;
  3459. margin: 0px 0px 10px 5px;
  3460. width: 112px;
  3461. white-space: nowrap;
  3462. overflow: hidden;
  3463. text-overflow: ellipsis;
  3464. }
  3465. .noVedio {
  3466. display: flex;
  3467. flex-direction: row;
  3468. justify-content: center;
  3469. align-content: center;
  3470. }
  3471. .noNavText {
  3472. cursor: pointer;
  3473. margin: 0px 0px 10px 5px;
  3474. width: 112px;
  3475. }
  3476. .listNoVedio {
  3477. margin-top: 10px;
  3478. }
  3479. .video-player >>> .video-js {
  3480. height: 100%;
  3481. }
  3482. .hangVedioList {
  3483. width: 90% !important;
  3484. height: 150px !important;
  3485. margin: 20px 0 0 30px;
  3486. }
  3487. .hangVedio {
  3488. width: 100%;
  3489. height: 170px !important;
  3490. align-items: flex-start !important;
  3491. }
  3492. .hangHand {
  3493. height: 150px !important;
  3494. }
  3495. .twoChild {
  3496. width: 95%;
  3497. margin: 10px;
  3498. border-radius: 5px;
  3499. background: #f2f2f2;
  3500. display: flex;
  3501. flex-direction: column;
  3502. flex-wrap: nowrap;
  3503. justify-content: flex-start;
  3504. align-items: flex-start;
  3505. transition: all 0.5s;
  3506. overflow: hidden;
  3507. height: 0;
  3508. }
  3509. .twoChild > div:nth-child(1) {
  3510. margin-top: 5px;
  3511. }
  3512. .navChild {
  3513. width: 100%;
  3514. cursor: pointer;
  3515. margin-bottom: 10px;
  3516. }
  3517. .navActive {
  3518. height: auto;
  3519. }
  3520. .navTask {
  3521. display: flex;
  3522. flex-direction: row;
  3523. flex-wrap: nowrap;
  3524. align-items: center;
  3525. align-content: flex-start;
  3526. height: 40px;
  3527. justify-content: flex-start;
  3528. padding: 0 10px;
  3529. width: 100%;
  3530. }
  3531. .navTaskname {
  3532. white-space: nowrap;
  3533. text-overflow: ellipsis;
  3534. overflow: hidden;
  3535. word-break: break-all;
  3536. padding-left: 5px;
  3537. }
  3538. .openTaskActive {
  3539. color: #43a078;
  3540. background: #e8e8e8;
  3541. }
  3542. .iframeName {
  3543. margin: 5px 0;
  3544. border-left: 4px solid #41c4a4;
  3545. padding-left: 4px;
  3546. }
  3547. .toolTitle {
  3548. margin: 0px 0px 20px;
  3549. font-size: 20px;
  3550. font-weight: 500;
  3551. border-left: 4px solid #41c4a4;
  3552. padding-left: 4px;
  3553. }
  3554. .cru_selectBox {
  3555. overflow: auto;
  3556. height: calc(100% - 40px - 21px - 20px);
  3557. }
  3558. .cru_selectBox::-webkit-scrollbar,
  3559. .study_top::-webkit-scrollbar {
  3560. /*滚动条整体样式*/
  3561. width: 6px;
  3562. /*高宽分别对应横竖滚动条的尺寸*/
  3563. height: 6px;
  3564. }
  3565. /*定义滚动条轨道 内阴影+圆角*/
  3566. .cru_selectBox::-webkit-scrollbar-track,
  3567. .study_top::-webkit-scrollbar-track {
  3568. border-radius: 10px;
  3569. background-color: #eee;
  3570. }
  3571. /*定义滑块 内阴影+圆角*/
  3572. .cru_selectBox::-webkit-scrollbar-thumb,
  3573. .study_top::-webkit-scrollbar-thumb {
  3574. border-radius: 10px;
  3575. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  3576. background-color: rgba(0, 0, 0, 0.1);
  3577. }
  3578. .vedioBox {
  3579. border-radius: 20px;
  3580. background: #fff;
  3581. margin-bottom: 10px;
  3582. }
  3583. .taskBox {
  3584. margin: 15px 0 20px 30px;
  3585. background: #f7f7f7;
  3586. width: 90%;
  3587. border-radius: 5px;
  3588. }
  3589. .vedioTaskBox {
  3590. width: 70%;
  3591. }
  3592. .toolBox {
  3593. padding: 20px 0 0 0;
  3594. display: flex;
  3595. }
  3596. .btnAll {
  3597. position: absolute;
  3598. right: 0;
  3599. display: flex;
  3600. flex-direction: row;
  3601. flex-wrap: nowrap;
  3602. align-items: center;
  3603. }
  3604. .vedioTimeBox {
  3605. display: flex;
  3606. flex-direction: row;
  3607. align-items: center;
  3608. flex-wrap: nowrap;
  3609. position: relative;
  3610. }
  3611. .navBox {
  3612. background: rgb(255, 255, 255);
  3613. margin: 10px 0 0 0;
  3614. height: 530px;
  3615. padding: 5px 1px 0 1px;
  3616. overflow: auto;
  3617. }
  3618. .worksBox {
  3619. padding: 80px 0 15px 10px;
  3620. }
  3621. .worksBTitle {
  3622. font-size: 20px;
  3623. padding-bottom: 15px;
  3624. border-bottom: 1px solid #eeeeee;
  3625. display: flex;
  3626. align-items: center;
  3627. }
  3628. .greenBox {
  3629. width: 5px;
  3630. height: 30px;
  3631. background: #41c4a4;
  3632. margin-right: 5px;
  3633. }
  3634. .worksDetailBox {
  3635. display: flex;
  3636. width: 100%;
  3637. flex-direction: row;
  3638. flex-wrap: wrap;
  3639. align-items: center;
  3640. justify-content: flex-start;
  3641. }
  3642. .works {
  3643. padding: 15px 10px 15px 0;
  3644. display: flex;
  3645. flex-direction: column;
  3646. flex-wrap: nowrap;
  3647. align-items: flex-start;
  3648. justify-content: flex-start;
  3649. align-content: center;
  3650. width: 20%;
  3651. }
  3652. .workImg {
  3653. width: 200px;
  3654. height: 140px;
  3655. cursor: pointer;
  3656. }
  3657. .workImg > img {
  3658. width: 100%;
  3659. height: 100%;
  3660. }
  3661. .worksName {
  3662. margin: 5px 0 0 0;
  3663. }
  3664. .noWorksS {
  3665. padding: 15px 0;
  3666. display: flex;
  3667. flex-direction: row;
  3668. flex-wrap: wrap;
  3669. align-items: center;
  3670. justify-content: flex-start;
  3671. }
  3672. .noWorksName {
  3673. background: #efefef;
  3674. width: 90px;
  3675. height: 25px;
  3676. text-align: center;
  3677. line-height: 25px;
  3678. border-radius: 5px;
  3679. margin: 10px 15px 10px 0;
  3680. white-space: nowrap;
  3681. overflow: hidden;
  3682. padding: 5px;
  3683. text-overflow: ellipsis;
  3684. }
  3685. .noWorksName:hover {
  3686. background: #e7e7e7 !important;
  3687. }
  3688. </style>