indexGM.vue 23 KB

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