index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body">
  4. <div class="student_head">
  5. <!-- <img src="../../assets/banner.png" alt="" /> -->
  6. <el-carousel trigger="click" style="width: 100%; height: 100%">
  7. <el-carousel-item v-for="item in bannerList" :key="item.id">
  8. <!-- <h3 class="small">{{ item }}</h3> -->
  9. <img class="imgS" :src="item.poster" alt="" />
  10. </el-carousel-item>
  11. </el-carousel>
  12. </div>
  13. <div class="reBox">
  14. <div class="reTop">
  15. <div>项目</div>
  16. <div>
  17. <div class="search" @click="search">
  18. <img src="../../assets/icon/search.png" alt="" />
  19. </div>
  20. <input class="sInput" type="text" placeholder="请输入关键字" v-model="sCourse" @keyup.enter="search" />
  21. </div>
  22. </div>
  23. <div class="choose">
  24. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index"
  25. :style="{ margin: !CourseTypeJson[item.id].length && 0 }">
  26. <div v-if="CourseTypeJson[item.id].length"><span>{{ item.name }}</span>:</div>
  27. <div class="typeCss" v-if="CourseTypeJson[item.id].length">
  28. <div class="cName" @click="getCourse(item.name, '', item.id, 1)"
  29. :class="typeE.indexOf(item.id) != -1 ? 'isCType' : ''" style="min-width: fit-content;">
  30. 全部
  31. </div>
  32. <div v-for="(item1, index1) in CourseTypeJson[item.id]" :key="index + '-' + index1" :label="item1.id"
  33. @click="getCourse(item.name, item.id, item1.id, 2)">
  34. <div class="cName" :class="typea == item1.id || typeb == item1.id || typec == item1.id
  35. ? 'isCType'
  36. : ''
  37. ">
  38. {{ item1.name }}
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="body_student">
  46. <div class="typeCheck">
  47. <el-switch v-model="typeCheck"></el-switch><span>分类显示</span>
  48. </div>
  49. <div>
  50. <div class="main_box" v-loading="loading">
  51. <div style="display:flex;flex-wrap:wrap" v-if="!typeCheck">
  52. <div class="box_course" v-for="(item, index) in zoneClass" :key="index" @click="
  53. goTo(
  54. '/coursedetailStudio?courseId=' +
  55. item.courseId +
  56. '&userid=' +
  57. userid +
  58. '&oid=' +
  59. oid +
  60. '&org=' +
  61. org +
  62. '&cid=' +
  63. classId +
  64. '&tType=' +
  65. tType +
  66. '&role=' +
  67. role +
  68. '&screenType=' +
  69. screenType
  70. )
  71. ">
  72. <div class="wheel">
  73. <img :src="item.cover
  74. ? JSON.parse(item.cover)[0].url
  75. : require('../../assets/wheel.png')
  76. " alt="" />
  77. </div>
  78. <div class="middle_white">
  79. <div class="textOverflow">{{ item.title }}</div>
  80. <div class="nameAndLength">
  81. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  82. <div>{{ item.typename }}</div>
  83. </el-tooltip>
  84. <div>{{ JSON.parse(item.chapters).length }}阶段</div>
  85. </div>
  86. <div class="school_box">
  87. <el-tooltip effect="light" :content="item.school" placement="top">
  88. <div class="school">
  89. {{ item.school }}
  90. </div>
  91. </el-tooltip>
  92. <div style="color: #b4b4b4">{{ item.utime }}</div>
  93. </div>
  94. </div>
  95. <div class="now_study" @click="
  96. goTo(
  97. '/coursedetailStudio?courseId=' +
  98. item.courseId +
  99. '&userid=' +
  100. userid +
  101. '&oid=' +
  102. oid +
  103. '&org=' +
  104. org +
  105. '&cid=' +
  106. classId +
  107. '&tType=' +
  108. tType +
  109. '&role=' +
  110. role +
  111. '&screenType=' +
  112. screenType
  113. )
  114. ">
  115. 立即学习
  116. </div>
  117. </div>
  118. </div>
  119. <div v-else>
  120. <div class="FirstTypeBox" v-for="(type, tindex) in CourseType2" :key="tindex">
  121. <div class="title">{{ type.name }}</div>
  122. <div style="display: flex;flex-flow: wrap;margin-top: 20px;">
  123. <div class="box_course" v-for="(item, index) in type.course" :key="tindex + '-' + index" @click="
  124. goTo(
  125. '/coursedetailStudio?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. '&role=' +
  138. role +
  139. '&screenType=' +
  140. screenType
  141. )
  142. ">
  143. <div class="wheel">
  144. <img :src="item.cover
  145. ? JSON.parse(item.cover)[0].url
  146. : require('../../assets/wheel.png')
  147. " alt="" />
  148. </div>
  149. <div class="middle_white">
  150. <div class="textOverflow">{{ item.title }}</div>
  151. <div class="nameAndLength">
  152. <el-tooltip class="typeN" effect="light" :content="item.typename" placement="top">
  153. <div>{{ item.typename }}</div>
  154. </el-tooltip>
  155. <div>{{ JSON.parse(item.chapters).length }}阶段</div>
  156. </div>
  157. <div class="school_box">
  158. <el-tooltip effect="light" :content="item.school" placement="top">
  159. <div class="school">
  160. {{ item.school }}
  161. </div>
  162. </el-tooltip>
  163. <div style="color: #b4b4b4">{{ item.utime }}</div>
  164. </div>
  165. </div>
  166. <div class="now_study" @click="
  167. goTo(
  168. '/coursedetailStudio?courseId=' +
  169. item.courseId +
  170. '&userid=' +
  171. userid +
  172. '&oid=' +
  173. oid +
  174. '&org=' +
  175. org +
  176. '&cid=' +
  177. classId +
  178. '&tType=' +
  179. tType +
  180. '&role=' +
  181. role +
  182. '&screenType=' +
  183. screenType
  184. )
  185. ">
  186. 立即学习
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. <div class="course_empty" v-if="zoneClass.length == 0">
  193. 暂无项目
  194. </div>
  195. </div>
  196. </div>
  197. <div class="student_page" style="margin: 15px 0 0" v-if="zoneClass.length > 0 && !typeCheck">
  198. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total" v-if="page"
  199. @current-change="handleCurrentChange">
  200. </el-pagination>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </template>
  206. <script>
  207. export default {
  208. data() {
  209. return {
  210. zoneList: [],
  211. zoneClass: [],
  212. page: 1,
  213. total: 0,
  214. pageSize: 20,
  215. isListAjax: false,
  216. zoneListId: "",
  217. bannerList: [],
  218. userid: this.$route.query.userid,
  219. oid: this.$route.query.oid,
  220. classId: this.$route.query.cid,
  221. tType: this.$route.query.tType,
  222. org: this.$route.query.org,
  223. role: this.$route.query.role,
  224. screenType: this.$route.query.screenType,
  225. CourseType: [],
  226. CourseType2: [],
  227. CourseTypeJson: {},
  228. courseTypeId: {},
  229. sCourse: "",
  230. isCType: "",
  231. typea: "",
  232. typeb: "",
  233. typec: "",
  234. typed: "",
  235. typef: "",
  236. typeE: [],
  237. loading: "",
  238. typeCheck: false,
  239. };
  240. },
  241. watch: {
  242. typeCheck(newValue, oldValue) {
  243. this.loading = true
  244. if (newValue) {
  245. this.selectAll()
  246. } else {
  247. this.page = 1
  248. this.selectAll2()
  249. }
  250. }
  251. },
  252. methods: {
  253. search() {
  254. if (this.typeCheck) {
  255. this.selectAll()
  256. } else {
  257. this.page = 1
  258. this.selectAll2()
  259. }
  260. },
  261. goTo(path) {
  262. this.$router.push(path);
  263. },
  264. getCourse(typeName, ftypeId, typeid, type) {
  265. this.page = 1;
  266. this.zoneClass = [];
  267. if (typeid == "2f8beae3-d030-11ec-8c78-005056b86abc" || ftypeId == '2f8beae3-d030-11ec-8c78-005056b86abc') {
  268. if (type == 1) {
  269. if (this.typeE.indexOf(typeid) != -1) {
  270. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  271. } else {
  272. this.typeE.push(typeid);
  273. if (this.typea != "") {
  274. this.typea = "";
  275. }
  276. }
  277. } else {
  278. if (this.typea == typeid) {
  279. this.typea = "";
  280. } else {
  281. this.typea = typeid;
  282. if (this.typeE.indexOf(ftypeId) != -1) {
  283. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  284. }
  285. }
  286. }
  287. } else if (typeid == "34629bcc-d02f-11ec-8c78-005056b86abc" || ftypeId == '34629bcc-d02f-11ec-8c78-005056b86abc') {
  288. if (type == 1) {
  289. if (this.typeE.indexOf(typeid) != -1) {
  290. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  291. } else {
  292. this.typeE.push(typeid);
  293. if (this.typeb != "") {
  294. this.typeb = "";
  295. }
  296. }
  297. } else {
  298. if (this.typeb == typeid) {
  299. this.typeb = "";
  300. } else {
  301. this.typeb = typeid;
  302. if (this.typeE.indexOf(ftypeId) != -1) {
  303. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  304. }
  305. }
  306. }
  307. } else if (typeid == "34629ce3-d02f-11ec-8c78-005056b86abc" || ftypeId == '34629ce3-d02f-11ec-8c78-005056b86abc') {
  308. if (type == 1) {
  309. if (this.typeE.indexOf(typeid) != -1) {
  310. this.typeE.splice(this.typeE.indexOf(typeid), 1);
  311. } else {
  312. this.typeE.push(typeid);
  313. if (this.typec != "") {
  314. this.typec = "";
  315. }
  316. }
  317. } else {
  318. if (this.typec == typeid) {
  319. this.typec = "";
  320. } else {
  321. this.typec = typeid;
  322. if (this.typeE.indexOf(ftypeId) != -1) {
  323. this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
  324. }
  325. }
  326. }
  327. }
  328. // this.loading = this.openLoading(document.querySelector(".main_box"));
  329. // if (!this.loading) {
  330. // this.loading = this.openLoading(document.querySelector(".main_box"));
  331. // }
  332. this.loading = true
  333. if (this.typeCheck) {
  334. this.selectAll();
  335. } else {
  336. this.selectAll2();
  337. }
  338. },
  339. selectAll() {
  340. this.zoneListId = 0;
  341. this.isListAjax = true;
  342. let type = '0'
  343. if (!this.org || this.org == "undefined" || this.org == "null") {
  344. if (this.tType == 1) {
  345. type = '2'
  346. }
  347. } else {
  348. if (this.role == 1 || this.tType == 1) {
  349. type = '2'
  350. }else {
  351. type = '1'
  352. }
  353. }
  354. let params = {
  355. type: type,
  356. uid: this.userid,
  357. oid: this.oid,
  358. org: this.org,
  359. typea: this.typea != undefined ? this.typea : "",
  360. typeb: this.typeb != undefined ? this.typeb : "",
  361. typec: this.typec != undefined ? this.typec : "",
  362. typed: this.typed != undefined ? this.typed : "",
  363. typef: this.typef != undefined ? this.typef : "",
  364. typeE: this.typeE.join(","),
  365. cu: "",
  366. cn: this.sCourse,
  367. page: this.page,
  368. };
  369. this.ajax
  370. .get(this.$store.state.api + "selectStudioCourseNew22Mode", params)
  371. .then((res) => {
  372. this.loading = false
  373. this.isListAjax = false;
  374. this.zoneClass = res.data[0];
  375. // this.total = res.data[0].length ? res.data[0][0].num : 0;
  376. let CourseType2 = JSON.parse(JSON.stringify(this.CourseType[0]))
  377. for (var i = 0; i < CourseType2.length; i++) {
  378. CourseType2[i].course = []
  379. for (var j = 0; j < res.data[0].length; j++) {
  380. if (res.data[0][j].pid && res.data[0][j].pid.indexOf(CourseType2[i].id) != -1) {
  381. CourseType2[i].course.push(res.data[0][j])
  382. }
  383. }
  384. }
  385. let noTypeCourse = []
  386. for (var j = 0; j < res.data[0].length; j++) {
  387. if (!res.data[0][j].pid) {
  388. noTypeCourse.push(res.data[0][j])
  389. }
  390. }
  391. if (noTypeCourse.length > 0) {
  392. CourseType2.push({
  393. course: noTypeCourse,
  394. name: '其他'
  395. })
  396. }
  397. CourseType2 = CourseType2.filter(item => {
  398. return item.course.length > 0;
  399. })
  400. this.CourseType2 = CourseType2
  401. // this.selectType({
  402. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  403. // });
  404. // this.selectAllType();
  405. // this.getBanner({
  406. // data: [res.data[6], res.data[5], res.data[7]],
  407. // });
  408. this.getBanner()
  409. })
  410. .catch((err) => {
  411. console.error(err);
  412. });
  413. },
  414. selectAll2() {
  415. this.zoneListId = 0;
  416. this.isListAjax = true;
  417. let type = '0'
  418. if (!this.org || this.org == "undefined" || this.org == "null") {
  419. if (this.tType == 1) {
  420. type = '2'
  421. }
  422. } else {
  423. if (this.role == 1 || this.tType == 1) {
  424. type = '2'
  425. }else {
  426. type = '1'
  427. }
  428. }
  429. let params = {
  430. type: type,
  431. uid: this.userid,
  432. oid: this.oid,
  433. org: this.org,
  434. typea: this.typea != undefined ? this.typea : "",
  435. typeb: this.typeb != undefined ? this.typeb : "",
  436. typec: this.typec != undefined ? this.typec : "",
  437. typed: this.typed != undefined ? this.typed : "",
  438. typef: this.typef != undefined ? this.typef : "",
  439. typeE: this.typeE.join(","),
  440. cu: "",
  441. cn: this.sCourse,
  442. page: this.page,
  443. pageSize: this.pageSize,
  444. };
  445. this.ajax
  446. .get(this.$store.state.api + "selectStudioCourseNew22", params)
  447. .then((res) => {
  448. this.loading = false
  449. this.isListAjax = false;
  450. this.zoneClass = res.data[0];
  451. this.total = res.data[0].length ? res.data[0][0].num : 0;
  452. let CourseType2 = []
  453. // this.selectType({
  454. // data: [res.data[1], res.data[2], res.data[3], res.data[4]],
  455. // });
  456. // this.selectAllType();
  457. // this.getBanner({
  458. // data: [res.data[6], res.data[5], res.data[7]],
  459. // });
  460. this.getBanner()
  461. })
  462. .catch((err) => {
  463. console.error(err);
  464. });
  465. },
  466. checkZone(id) {
  467. this.page = 1;
  468. this.zoneListId = id;
  469. this.getZoneClass(id);
  470. },
  471. // handleCurrentChange(val) {
  472. // this.page = val;
  473. // this.getZoneClass(this.zoneListId);
  474. // },
  475. handleCurrentChange(val) {
  476. // if (!this.loading) {
  477. // this.loading = this.openLoading(document.querySelector(".main_box"));
  478. // }
  479. this.page = val;
  480. this.loading = true
  481. this.selectAll2();
  482. },
  483. //获取banner
  484. getBanner(res) {
  485. let params = {
  486. oid: this.org,
  487. };
  488. this.ajax
  489. .get(this.$store.state.api + "selectBannerByOidStudio", params)
  490. .then((res) => {
  491. if (res.data[0].length > 0) {
  492. this.bannerList = res.data[0];
  493. } else {
  494. // this.getBannerByOid({
  495. // data: [res.data[1], res.data[2]],
  496. // });
  497. this.getBannerByOid();
  498. }
  499. })
  500. .catch((err) => {
  501. console.error(err);
  502. });
  503. },
  504. getBannerByOid(res) {
  505. let params = {
  506. oid: this.oid,
  507. };
  508. this.ajax
  509. .get(this.$store.state.api + "selectBannerByOidStudio", params)
  510. .then((res) => {
  511. if (res.data[0].length > 0) {
  512. this.bannerList = res.data[0];
  513. } else {
  514. // this.getOldBanner({
  515. // data: [res.data[1]],
  516. // });
  517. this.getOldBanner();
  518. }
  519. })
  520. .catch((err) => {
  521. console.error(err);
  522. });
  523. },
  524. getOldBanner(res) {
  525. this.ajax
  526. .get(this.$store.state.api + "getBannerStudio", "")
  527. .then((res) => {
  528. this.bannerList = res.data[0];
  529. })
  530. .catch((err) => {
  531. console.error(err);
  532. });
  533. },
  534. selectAllType() {
  535. let params = {
  536. org: this.org && this.org != "" ? this.org : "",
  537. oid: this.oid && this.oid != "" ? this.oid : "",
  538. };
  539. this.ajax
  540. .get(this.$store.state.api + "selectAllTypeStudio", params)
  541. .then((res) => {
  542. this.CourseTypeJson = {}
  543. this.CourseType = res.data;
  544. for (var i = 0; i < res.data[0].length; i++) {
  545. if (!this.CourseTypeJson[res.data[0][i].id]) {
  546. this.CourseTypeJson[res.data[0][i].id] = [];
  547. }
  548. if (res.data[2].length == 0 && res.data[3].length == 0) {
  549. for (var j = 0; j < res.data[1].length; j++) {
  550. if (res.data[0][i].id == res.data[1][j].pid) {
  551. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  552. }
  553. }
  554. } else {
  555. if (res.data[2].length > 0) {
  556. for (var j = 0; j < res.data[2].length; j++) {
  557. if (res.data[0][i].id == res.data[2][j].pid) {
  558. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  559. }
  560. }
  561. }
  562. if (res.data[3].length > 0) {
  563. for (var j = 0; j < res.data[3].length; j++) {
  564. if (res.data[0][i].id == res.data[3][j].pid) {
  565. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  566. }
  567. }
  568. }
  569. }
  570. }
  571. this.$forceUpdate();
  572. if (this.typeCheck) {
  573. this.selectAll();
  574. } else {
  575. this.selectAll2();
  576. }
  577. })
  578. .catch((err) => {
  579. console.error(err);
  580. });
  581. },
  582. selectType(res) {
  583. this.CourseTypeJson = {};
  584. this.CourseType = res.data;
  585. for (var i = 0; i < res.data[0].length; i++) {
  586. if (!this.cid) {
  587. this.courseTypeId[res.data[0][i].id] = "";
  588. }
  589. for (var j = 0; j < res.data[1].length; j++) {
  590. if (res.data[0][i].id == res.data[1][j].pid) {
  591. if (!this.CourseTypeJson[res.data[0][i].id]) {
  592. this.CourseTypeJson[res.data[0][i].id] = [];
  593. }
  594. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  595. }
  596. }
  597. }
  598. this.selectTypeByOid({ data: [res.data[0], res.data[2]] });
  599. this.selectTypeByOrg({ data: [res.data[0], res.data[3]] });
  600. // })
  601. // .catch((err) => {
  602. // console.error(err);
  603. // });
  604. },
  605. selectTypeByOid(res) {
  606. for (var i = 0; i < res.data[0].length; i++) {
  607. for (var j = 0; j < res.data[1].length; j++) {
  608. if (res.data[0][i].id == res.data[1][j].pid) {
  609. if (!this.CourseTypeJson[res.data[0][i].id]) {
  610. this.CourseTypeJson[res.data[0][i].id] = [];
  611. }
  612. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  613. }
  614. }
  615. }
  616. this.$forceUpdate();
  617. },
  618. selectTypeByOrg(res) {
  619. for (var i = 0; i < res.data[0].length; i++) {
  620. for (var j = 0; j < res.data[1].length; j++) {
  621. if (res.data[0][i].id == res.data[1][j].pid) {
  622. if (!this.CourseTypeJson[res.data[0][i].id]) {
  623. this.CourseTypeJson[res.data[0][i].id] = [];
  624. }
  625. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  626. }
  627. }
  628. }
  629. this.$forceUpdate();
  630. },
  631. },
  632. beforeDestroy() {
  633. clearInterval(this.timer);
  634. this.timer = null;
  635. },
  636. created() {
  637. // this.loading = this.openLoading(document.querySelector(".main_box"));
  638. // this.selectType();
  639. this.loading = true
  640. this.selectAllType();
  641. // this.getBanner();
  642. this.timer = setInterval(() => {
  643. this.selectAllType();
  644. // this.getBanner();
  645. }, 60000);
  646. document.scrollingElement.scrollTop = 0;
  647. },
  648. };
  649. </script>
  650. <style scoped>
  651. @media screen and (max-width: 1024px) {
  652. .box_course {
  653. margin: 0px 5px 20px 5px !important;
  654. }
  655. }
  656. .student_head .imgS {
  657. width: 100%;
  658. height: 100%;
  659. cursor: pointer;
  660. object-fit: cover;
  661. }
  662. .top {
  663. padding: 20px 30px 20px 1%;
  664. box-sizing: border-box;
  665. display: flex;
  666. align-items: center;
  667. }
  668. .top div {
  669. cursor: pointer;
  670. box-sizing: border-box;
  671. height: 35px;
  672. line-height: 35px;
  673. margin: 0 10px 0 0;
  674. padding-bottom: 5px;
  675. width: 80px;
  676. text-align: center;
  677. }
  678. .top .active {
  679. border-bottom: 3px solid #0e71e6;
  680. }
  681. .isactive {
  682. border-bottom: 3px solid #0e71e6;
  683. }
  684. .box_fk {
  685. width: 8px;
  686. height: 21px;
  687. background: #0e71e6;
  688. margin-right: 5px;
  689. }
  690. .wheel {
  691. width: 100%;
  692. height: 140px;
  693. }
  694. .man {
  695. width: 16px;
  696. height: 16px;
  697. }
  698. .wheel>img,
  699. .man>img {
  700. width: 100%;
  701. height: 100%;
  702. object-fit: cover;
  703. }
  704. .box_course {
  705. display: flex;
  706. flex-direction: column;
  707. flex-wrap: nowrap;
  708. /* margin: 0px 1% 20px; */
  709. margin: 0 15px 20px 0;
  710. width: 300px;
  711. /* height: 260px; */
  712. /*border: 1px solid #cecece; */
  713. border-radius: 10px;
  714. overflow: hidden;
  715. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  716. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  717. justify-content: space-between;
  718. cursor: pointer;
  719. }
  720. .middle_white {
  721. font-size: 14px;
  722. margin: 5px 10px 10px;
  723. }
  724. .people {
  725. display: flex;
  726. align-items: center;
  727. }
  728. .people>div:nth-child(2) {
  729. margin-left: 10px;
  730. }
  731. .now_study {
  732. width: 100%;
  733. height: 40px;
  734. color: #fff;
  735. background: #4a9eed;
  736. text-align: center;
  737. line-height: 40px;
  738. font-size: 13px;
  739. cursor: pointer;
  740. display: none;
  741. }
  742. .now_study:hover {
  743. background: #205cc6;
  744. }
  745. .main_box {
  746. width: 100%;
  747. /* display: flex;
  748. flex-direction: row;
  749. flex-wrap: wrap;
  750. justify-content: flex-start; */
  751. margin: 0 auto;
  752. }
  753. .right_bottom_flex {
  754. width: 219px;
  755. height: 144px;
  756. margin: auto 0;
  757. }
  758. .right_bottom_flex>img {
  759. width: 100%;
  760. height: 100%;
  761. }
  762. .body_student {
  763. margin: 0 auto;
  764. width: 90%;
  765. height: 100%;
  766. }
  767. .student_head {
  768. width: 100%;
  769. /* height: 30%; */
  770. }
  771. .textOverflow {
  772. padding: 0 5px 0 0px;
  773. width: 95%;
  774. overflow: hidden;
  775. white-space: nowrap;
  776. text-overflow: ellipsis;
  777. font-weight: bold;
  778. font-size: 16px;
  779. }
  780. .student_page {
  781. margin-top: 10px;
  782. }
  783. .course_empty {
  784. width: 100%;
  785. height: 200px;
  786. display: flex;
  787. align-items: center;
  788. justify-content: center;
  789. }
  790. .choose {
  791. display: flex;
  792. flex-direction: column;
  793. flex-wrap: nowrap;
  794. height: 100%;
  795. justify-content: space-evenly;
  796. align-items: flex-start;
  797. padding: 10px 0;
  798. }
  799. .all_choose {
  800. display: flex;
  801. flex-direction: row;
  802. align-items: baseline;
  803. margin: 10px 0;
  804. width: 100%;
  805. }
  806. .all_choose>div:nth-child(1) span {
  807. text-align-last: justify;
  808. width: 100%;
  809. display: block;
  810. }
  811. .all_choose>div:nth-child(1) {
  812. min-width: 80px;
  813. width: 80px;
  814. font-weight: bold;
  815. margin-right: 10px;
  816. display: flex;
  817. }
  818. .all_choose>>>.el-checkbox-group {
  819. display: flex;
  820. flex-direction: row;
  821. width: 820px;
  822. flex-wrap: wrap;
  823. align-content: center;
  824. justify-content: flex-start;
  825. align-items: center;
  826. margin-top: 3px;
  827. }
  828. .all_choose>.el-checkbox-group>>>.el-checkbox {
  829. margin-bottom: 10px;
  830. display: flex;
  831. flex-direction: row;
  832. align-items: center;
  833. }
  834. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  835. min-width: 80px;
  836. overflow: hidden;
  837. width: 80px;
  838. text-overflow: ellipsis;
  839. white-space: nowrap;
  840. }
  841. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  842. width: auto;
  843. }
  844. .cName {
  845. cursor: pointer;
  846. margin: 0 10px 10px 0;
  847. color: #b9b6b9;
  848. min-width: 80px;
  849. width: 80px;
  850. white-space: nowrap;
  851. overflow: hidden;
  852. text-overflow: ellipsis;
  853. }
  854. .reBox {
  855. position: relative;
  856. top: -25px;
  857. z-index: 999;
  858. background: #fff;
  859. width: 90%;
  860. border-radius: 5px;
  861. padding-left: 20px;
  862. margin: 0 auto;
  863. box-sizing: border-box;
  864. }
  865. .reTop {
  866. padding: 20px 0 0 0;
  867. border-bottom: 1px solid #eee;
  868. width: 98%;
  869. display: flex;
  870. flex-direction: row;
  871. flex-wrap: nowrap;
  872. align-items: center;
  873. justify-content: space-between;
  874. }
  875. .reTop>div:nth-child(1) {
  876. font-weight: bold;
  877. width: 40px;
  878. border-bottom: 1px solid #205cc6;
  879. padding-bottom: 20px;
  880. color: #205cc6;
  881. font-size: 20px;
  882. }
  883. .reTop>div:nth-child(2) {
  884. display: flex;
  885. flex-direction: row;
  886. align-items: center;
  887. border: 1px solid #ccced3;
  888. width: 300px;
  889. border-radius: 8px;
  890. padding: 5px 0;
  891. margin-bottom: 10px;
  892. }
  893. .search {
  894. width: 20px;
  895. padding: 0 5px;
  896. }
  897. .search>img {
  898. width: 100%;
  899. height: 100%;
  900. }
  901. .sInput {
  902. border: none;
  903. width: 85%;
  904. }
  905. .sInput:focus-visible {
  906. outline: none;
  907. }
  908. .nameAndLength {
  909. display: flex;
  910. flex-direction: row;
  911. flex-wrap: nowrap;
  912. align-items: center;
  913. justify-content: space-between;
  914. margin: 5px 0;
  915. }
  916. .typeN {
  917. width: 200px;
  918. white-space: nowrap;
  919. overflow: hidden;
  920. text-overflow: ellipsis;
  921. }
  922. .isCType {
  923. color: #6282c2;
  924. }
  925. .typeCss {
  926. display: flex;
  927. flex-direction: row;
  928. flex-wrap: wrap;
  929. justify-content: flex-start;
  930. align-items: center;
  931. }
  932. .school {
  933. white-space: nowrap;
  934. overflow: hidden;
  935. text-overflow: ellipsis;
  936. max-width: 50%;
  937. box-sizing: border-box;
  938. }
  939. .school_box {
  940. display: flex;
  941. align-items: center;
  942. justify-content: space-between;
  943. }
  944. .FirstTypeBox {}
  945. .FirstTypeBox+.FirstTypeBox {
  946. margin-top: 20px;
  947. }
  948. .FirstTypeBox>.title {
  949. font-size: 24px;
  950. font-weight: 700;
  951. }
  952. .typeCheck {
  953. display: flex;
  954. align-items: center;
  955. justify-content: flex-end;
  956. margin-bottom: 10px;
  957. }
  958. .typeCheck>span {
  959. margin-left: 10px;
  960. }
  961. </style>