index.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" :style="{marginTop : gotype ? '75px' : 0}">
  4. <div v-if="gotype" class="r_pub_button_retrun" @click.stop="backliyuan">
  5. <img src="../assets/icon/course/backPage.svg" alt="">
  6. 课程中心
  7. </div>
  8. <div class="student_head" v-else>
  9. <!-- <img src="../assets/banner.png" alt="" /> -->
  10. <!-- //pbl.cocorobo.cn/pbl-teacher-table/dist -->
  11. <el-carousel trigger="click" style="width: 100%; height: 100%">
  12. <el-carousel-item v-for="item in bannerList" :key="item.id">
  13. <!-- <h3 class="small">{{ item }}</h3> -->
  14. <img class="imgS" :src="item.poster" alt="" />
  15. </el-carousel-item>
  16. </el-carousel>
  17. </div>
  18. <div class="reBox">
  19. <div class="reTop">
  20. <div>课程</div>
  21. <div>
  22. <div class="search" @click="search">
  23. <img src="../assets/icon/search.png" alt="" />
  24. </div>
  25. <input class="sInput" type="text" placeholder="请输入关键字" v-model="sCourse" @keyup.enter="search"/>
  26. </div>
  27. </div>
  28. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  29. <span>类型</span>
  30. <el-radio-group v-model="pTypeCheckName" style="display: flex; align-items: center">
  31. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType3" :key="index">
  32. <el-radio :label="item.name" @click.native.prevent="CourseType2Click(item.name)">{{
  33. item.name
  34. }}</el-radio>
  35. </div>
  36. </el-radio-group>
  37. </div>
  38. <div class="choose" v-if="oid != '91796dfb-8791-11ef-9b30-005056b86db5'">
  39. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index"
  40. :style="{ margin: !CourseTypeJson[item.id].length && 0 }">
  41. <span v-if="CourseTypeJson[item.id].length &&
  42. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  43. ? pTypeCheck.indexOf(item.id) != -1
  44. : true)">{{ item.name }}:</span>
  45. <div class="typeCss" v-if="CourseTypeJson[item.id].length &&
  46. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  47. ? pTypeCheck.indexOf(item.id) != -1
  48. : true)">
  49. <div class="cName" @click="getCourse(item.name, '', item.id, 1)"
  50. :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''">
  51. 全部
  52. </div>
  53. <div v-for="(item1, index1) in CourseTypeJson[item.id]" :key="index + '-' + index1" :label="item1.id"
  54. @click="getCourse(item.name, item.id, item1.id, 2)">
  55. <div class="cName" :class="
  56. typea == item1.id || typeb == item1.id || typed == item1.id
  57. ? 'isCType'
  58. : ''
  59. ">
  60. {{ item1.name }}
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="body_student" v-loading="loading">
  68. <div class="typeCheck">
  69. <div><el-switch v-model="orderBy"></el-switch><span>按名字排序</span></div>
  70. <div><el-switch v-model="typeCheck"></el-switch><span>分类显示</span></div>
  71. <div v-if="oidArray.indexOf(oid) !== -1"><el-switch v-model="typeCheck2"></el-switch><span>按年级显示</span></div>
  72. </div>
  73. <div>
  74. <div class="main_box">
  75. <div :class="zoneClass.length > 5 ? 'claList' : 'claListFlex'" v-if="!typeCheck && !typeCheck2">
  76. <div :class="zoneClass.length > 5 ? 'box_course' : 'box_courseFlex'" v-for="(item, index) in zoneClass" :key="index" @click="goTo(
  77. '/courseDetail?courseId=' +
  78. item.courseId +
  79. '&userid=' +
  80. userid +
  81. '&oid=' +
  82. oid +
  83. '&org=' +
  84. org +
  85. '&cid=' +
  86. classId +
  87. '&tType=' +
  88. tType +
  89. '&screenType=' +
  90. screenType,item.courseId
  91. )">
  92. <div class="wheel">
  93. <img :src="
  94. item.cover
  95. ? JSON.parse(item.cover)[0].url
  96. : require('../assets/wheel.png')
  97. " alt="" />
  98. </div>
  99. <div class="middle_white">
  100. <div class="textOverflow">
  101. <el-tooltip effect="light" :content="item.title" placement="top">
  102. <span class="utitle">{{ item.title }}</span>
  103. </el-tooltip>
  104. <el-tooltip effect="light" :content="item.uname" placement="top" v-if="oidArray.indexOf(oid) == -1">
  105. <span class="uname">{{ item.uname }}</span>
  106. </el-tooltip>
  107. </div>
  108. <div class="nameAndLength">
  109. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  110. <div>{{ item.typename }}</div>
  111. </el-tooltip>
  112. <div>{{ JSON.parse(item.chapters).length }}阶段</div>
  113. </div>
  114. <div class="school_box">
  115. <el-tooltip effect="light" :content="item.school" placement="top">
  116. <div class="school">
  117. {{ item.school }}
  118. </div>
  119. </el-tooltip>
  120. <div style="color: #b4b4b4">{{ item.utime }}</div>
  121. </div>
  122. </div>
  123. <div class="now_study" @click="
  124. goTo(
  125. '/courseDetail?courseId=' +
  126. item.courseId +
  127. '&userid=' +
  128. userid +
  129. '&oid=' +
  130. oid +
  131. '&org=' +
  132. org +
  133. '&cid=' +
  134. classId +
  135. '&tType=' +
  136. tType +
  137. '&screenType=' +
  138. screenType,item.courseId
  139. )
  140. ">
  141. 立即学习
  142. </div>
  143. </div>
  144. </div>
  145. <div v-else>
  146. <div class="FirstTypeBox" v-for="(type, tindex) in CourseType2" :key="tindex">
  147. <div class="title">{{ type.name }}</div>
  148. <div class="typeCheckFlex" style="margin-top: 20px;">
  149. <div class="box_courseFlex" v-for="(item, index) in type.course" :key="tindex + '-' + index" @click="goTo(
  150. '/courseDetail?courseId=' +
  151. item.courseId +
  152. '&userid=' +
  153. userid +
  154. '&oid=' +
  155. oid +
  156. '&org=' +
  157. org +
  158. '&cid=' +
  159. classId +
  160. '&tType=' +
  161. tType +
  162. '&screenType=' +
  163. screenType,item.courseId
  164. )">
  165. <div class="wheel">
  166. <img :src="
  167. item.cover
  168. ? JSON.parse(item.cover)[0].url
  169. : require('../assets/wheel.png')
  170. " alt="" />
  171. </div>
  172. <div class="middle_white">
  173. <div class="textOverflow">
  174. <el-tooltip effect="light" :content="item.title" placement="top">
  175. <span class="utitle">{{ item.title }}</span>
  176. </el-tooltip>
  177. <el-tooltip effect="light" :content="item.uname" placement="top" v-if="oidArray.indexOf(oid) == -1">
  178. <span class="uname">{{ item.uname }}</span>
  179. </el-tooltip>
  180. </div>
  181. <div class="nameAndLength">
  182. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  183. <div>{{ item.typename }}</div>
  184. </el-tooltip>
  185. <div>{{ JSON.parse(item.chapters).length }}阶段</div>
  186. </div>
  187. <div class="school_box">
  188. <el-tooltip effect="light" :content="item.school" placement="top">
  189. <div class="school">
  190. {{ item.school }}
  191. </div>
  192. </el-tooltip>
  193. <div style="color: #b4b4b4">{{ item.utime }}</div>
  194. </div>
  195. </div>
  196. <div class="now_study" @click="
  197. goTo(
  198. '/courseDetail?courseId=' +
  199. item.courseId +
  200. '&userid=' +
  201. userid +
  202. '&oid=' +
  203. oid +
  204. '&org=' +
  205. org +
  206. '&cid=' +
  207. classId +
  208. '&tType=' +
  209. tType +
  210. '&screenType=' +
  211. screenType,item.courseId
  212. )
  213. ">
  214. 立即学习
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. <div class="course_empty" v-if="zoneClass.length == 0">
  221. 暂无课程
  222. </div>
  223. </div>
  224. </div>
  225. <div class="student_page" style="margin: 15px 0 0" v-if="zoneClass.length > 0 && !typeCheck && !typeCheck2">
  226. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total" v-if="page"
  227. @current-change="handleCurrentChange">
  228. </el-pagination>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </template>
  234. <script>
  235. import { myMixin } from "@/mixins/mixin.js"
  236. export default {
  237. mixins: [ myMixin ],
  238. data() {
  239. return {
  240. gotype:(window.topU && window.topU.gotype) ? window.topU.gotype : '',
  241. zoneList: [],
  242. zoneClass: [],
  243. page: 1,
  244. total: 0,
  245. pageSize: 20, //每页显示记录数(10)。必须设置为正确的值,以便生成href
  246. isListAjax: false,
  247. zoneListId: "",
  248. bannerList: [],
  249. userid: this.$route.query.userid,
  250. oid: this.$route.query.oid,
  251. classId: this.$route.query.cid,
  252. tType: this.$route.query.tType,
  253. org: this.$route.query.org,
  254. screenType: this.$route.query.screenType,
  255. role: this.$route.query.role,
  256. CourseType: [],
  257. CourseType2: [],
  258. CourseTypeJson: {},
  259. courseTypeId: {},
  260. sCourse: "",
  261. isCType: "",
  262. typea: "",
  263. typeb: "",
  264. typed: "",
  265. typeE: [],
  266. loading: "",
  267. typeCheck: false,
  268. typeCheck2: false,
  269. isUpdatingChecks: false,
  270. orderBy: false,
  271. CourseType3: [],
  272. pTypeCheck:[],
  273. pTypeCheckName: [],
  274. oidArray: ['91305d49-01ba-11ed-8c78-005056b86db4']
  275. };
  276. },
  277. watch: {
  278. typeCheck(newValue, oldValue) {
  279. if (this.isUpdatingChecks) return;
  280. this.isUpdatingChecks = true;
  281. this.typeCheck2 = false;
  282. if (newValue) {
  283. this.loading = true;
  284. this.selectAll();
  285. } else if (!this.typeCheck2) {
  286. this.loading = true;
  287. this.page = 1;
  288. this.selectAll2();
  289. }
  290. this.$nextTick(() => {
  291. this.isUpdatingChecks = false;
  292. });
  293. },
  294. typeCheck2(newValue, oldValue) {
  295. if (this.isUpdatingChecks) return;
  296. this.isUpdatingChecks = true;
  297. this.typeCheck = false;
  298. if (newValue) {
  299. this.loading = true;
  300. this.selectAll();
  301. } else if (!this.typeCheck) {
  302. this.page = 1;
  303. this.loading = true;
  304. this.selectAll2();
  305. } else {
  306. this.loading = false;
  307. }
  308. this.$nextTick(() => {
  309. this.isUpdatingChecks = false;
  310. });
  311. },
  312. orderBy(newValue, oldValue) {
  313. this.loading = true
  314. if (this.typeCheck || this.typeCheck2) {
  315. this.selectAll()
  316. } else {
  317. this.page = 1
  318. this.selectAll2()
  319. }
  320. },
  321. },
  322. methods: {
  323. backliyuan(){
  324. let betaL = window.location.href.includes("beta") ? "beta" : "cloud"
  325. if (betaL == 'beta') {
  326. window.location.href = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
  327. }else{
  328. window.location.href = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CourseCon?userid=${this.userid}&oid=${this.oid}&org=${this.org}&role=${this.role}&tType=${this.tType}`
  329. }
  330. try {
  331. window.topU.gotype = ''
  332. } catch (error) {
  333. console.log(error);
  334. }
  335. // sessionStorage.removeItem('gotype');
  336. },
  337. search(){
  338. if(this.typeCheck || this.typeCheck2){
  339. this.selectAll()
  340. }else{
  341. this.page = 1
  342. this.selectAll2()
  343. }
  344. this.$forceUpdate();
  345. },
  346. goTo(path,id) {
  347. this.$router.push(path);
  348. this.addOp3('1', "", { courseid: id,type: "course_open" }, "success")
  349. },
  350. //获取专区下的课程
  351. getZoneClass(zid) {
  352. this.isListAjax = true;
  353. // const loading = this.openLoading(document.querySelector(".main_box"));
  354. let params = {
  355. bid: zid,
  356. oid: this.oid,
  357. page: this.page,
  358. };
  359. this.ajax
  360. .get(this.$store.state.api + "getZoneClassStudent", params)
  361. .then((res) => {
  362. // loading.close();
  363. this.isListAjax = false;
  364. this.zoneClass = res.data[0];
  365. this.total = res.data[0].length ? res.data[0][0].num : 0;
  366. })
  367. .catch((err) => {
  368. console.error(err);
  369. });
  370. },
  371. getCourse(typeName, ftypeId, typeid, type) {
  372. this.page = 1;
  373. this.zoneClass = [];
  374. if (typeid == "34628934-d02f-11ec-8c78-005056b86db5" || ftypeId == '34628934-d02f-11ec-8c78-005056b86db5' || typeid == "34628934-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34628934-d02f-11ec-8c78-005056b86ac5") {
  375. if (type == 1) {
  376. if (this.typeE.indexOf(typeid) != -1) {
  377. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  378. return
  379. }else{
  380. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  381. }
  382. } else {
  383. this.typeE.push(typeid);
  384. if (this.typea != "") {
  385. this.typea = "";
  386. }
  387. }
  388. } else {
  389. if (this.typea == typeid) {
  390. this.typea = "";
  391. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  392. this.typeE.push(ftypeId);
  393. }
  394. } else {
  395. this.typea = typeid;
  396. if (this.typeE.indexOf(ftypeId) != -1) {
  397. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  398. }
  399. }
  400. }
  401. } else if (typeName == "专栏") {
  402. if (type == 1) {
  403. if (this.typeE.indexOf(typeid) != -1) {
  404. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  405. return
  406. }else{
  407. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  408. }
  409. } else {
  410. this.typeE.push(typeid);
  411. if (this.typeb != "") {
  412. this.typeb = "";
  413. }
  414. }
  415. } else {
  416. if (this.typeb == typeid) {
  417. this.typeb = "";
  418. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  419. this.typeE.push(ftypeId);
  420. }
  421. } else {
  422. this.typeb = typeid;
  423. if (this.typeE.indexOf(ftypeId) != -1) {
  424. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  425. }
  426. }
  427. }
  428. } else if (typeName == "栏目") {
  429. if (type == 1) {
  430. if (this.typeE.indexOf(typeid) != -1) {
  431. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  432. return
  433. }else{
  434. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  435. }
  436. } else {
  437. this.typeE.push(typeid);
  438. if (this.typeb != "") {
  439. this.typeb = "";
  440. }
  441. }
  442. } else {
  443. if (this.typeb == typeid) {
  444. this.typeb = "";
  445. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  446. this.typeE.push(ftypeId);
  447. }
  448. } else {
  449. this.typeb = typeid;
  450. if (this.typeE.indexOf(ftypeId) != -1) {
  451. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  452. }
  453. }
  454. }
  455. } else if (typeName == "主题") {
  456. if (type == 1) {
  457. if (this.typeE.indexOf(typeid) != -1) {
  458. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  459. return
  460. }else{
  461. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  462. }
  463. } else {
  464. this.typeE.push(typeid);
  465. if (this.typeb != "") {
  466. this.typeb = "";
  467. }
  468. }
  469. } else {
  470. if (this.typeb == typeid) {
  471. this.typeb = "";
  472. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  473. this.typeE.push(ftypeId);
  474. }
  475. } else {
  476. this.typeb = typeid;
  477. if (this.typeE.indexOf(ftypeId) != -1) {
  478. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  479. }
  480. }
  481. }
  482. } else if (typeName == "学院") {
  483. if (type == 1) {
  484. if (this.typeE.indexOf(typeid) != -1) {
  485. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  486. return
  487. }else{
  488. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  489. }
  490. } else {
  491. this.typeE.push(typeid);
  492. if (this.typeb != "") {
  493. this.typeb = "";
  494. }
  495. }
  496. } else {
  497. if (this.typeb == typeid) {
  498. this.typeb = "";
  499. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  500. this.typeE.push(ftypeId);
  501. }
  502. } else {
  503. this.typeb = typeid;
  504. if (this.typeE.indexOf(ftypeId) != -1) {
  505. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  506. }
  507. }
  508. }
  509. } else if (typeid == "34629907-d02f-11ec-8c78-005056b86db5" || ftypeId == '34629907-d02f-11ec-8c78-005056b86db5' || typeid == "34629907-d02f-11ec-8c78-005056b86ac5" || ftypeId == "34629907-d02f-11ec-8c78-005056b86ac5") {
  510. if (type == 1) {
  511. if (this.typeE.indexOf(typeid) != -1) {
  512. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  513. return
  514. }else{
  515. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  516. }
  517. } else {
  518. this.typeE.push(typeid);
  519. if (this.typed != "") {
  520. this.typed = "";
  521. }
  522. }
  523. } else {
  524. if (this.typed == typeid) {
  525. this.typed = "";
  526. if(this.oid == '69893dca-1d47-11ed-8c78-005056b86db5'){
  527. this.typeE.push(ftypeId);
  528. }
  529. } else {
  530. this.typed = typeid;
  531. if (this.typeE.indexOf(ftypeId) != -1) {
  532. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  533. }
  534. }
  535. }
  536. }
  537. this.loading = true;
  538. if (this.typeCheck || this.typeCheck2) {
  539. this.selectAll();
  540. }else {
  541. this.selectAll2();
  542. }
  543. },
  544. CourseType2Click(val){
  545. this.pTypeCheck = [];
  546. this.typeE = []
  547. if(val === this.pTypeCheckName){
  548. this.pTypeCheckName = ''
  549. }else{
  550. this.pTypeCheckName = val
  551. for (var i = 0; i < this.CourseType3.length; i++) {
  552. let typeA = this.CourseType3[i];
  553. if (val.indexOf(typeA.name) != -1) {
  554. this.pTypeCheck.push(...typeA.id);
  555. this.typeE = [...typeA.id]
  556. }
  557. }
  558. }
  559. this.typea = ""
  560. this.typeb = ""
  561. this.typed = ""
  562. this.loading = true;
  563. if (this.typeCheck || this.typeCheck2) {
  564. this.selectAll();
  565. }else {
  566. this.selectAll2();
  567. }
  568. },
  569. arrayToArray(arrayo, arrayt) {
  570. let array1 = arrayo;
  571. let array2 = arrayt;
  572. let commonElements = [];
  573. for (let i = 0; i < array1.length; i++) {
  574. for (let j = 0; j < array2.length; j++) {
  575. if (array1[i] === array2[j]) {
  576. commonElements.push(array1[i]);
  577. }
  578. }
  579. }
  580. return commonElements;
  581. },
  582. selectAll() {
  583. this.zoneListId = 0;
  584. this.isListAjax = true;
  585. let params = {
  586. uid: this.userid,
  587. oid: this.oid,
  588. typea: this.typea != undefined ? this.typea : "",
  589. typeb: this.typeb != undefined ? this.typeb : "",
  590. typec: "",
  591. typed: this.typed != undefined ? this.typed : "",
  592. typeE: this.typeE.join(","),
  593. // typeE: "",
  594. cu: "",
  595. cn: this.sCourse,
  596. classid: this.classId,
  597. org: this.org,
  598. page: this.page,
  599. orderBy: this.orderBy ? '2' : '1'
  600. };
  601. this.ajax
  602. .get(this.$store.state.api + "selectTypeCourse2Mode2", params)
  603. .then((res) => {
  604. this.loading = false;
  605. this.isListAjax = false;
  606. this.zoneClass = res.data[0];
  607. // this.total = res.data[0].length ? res.data[0][0].num : 0;
  608. let CourseType2 = []
  609. if(this.typeCheck){
  610. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[0]))
  611. }else if(this.typeCheck2){
  612. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[2].filter(item => {
  613. return item.pid == "34628934-d02f-11ec-8c78-005056b86db5"
  614. })))
  615. }else{
  616. CourseType2 = JSON.parse(JSON.stringify(this.CourseType[0]))
  617. }
  618. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  619. if(this.pTypeCheckName.length){
  620. CourseType2 = this.CourseType3.filter(el => {
  621. return el.name == this.pTypeCheckName
  622. })
  623. }else{
  624. CourseType2 = JSON.parse(JSON.stringify(this.CourseType3))
  625. }
  626. }
  627. for (var i = 0; i < CourseType2.length; i++) {
  628. CourseType2[i].course = []
  629. for (var j = 0; j < res.data[0].length; j++) {
  630. // if (res.data[0][j].pid && res.data[0][j].pid.indexOf(CourseType2[i].id) != -1) {
  631. // CourseType2[i].course.push(res.data[0][j])
  632. // }
  633. let pid = CourseType2[i].id
  634. if(typeof pid != "object") pid = pid.split(",")
  635. if(this.typeCheck2){
  636. if(res.data[0][j].typeid && this.arrayToArray(pid,res.data[0][j].typeid.split(",")).length){
  637. CourseType2[i].course.push(res.data[0][j])
  638. }
  639. }else {
  640. if(res.data[0][j].pid && this.arrayToArray(pid,res.data[0][j].pid.split(",")).length){
  641. CourseType2[i].course.push(res.data[0][j])
  642. }
  643. }
  644. }
  645. }
  646. let noTypeCourse = []
  647. for (var j = 0; j < res.data[0].length; j++) {
  648. if (!res.data[0][j].pid) {
  649. noTypeCourse.push(res.data[0][j])
  650. }
  651. }
  652. if (noTypeCourse.length > 0 && !this.pTypeCheckName.length) {
  653. CourseType2.push({
  654. course: noTypeCourse,
  655. name: '其他'
  656. })
  657. }
  658. CourseType2 = CourseType2.filter(item => {
  659. return item.course.length > 0;
  660. })
  661. this.CourseType2 = CourseType2
  662. // this.selectType({
  663. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  664. // });
  665. this.getBanner({
  666. data: [res.data[6], res.data[5], res.data[7]],
  667. });
  668. })
  669. .catch((err) => {
  670. console.error(err);
  671. });
  672. },
  673. selectAll2() {
  674. this.zoneListId = 0;
  675. this.isListAjax = true;
  676. let params = {
  677. uid: this.userid,
  678. oid: this.oid,
  679. typea: this.typea != undefined ? this.typea : "",
  680. typeb: this.typeb != undefined ? this.typeb : "",
  681. typec: "",
  682. typed: this.typed != undefined ? this.typed : "",
  683. typeE: this.typeE.join(","),
  684. // typeE: "",
  685. cu: "",
  686. cn: this.sCourse,
  687. classid: this.classId,
  688. org: this.org,
  689. page: this.page,
  690. pageSize:this.pageSize,
  691. orderBy: this.orderBy ? '2' : '1'
  692. };
  693. this.ajax
  694. .get(this.$store.state.api + "selectTypeCourse22", params)
  695. .then((res) => {
  696. this.loading = false;
  697. this.isListAjax = false;
  698. this.zoneClass = res.data[0];
  699. this.total = res.data[0].length ? res.data[0][0].num : 0;
  700. let CourseType2 = []
  701. // this.selectType({
  702. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  703. // });
  704. this.getBanner({
  705. data: [res.data[6], res.data[5], res.data[7]],
  706. });
  707. })
  708. .catch((err) => {
  709. console.error(err);
  710. });
  711. },
  712. checkZone(id) {
  713. this.page = 1;
  714. this.zoneListId = id;
  715. this.getZoneClass(id);
  716. },
  717. // handleCurrentChange(val) {
  718. // this.page = val;
  719. // this.getZoneClass(this.zoneListId);
  720. // },
  721. handleCurrentChange(val) {
  722. this.loading = true;
  723. this.page = val;
  724. this.selectAll2();
  725. },
  726. //获取banner
  727. getBanner(res) {
  728. // var a = false;
  729. // if (this.org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  730. // a = true;
  731. // }
  732. // let params = {
  733. // oid: this.org,
  734. // };
  735. // this.ajax
  736. // .get(this.$store.state.api + "selectBannerByOid", params)
  737. // .then((res) => {
  738. if (res.data[0].length > 0) {
  739. this.bannerList = res.data[0];
  740. } else {
  741. this.getBannerByOid({
  742. data: [res.data[1], res.data[2]],
  743. });
  744. }
  745. // })
  746. // .catch((err) => {
  747. // console.error(err);
  748. // });
  749. },
  750. getBannerByOid(res) {
  751. // let params = {
  752. // oid: this.oid,
  753. // };
  754. // this.ajax
  755. // .get(this.$store.state.api + "selectBannerByOid", params)
  756. // .then((res) => {
  757. if (res.data[0].length > 0) {
  758. this.bannerList = res.data[0];
  759. } else {
  760. this.getOldBanner({
  761. data: [res.data[1]],
  762. });
  763. }
  764. // })
  765. // .catch((err) => {
  766. // console.error(err);
  767. // });
  768. },
  769. getOldBanner(res) {
  770. // this.ajax
  771. // .get(this.$store.state.api + "getBanner", "")
  772. // .then((res) => {
  773. this.bannerList = res.data[0];
  774. // })
  775. // .catch((err) => {
  776. // console.error(err);
  777. // });
  778. },
  779. selectAllType() {
  780. let params = {
  781. org: this.org && this.org != "" ? this.org : "",
  782. oid: this.oid && this.oid != "" ? this.oid : "",
  783. stand: "cn"
  784. };
  785. this.ajax
  786. .get(this.$store.state.api + "selectAllTypeStand", params)
  787. .then((res) => {
  788. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  789. res.data[0] = [...res.data[0],...res.data[4]]
  790. }
  791. this.CourseTypeJson = {};
  792. this.CourseType = res.data;
  793. this.CourseType3 = [
  794. { name: "智见课程", id: [] },
  795. { name: "智行课程", id: [] },
  796. { name: "智创课程", id: [] },
  797. ];
  798. for (var cti = 0; cti < res.data[0].length; cti++) {
  799. if (
  800. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  801. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  802. ) {
  803. this.CourseType3[0].id.push(res.data[0][cti].id);
  804. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  805. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  806. this.CourseType3[1].id.push(res.data[0][cti].id);
  807. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  808. this.CourseType3[2].id.push(res.data[0][cti].id);
  809. }
  810. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  811. res.data[0][cti].name = "年级";
  812. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  813. res.data[0][cti].name = "学科";
  814. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  815. res.data[0][cti].name = "主题";
  816. }
  817. }
  818. for (var i = 0; i < res.data[0].length; i++) {
  819. if (!this.cid) {
  820. this.courseTypeId[res.data[0][i].id] = "";
  821. }
  822. if (!this.CourseTypeJson[res.data[0][i].id]) {
  823. this.CourseTypeJson[res.data[0][i].id] = [];
  824. }
  825. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  826. if (res.data[0][i].name == "栏目") {
  827. this.CourseType[0][i].name = "主题";
  828. }
  829. }
  830. if (res.data[2].length == 0 && res.data[3].length == 0) {
  831. for (var j = 0; j < res.data[1].length; j++) {
  832. if (res.data[0][i].id == res.data[1][j].pid) {
  833. if (!this.CourseTypeJson[res.data[0][i].id]) {
  834. this.CourseTypeJson[res.data[0][i].id] = [];
  835. }
  836. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  837. }
  838. }
  839. } else {
  840. if (res.data[2].length > 0) {
  841. for (var j = 0; j < res.data[2].length; j++) {
  842. if (res.data[0][i].id == res.data[2][j].pid) {
  843. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  844. }
  845. }
  846. }
  847. if (res.data[3].length > 0) {
  848. for (var j = 0; j < res.data[3].length; j++) {
  849. if (res.data[0][i].id == res.data[3][j].pid) {
  850. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  851. }
  852. }
  853. }
  854. }
  855. }
  856. if (this.typeCheck || this.typeCheck2) {
  857. this.selectAll();
  858. } else {
  859. this.selectAll2();
  860. }
  861. this.$forceUpdate();
  862. })
  863. .catch((err) => {
  864. console.error(err);
  865. });
  866. },
  867. selectType(res) {
  868. // this.ajax
  869. // .get(this.$store.state.api + "selectType")
  870. // .then((res) => {
  871. this.CourseTypeJson = {};
  872. this.CourseType = res.data;
  873. for (var i = 0; i < res.data[0].length; i++) {
  874. if (!this.cid) {
  875. this.courseTypeId[res.data[0][i].id] = "";
  876. }
  877. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  878. if (res.data[0][i].name == "栏目") {
  879. this.CourseType[0][i].name = "主题";
  880. }
  881. }
  882. for (var j = 0; j < res.data[1].length; j++) {
  883. if (res.data[0][i].id == res.data[1][j].pid) {
  884. if (!this.CourseTypeJson[res.data[0][i].id]) {
  885. this.CourseTypeJson[res.data[0][i].id] = [];
  886. }
  887. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  888. }
  889. }
  890. }
  891. this.selectTypeByOid({ data: [res.data[0], res.data[2]] });
  892. this.selectTypeByOrg({ data: [res.data[0], res.data[3]] });
  893. // })
  894. // .catch((err) => {
  895. // console.error(err);
  896. // });
  897. },
  898. selectTypeByOid(res) {
  899. // let params = {
  900. // oid: this.oid,
  901. // };
  902. // this.ajax
  903. // .get(this.$store.state.api + "selectTypeByOid", params)
  904. // .then((res) => {
  905. for (var i = 0; i < res.data[0].length; i++) {
  906. for (var j = 0; j < res.data[1].length; j++) {
  907. if (res.data[0][i].id == res.data[1][j].pid) {
  908. if (!this.CourseTypeJson[res.data[0][i].id]) {
  909. this.CourseTypeJson[res.data[0][i].id] = [];
  910. }
  911. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  912. }
  913. }
  914. }
  915. this.$forceUpdate();
  916. // })
  917. // .catch((err) => {
  918. // console.error(err);
  919. // });
  920. },
  921. selectTypeByOrg(res) {
  922. // let params = {
  923. // oid: this.org,
  924. // };
  925. // this.ajax
  926. // .get(this.$store.state.api + "selectTypeByOrg", params)
  927. // .then((res) => {
  928. for (var i = 0; i < res.data[0].length; i++) {
  929. for (var j = 0; j < res.data[1].length; j++) {
  930. if (res.data[0][i].id == res.data[1][j].pid) {
  931. if (!this.CourseTypeJson[res.data[0][i].id]) {
  932. this.CourseTypeJson[res.data[0][i].id] = [];
  933. }
  934. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  935. }
  936. }
  937. }
  938. this.$forceUpdate();
  939. // })
  940. // .catch((err) => {
  941. // console.error(err);
  942. // });
  943. },
  944. },
  945. beforeDestroy() {
  946. clearInterval(this.timer);
  947. this.timer = null;
  948. },
  949. created() {
  950. let typea = this.$route.query.typea
  951. let typeb = this.$route.query.typeb
  952. let typed = this.$route.query.typed
  953. if(this.oidArray.indexOf(this.oid) !== -1){
  954. this.typeCheck2 = true
  955. }
  956. if(typea || typeb || typed){
  957. this.typea = typea ? typea : ''
  958. this.typeb = typeb ? typeb : ''
  959. this.typed = typed ? typed : ''
  960. }
  961. this.loading = true;
  962. // this.selectType();
  963. this.selectAllType();
  964. // this.getBanner();
  965. this.timer = setInterval(() => {
  966. this.selectAllType();
  967. // this.getBanner();
  968. }, 60000);
  969. document.scrollingElement.scrollTop = 0;
  970. },
  971. };
  972. </script>
  973. <style scoped>
  974. @media screen and (max-width: 1024px) {
  975. /* .box_course {
  976. width: 300px !important;
  977. } */
  978. .typeCheckFlex{
  979. display: grid !important;
  980. grid-template-columns: repeat(3, 1fr) !important;
  981. }
  982. .claList{
  983. grid-template-columns: repeat(3, 1fr) !important;
  984. }
  985. }
  986. .student_head .imgS {
  987. width: 100%;
  988. height: 100%;
  989. cursor: pointer;
  990. object-fit: cover;
  991. }
  992. .top {
  993. padding: 20px 30px 20px 1%;
  994. box-sizing: border-box;
  995. display: flex;
  996. align-items: center;
  997. }
  998. .top div {
  999. cursor: pointer;
  1000. box-sizing: border-box;
  1001. height: 35px;
  1002. line-height: 35px;
  1003. margin: 0 10px 0 0;
  1004. padding-bottom: 5px;
  1005. width: 80px;
  1006. text-align: center;
  1007. }
  1008. .top .active {
  1009. border-bottom: 3px solid #0e71e6;
  1010. }
  1011. .isactive {
  1012. border-bottom: 3px solid #0e71e6;
  1013. }
  1014. .box_fk {
  1015. width: 8px;
  1016. height: 21px;
  1017. background: #0e71e6;
  1018. margin-right: 5px;
  1019. }
  1020. .wheel {
  1021. width: 100%;
  1022. height: 140px;
  1023. }
  1024. .man {
  1025. width: 16px;
  1026. height: 16px;
  1027. }
  1028. .wheel>img,
  1029. .man>img {
  1030. width: 100%;
  1031. height: 100%;
  1032. object-fit: cover;
  1033. }
  1034. .box_course {
  1035. display: flex;
  1036. flex-direction: column;
  1037. flex-wrap: nowrap;
  1038. /* margin: 0px 1% 20px; */
  1039. /* margin: 0 15px 20px 0; */
  1040. /* width: 300px; */
  1041. /* height: 260px; */
  1042. max-width: 400px;
  1043. /*border: 1px solid #cecece; */
  1044. border-radius: 10px;
  1045. overflow: hidden;
  1046. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  1047. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  1048. justify-content: space-between;
  1049. cursor: pointer;
  1050. }
  1051. .middle_white {
  1052. font-size: 14px;
  1053. margin: 5px 10px 10px;
  1054. }
  1055. .people {
  1056. display: flex;
  1057. align-items: center;
  1058. }
  1059. .people>div:nth-child(2) {
  1060. margin-left: 10px;
  1061. }
  1062. .now_study {
  1063. width: 100%;
  1064. height: 40px;
  1065. color: #fff;
  1066. background: #4a9eed;
  1067. text-align: center;
  1068. line-height: 40px;
  1069. font-size: 13px;
  1070. cursor: pointer;
  1071. display: none;
  1072. }
  1073. .now_study:hover {
  1074. background: #205cc6;
  1075. }
  1076. .main_box {
  1077. width: 100%;
  1078. /* display: flex; */
  1079. /* flex-direction: row; */
  1080. /* flex-wrap: wrap; */
  1081. /* justify-content: flex-start; */
  1082. margin: 0 auto;
  1083. }
  1084. .right_bottom_flex {
  1085. width: 219px;
  1086. height: 144px;
  1087. margin: auto 0;
  1088. }
  1089. .right_bottom_flex>img {
  1090. width: 100%;
  1091. height: 100%;
  1092. }
  1093. .body_student {
  1094. margin: 0 auto;
  1095. width: 90%;
  1096. height: 100%;
  1097. }
  1098. .student_head {
  1099. width: 100%;
  1100. /* height: 30%; */
  1101. }
  1102. .textOverflow {
  1103. padding: 0 5px 0 0px;
  1104. width: 100%;
  1105. display: flex;
  1106. align-items: center;
  1107. justify-content: space-between;
  1108. font-size: 16px;
  1109. }
  1110. .textOverflow > .utitle{
  1111. max-width: calc(100%);
  1112. overflow: hidden;
  1113. white-space: nowrap;
  1114. text-overflow: ellipsis;
  1115. font-weight: bold;
  1116. display: block;
  1117. }
  1118. .textOverflow > .uname{
  1119. min-width: fit-content;
  1120. overflow: hidden;
  1121. white-space: nowrap;
  1122. text-overflow: ellipsis;
  1123. display: block;
  1124. }
  1125. .student_page {
  1126. margin-top: 10px;
  1127. }
  1128. .course_empty {
  1129. width: 100%;
  1130. height: 200px;
  1131. display: flex;
  1132. align-items: center;
  1133. justify-content: center;
  1134. }
  1135. .choose {
  1136. display: flex;
  1137. flex-direction: column;
  1138. flex-wrap: nowrap;
  1139. height: 100%;
  1140. justify-content: space-evenly;
  1141. align-items: flex-start;
  1142. padding: 10px 0;
  1143. }
  1144. .all_choose {
  1145. display: flex;
  1146. flex-direction: row;
  1147. align-items: baseline;
  1148. /* margin: 2px 0; */
  1149. width: 100%;
  1150. }
  1151. .all_choose>span {
  1152. min-width: 85px;
  1153. display: block;
  1154. letter-spacing: 14px;
  1155. }
  1156. .all_choose>span:nth-child(1) {
  1157. font-weight: bold;
  1158. }
  1159. .all_choose>>>.el-checkbox-group {
  1160. display: flex;
  1161. flex-direction: row;
  1162. width: 820px;
  1163. flex-wrap: wrap;
  1164. align-content: center;
  1165. justify-content: flex-start;
  1166. align-items: center;
  1167. margin-top: 3px;
  1168. }
  1169. .all_choose>.el-checkbox-group>>>.el-checkbox {
  1170. margin-bottom: 10px;
  1171. display: flex;
  1172. flex-direction: row;
  1173. align-items: center;
  1174. }
  1175. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  1176. min-width: 80px;
  1177. overflow: hidden;
  1178. width: 80px;
  1179. text-overflow: ellipsis;
  1180. white-space: nowrap;
  1181. }
  1182. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  1183. width: auto;
  1184. }
  1185. .cName {
  1186. cursor: pointer;
  1187. margin: 0 10px 10px 0;
  1188. color: #b9b6b9;
  1189. min-width: 80px;
  1190. width: 80px;
  1191. white-space: nowrap;
  1192. overflow: hidden;
  1193. text-overflow: ellipsis;
  1194. }
  1195. .reBox {
  1196. position: relative;
  1197. top: -25px;
  1198. z-index: 999;
  1199. /* left: auto; */
  1200. /* right: auto; */
  1201. background: #fff;
  1202. width: 90%;
  1203. border-radius: 5px;
  1204. padding-left: 20px;
  1205. margin: 0 auto;
  1206. box-sizing: border-box;
  1207. }
  1208. .reTop {
  1209. padding: 20px 0 0 0;
  1210. border-bottom: 1px solid #eee;
  1211. width: 98%;
  1212. display: flex;
  1213. flex-direction: row;
  1214. flex-wrap: nowrap;
  1215. align-items: center;
  1216. justify-content: space-between;
  1217. }
  1218. .reTop>div:nth-child(1) {
  1219. font-weight: bold;
  1220. width: 40px;
  1221. border-bottom: 1px solid #205cc6;
  1222. padding-bottom: 20px;
  1223. color: #205cc6;
  1224. font-size: 20px;
  1225. }
  1226. .reTop>div:nth-child(2) {
  1227. display: flex;
  1228. flex-direction: row;
  1229. align-items: center;
  1230. border: 1px solid #ccced3;
  1231. width: 300px;
  1232. border-radius: 8px;
  1233. padding: 5px 0;
  1234. margin-bottom: 10px;
  1235. }
  1236. .search {
  1237. width: 20px;
  1238. padding: 0 5px;
  1239. }
  1240. .search>img {
  1241. width: 100%;
  1242. height: 100%;
  1243. }
  1244. .sInput {
  1245. border: none;
  1246. width: 85%;
  1247. }
  1248. .sInput:focus-visible {
  1249. outline: none;
  1250. }
  1251. .nameAndLength {
  1252. display: flex;
  1253. flex-direction: row;
  1254. flex-wrap: nowrap;
  1255. align-items: center;
  1256. justify-content: space-between;
  1257. margin: 5px 0;
  1258. }
  1259. .typeN {
  1260. width: 200px;
  1261. white-space: nowrap;
  1262. overflow: hidden;
  1263. text-overflow: ellipsis;
  1264. }
  1265. .isCType {
  1266. color: #6282c2;
  1267. }
  1268. .typeCss {
  1269. display: flex;
  1270. flex-direction: row;
  1271. flex-wrap: wrap;
  1272. justify-content: flex-start;
  1273. align-items: center;
  1274. }
  1275. .school {
  1276. white-space: nowrap;
  1277. overflow: hidden;
  1278. text-overflow: ellipsis;
  1279. max-width: 50%;
  1280. box-sizing: border-box;
  1281. }
  1282. .school_box {
  1283. display: flex;
  1284. align-items: center;
  1285. justify-content: space-between;
  1286. }
  1287. .FirstTypeBox {}
  1288. .FirstTypeBox+.FirstTypeBox {
  1289. margin-top: 20px;
  1290. }
  1291. .FirstTypeBox>.title {
  1292. font-size: 24px;
  1293. font-weight: 700;
  1294. }
  1295. .typeCheck > div + div{
  1296. margin-left: 10px;
  1297. }
  1298. .typeCheck {
  1299. display: flex;
  1300. align-items: center;
  1301. justify-content: flex-end;
  1302. margin-bottom: 10px;
  1303. }
  1304. .typeCheck > div{
  1305. display: flex;
  1306. align-items: center;
  1307. justify-content: flex-end;
  1308. }
  1309. .typeCheck > div >span {
  1310. margin-left: 10px;
  1311. }
  1312. .pType_box {
  1313. margin-top: 10px;
  1314. }
  1315. .pType_box >>> .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  1316. -webkit-box-shadow: none !important;
  1317. box-shadow: none !important;
  1318. }
  1319. .backBtn{
  1320. font-size: 16px;
  1321. font-weight: normal;
  1322. cursor: pointer;
  1323. position: absolute;
  1324. top: 20px;
  1325. left: 20px;
  1326. z-index: 999999;
  1327. }
  1328. .r_pub_button_retrun {
  1329. font-weight: bold;
  1330. font-size: 20px;
  1331. display: flex;align-items: center;
  1332. gap: 10px;
  1333. cursor: pointer;
  1334. /* padding:0px 90px 0; */
  1335. /* height: 23.8px; */
  1336. margin-bottom: 15px;
  1337. width: 90%;
  1338. margin: auto;
  1339. transform: translate(0px, -35px);
  1340. }
  1341. /* .r_pub_button_retrun::before {
  1342. content: "";
  1343. width: 14px;
  1344. height: 14px;
  1345. min-width: 14px;
  1346. min-height: 14px;
  1347. background-size: 100% 100%;
  1348. display: block;
  1349. margin-right: 7px;
  1350. background-image: url(../assets/icon/course/icon_return2.png);
  1351. } */
  1352. .claList{
  1353. display: grid;
  1354. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  1355. gap: 30px;
  1356. }
  1357. .claListFlex{
  1358. display: grid;
  1359. grid-template-columns: repeat(4, 1fr);
  1360. gap: 30px;
  1361. }
  1362. .box_courseFlex{
  1363. display: flex;
  1364. flex-direction: column;
  1365. flex-wrap: nowrap;
  1366. /* max-width: 400px; */
  1367. flex: 1;
  1368. border-radius: 10px;
  1369. overflow: hidden;
  1370. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  1371. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  1372. justify-content: space-between;
  1373. cursor: pointer;
  1374. }
  1375. .typeCheckFlex{
  1376. display: grid;
  1377. grid-template-columns: repeat(4, 1fr);
  1378. gap: 30px;
  1379. }
  1380. </style>