index.vue 20 KB

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