index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. <template>
  2. <!-- 课程详情 -->
  3. <div>
  4. <div v-if="isData" v-loading="loading" class="CourseDetail">
  5. <div class="main">
  6. <div class="bookDetail">
  7. <div class="rightUp">
  8. <span>HOT</span>
  9. </div>
  10. <div class="text">
  11. <p class="p1 nowrap-ellipsis" :title="CourseData.name">{{ CourseData.name }}</p>
  12. <!-- 机构名称 -->
  13. <p>{{ CourseData.org_name }}</p>
  14. <p>
  15. <template v-if="CourseData.teacher_list.length > 0">
  16. <span v-for="item in CourseData.teacher_list" :key="item.teacher_id">
  17. {{ item.teacher_name }}
  18. </span>
  19. </template>
  20. </p>
  21. <p class="intro">
  22. {{ CourseData.intro }}
  23. </p>
  24. <p>
  25. <span> {{ CourseData.begin_date }} </span>
  26. <span>-</span>
  27. <span> {{ CourseData.end_date }} </span>
  28. </p>
  29. <p v-if="backTime" class="tip">距离关闭购买渠道还有</p>
  30. <div class="operation">
  31. <div v-if="backTime" class="countdown">
  32. <div class="time">
  33. <div>
  34. <div class="time-num">{{ backTime.days }}</div>
  35. <div class="time-name">天</div>
  36. </div>
  37. <div>
  38. <div class="time-num">{{ backTime.hours }}</div>
  39. <div class="time-name">小时</div>
  40. </div>
  41. <div>
  42. <div class="time-num">{{ backTime.minutes }}</div>
  43. <div class="time-name">分</div>
  44. </div>
  45. <div>
  46. <div class="time-num">{{ backTime.seconds }}</div>
  47. <div class="time-name">秒</div>
  48. </div>
  49. </div>
  50. </div>
  51. <div v-else>购买渠道已关闭</div>
  52. <div v-if="!readonly">
  53. <span class="price">
  54. ¥
  55. <span class="price_1" v-text="changePrice('1', CourseData.price)" />
  56. <span class="price_2" v-text="changePrice('2', CourseData.price)" />
  57. </span>
  58. <button class="get" @click="getPurchase">
  59. {{ is_buy ? '去学习' : '获取课程' }}
  60. </button>
  61. <span class="collection" @click="addOrDeleteMyCollection">
  62. <svg-icon :icon-class="collection ? 'collection-solid' : 'collection'" />
  63. </span>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="more">
  69. <div class="moreTitle">配套教材</div>
  70. <div class="moreList">
  71. <div v-for="(item, i) in CourseData.book_list" :key="i" class="moreOne">
  72. <div>
  73. <img :src="item.book_picture_url" alt="">
  74. </div>
  75. <div class="text">
  76. <p class="p1">{{ item.book_name }}</p>
  77. <p>{{ item.book_org_name }}</p>
  78. <p>{{ item.book_author }}</p>
  79. <div class="operation">
  80. <span class="price">
  81. ¥
  82. <span class="price_1" v-text="changePrice('1', item.book_price)" />
  83. <span class="price_2" v-text="changePrice('2', item.book_price)" />
  84. </span>
  85. <button v-if="!readonly" :class="['get', is_buy ? 'acquired' : '']" @click="goBook(item.book_id)">
  86. {{ is_buy ? '已' : '' }}购买
  87. </button>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="more">
  94. <div class="moreTitle">授课教师</div>
  95. <div class="moreList teacherList">
  96. <div v-for="(item, i) in CourseData.teacher_list" :key="i" class="moreOne">
  97. <div>
  98. <img :src="item.teacher_image_url" alt="">
  99. </div>
  100. <div class="text">
  101. <p class="p1">{{ item.teacher_name }}</p>
  102. <p>{{ item.teacher_org_name }}</p>
  103. <p />
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="course-arrangement">
  109. <div class="moreTitle">课程安排</div>
  110. <div v-for="(item, i) in CourseData.cs_item_list" :key="i" class="course-list">
  111. <div class="courseOne">
  112. <div class="title">
  113. <div>
  114. <span>{{ i + 1 }}.</span>
  115. <span>{{ item.name }}</span>
  116. </div>
  117. <div class="courseOne-time">{{ item.begin_time }} ~ {{ item.end_time }}</div>
  118. </div>
  119. </div>
  120. <div class="course-content">
  121. <el-collapse @change="handleChange(item.id)">
  122. <el-collapse-item :name="item.id">
  123. <div slot="title" class="Coursetasks">
  124. 课程任务
  125. <img
  126. class="arrow"
  127. :src="
  128. openList.includes(item.id)
  129. ? require('../../assets/course_details/open1.png')
  130. : require('../../assets/course_details/open2.png')
  131. "
  132. >
  133. </div>
  134. <div class="courseContent">
  135. <template v-for="li in courseContentList">
  136. <div v-if="item[li.id].length > 0" :key="li.id" class="tasks">
  137. <div class="title">
  138. <span class="red-circle" /><span>{{ li.name }}任务</span>
  139. </div>
  140. <div class="content">
  141. <el-collapse-item v-for="(it, it_i) in item[li.id]" :key="it_i" :name="it.id">
  142. <div slot="title" :class="openList.includes(it.id) ? 'contenttitle2' : 'contenttitle'">
  143. <span :title="it.name">{{ it.name }}</span>
  144. <span>
  145. <span class="gray">{{ it.begin_time }} ~ {{ it.end_time }}</span>
  146. <span class="gray">···</span>
  147. </span>
  148. </div>
  149. <div class="detail">
  150. <div>
  151. <span>说明</span>
  152. <p>
  153. {{ it.content }}
  154. </p>
  155. </div>
  156. <div v-if="it.courseware_list.length > 0">
  157. <span>课件</span>
  158. <div>
  159. <div
  160. v-for="(courseware, courseware_i) in it.courseware_list"
  161. :key="courseware_i"
  162. class="btn"
  163. >
  164. <img src="../../assets/course_details/file.png" alt="">
  165. <span> {{ courseware.courseware_name }} </span>
  166. </div>
  167. </div>
  168. </div>
  169. <div v-if="it.accessory_list.length > 0">
  170. <span>附件</span>
  171. <div>
  172. <div
  173. v-for="(accessory, accessory_i) in it.accessory_list"
  174. :key="accessory_i"
  175. class="btn"
  176. >
  177. <img src="../../assets/course_details/fileType1.png" alt="">
  178. <span> {{ accessory.file_name }} </span>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </el-collapse-item>
  184. </div>
  185. </div>
  186. </template>
  187. </div>
  188. </el-collapse-item>
  189. </el-collapse>
  190. </div>
  191. </div>
  192. </div>
  193. <el-dialog
  194. class="orderDialog"
  195. title="商品详情"
  196. :visible.sync="auditShow"
  197. width="720px"
  198. :before-close="closeaudit"
  199. >
  200. <audit :goods-id="goods_id" :data="CourseData" :goods-type="goods_type" />
  201. </el-dialog>
  202. </div>
  203. </div>
  204. <div v-else-if="!loading" class="non-existent">
  205. <h1>该课程已下架</h1>
  206. </div>
  207. </div>
  208. </template>
  209. <script>
  210. import Audit from '@/components/payment/Audit';
  211. import {
  212. GetCourseInfoBox,
  213. CheckMyGoodsBuyStatus,
  214. AddMyCollection,
  215. CancelMyGoodsCollection,
  216. CheckMyGoodsCollectionStatus
  217. } from '@/api/course';
  218. export default {
  219. components: {
  220. Audit
  221. },
  222. data() {
  223. let query = this.$route.query;
  224. return {
  225. goods_id: query.goods_id,
  226. goods_type: Number(query.goods_type),
  227. readonly: 'readonly' in query ? query.readonly : false,
  228. collection: false,
  229. openList: [],
  230. timer: null, // 获取倒计时
  231. backTime: 0,
  232. auditShow: false,
  233. loading: false,
  234. is_buy: false,
  235. CourseData: null,
  236. isData: false,
  237. courseContentList: [
  238. { id: 'pre_task_list', name: '课前' },
  239. { id: 'mid_task_list', name: '课中' },
  240. { id: 'after_task_list', name: '课后' }
  241. ]
  242. };
  243. },
  244. created() {
  245. // 获取课程详情
  246. this.loading = true;
  247. CheckMyGoodsBuyStatus({ goods_type: this.goods_type, goods_id: this.goods_id }).then(({ is_buy }) => {
  248. this.is_buy = is_buy === 'true';
  249. });
  250. GetCourseInfoBox({ id: this.goods_id })
  251. .then(res => {
  252. this.CourseData = res;
  253. this.isData = 'id' in res;
  254. this.getBackTime();
  255. this.checkMyGoodsCollectionStatus();
  256. this.loading = false;
  257. })
  258. .catch(() => {
  259. this.loading = false;
  260. });
  261. },
  262. beforeDestroy() {
  263. // 清空定时器
  264. clearInterval(this.timer);
  265. },
  266. // 方法集合
  267. methods: {
  268. // 课程任务的打开和关闭
  269. handleChange(val) {
  270. this.openList.includes(val) ? this.openList.splice(this.openList.indexOf(val), 1) : this.openList.push(val);
  271. },
  272. goBook(book_id) {
  273. if (!this.is_buy) {
  274. window.location.href = `/GCLS-Book/#/GoodsDetail?goods_id=${book_id}&goods_type=101`;
  275. }
  276. },
  277. checkMyGoodsCollectionStatus() {
  278. CheckMyGoodsCollectionStatus({ goods_type: this.goods_type, goods_id: this.CourseData.id }).then(
  279. ({ is_collection }) => {
  280. this.collection = is_collection === 'true';
  281. }
  282. );
  283. },
  284. // 处理价格
  285. changePrice(type, item) {
  286. if (!item) return;
  287. let str = String(item);
  288. if (str.includes('.')) {
  289. if (type === '1') {
  290. return str.split('.')[0];
  291. }
  292. return '.' + str.split('.')[1];
  293. } else if (type === '1') {
  294. return str;
  295. }
  296. },
  297. // 收藏
  298. addOrDeleteMyCollection() {
  299. if (!this.collection) {
  300. let goods_person_name_desc = '';
  301. this.CourseData.teacher_list.forEach(item => {
  302. goods_person_name_desc += item.teacher_name;
  303. });
  304. AddMyCollection({
  305. goods_id: this.goods_id,
  306. goods_type: this.goods_type,
  307. goods_name: this.CourseData.name,
  308. goods_person_name_desc,
  309. goods_picture_id: this.CourseData.picture_id,
  310. goods_price: this.CourseData.price
  311. }).then(() => {
  312. this.$message.success('收藏课程成功');
  313. this.collection = true;
  314. });
  315. } else {
  316. CancelMyGoodsCollection({ goods_type: this.goods_type, goods_id_list: [this.CourseData.id] }).then(() => {
  317. this.$message.success('取消收藏成功');
  318. this.collection = false;
  319. });
  320. }
  321. },
  322. // 购买 需要先加入课程 审核 审核通过之后才能购买课程
  323. getPurchase() {
  324. // 购买通道关闭
  325. if (this.is_buy) {
  326. return this.$router.push('/');
  327. }
  328. if (!this.backTime) {
  329. this.$message.warning('购买渠道已关闭');
  330. return;
  331. }
  332. this.auditShow = true;
  333. },
  334. closeaudit() {
  335. this.auditShow = false;
  336. },
  337. // 获取当前时间到指定时间的倒计时
  338. getBackTime() {
  339. let date = new Date(this.CourseData.end_date);
  340. let targetTime = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59).getTime();
  341. console.log(new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59).toString());
  342. // 目标时间戳 - 当前时间戳 = 倒计时
  343. this.timer = setInterval(() => {
  344. let backTime = targetTime - new Date().getTime();
  345. if (backTime > 0) {
  346. backTime = this.formatduring(backTime);
  347. this.backTime = backTime;
  348. } else {
  349. this.backTime = 0;
  350. clearInterval(this.timer);
  351. }
  352. }, 1000);
  353. },
  354. // 倒计时时间戳转换为 天 小时 分钟 秒
  355. formatduring(mss) {
  356. let days = parseInt(mss / (1000 * 60 * 60 * 24));
  357. let hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  358. let minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60));
  359. let seconds = parseInt((mss % (1000 * 60)) / 1000);
  360. // 如果到时间了返回false 关闭购买通道 无法购买
  361. if (days <= 0 && hours <= 0 && minutes <= 0 && seconds <= 0) {
  362. return false;
  363. }
  364. return {
  365. days,
  366. hours,
  367. minutes,
  368. seconds
  369. };
  370. }
  371. }
  372. };
  373. </script>
  374. <style lang="scss" scoped>
  375. .CourseDetail {
  376. .main {
  377. min-height: 100%;
  378. padding: 52px 0 20px;
  379. background: #e5e5e5;
  380. .bookDetail {
  381. position: relative;
  382. display: flex;
  383. width: 1200px;
  384. height: 524px;
  385. padding: 64px;
  386. margin: 0 auto;
  387. overflow: hidden;
  388. background: url('../../assets/course_details/Rectangle113.png');
  389. border-radius: 8px;
  390. .rightUp {
  391. position: absolute;
  392. top: 0;
  393. right: 0;
  394. width: 72px;
  395. height: 72px;
  396. background: url('../../assets/course_details/Rectangle903.png');
  397. span {
  398. position: absolute;
  399. top: 10px;
  400. left: 30px;
  401. color: #fff;
  402. transform: translateX(4px) translateY(4px) rotateZ(45deg);
  403. }
  404. }
  405. .text {
  406. width: 1100px;
  407. color: #fff;
  408. .tip:not(.p1) {
  409. margin-top: 36px;
  410. }
  411. p {
  412. font-size: 16px;
  413. }
  414. .p1 {
  415. margin-top: 16px;
  416. font-size: 40px;
  417. }
  418. .intro {
  419. display: box;
  420. height: 36px;
  421. -webkit-box-orient: vertical;
  422. -webkit-line-clamp: 2;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. }
  426. > :not(.p1) {
  427. margin-top: 20px;
  428. }
  429. .price {
  430. font-size: 24px;
  431. .price_2 {
  432. font-size: 16px;
  433. }
  434. }
  435. .operation {
  436. display: flex;
  437. align-items: center;
  438. justify-content: space-between;
  439. .countdown {
  440. > p {
  441. color: rgba(255, 255, 255, 70%);
  442. }
  443. // 倒计时
  444. .time {
  445. display: flex;
  446. height: 75px;
  447. div {
  448. width: 48px;
  449. margin-right: 48px;
  450. text-align: center;
  451. }
  452. &-num {
  453. font-size: 30px;
  454. }
  455. &-name {
  456. margin-top: 12px;
  457. font-size: 24px;
  458. }
  459. }
  460. }
  461. }
  462. .get {
  463. width: 200px;
  464. height: 56px;
  465. margin-left: 30px;
  466. font-size: 20px;
  467. color: #fff;
  468. cursor: pointer;
  469. background: $basicColor;
  470. border-style: none;
  471. border-radius: 4px;
  472. outline: none;
  473. }
  474. .acquired {
  475. width: 120px;
  476. height: 40px;
  477. margin-left: 30px;
  478. font-size: 16px;
  479. color: #fff;
  480. cursor: pointer;
  481. background: #d5d5d5;
  482. border-style: none;
  483. border-radius: 4px;
  484. outline: none;
  485. }
  486. .collection {
  487. margin-left: 24px;
  488. font-size: 24px;
  489. vertical-align: middle;
  490. cursor: pointer;
  491. }
  492. }
  493. }
  494. .more {
  495. width: 1200px;
  496. margin: 0 auto;
  497. margin-top: 30px;
  498. .moreTitle {
  499. font-size: 20px;
  500. font-weight: 600;
  501. color: #000;
  502. }
  503. .moreTitle::before {
  504. margin-right: 16px;
  505. color: $basicColor;
  506. content: '|';
  507. background: $basicColor;
  508. }
  509. .moreList {
  510. display: flex;
  511. flex-wrap: wrap;
  512. width: 1300px;
  513. margin: 0 auto;
  514. .moreOne {
  515. display: flex;
  516. width: 598px;
  517. height: 236px;
  518. margin-top: 20px;
  519. margin-right: 20px;
  520. background: #fff;
  521. border-radius: 8px;
  522. > div {
  523. margin-top: 32px;
  524. margin-left: 32px;
  525. img {
  526. width: 120px;
  527. height: 160px;
  528. }
  529. }
  530. .text {
  531. width: 390px;
  532. margin-right: 23px;
  533. > p:not(.p1) {
  534. margin-top: 10px;
  535. font-size: 16px;
  536. color: #2c2c2c;
  537. opacity: 70%;
  538. }
  539. .p1 {
  540. font-size: 20px;
  541. font-weight: 600;
  542. color: #2c2c2c;
  543. }
  544. .operation {
  545. margin-top: 10px;
  546. text-align: right;
  547. }
  548. .get {
  549. width: 120px;
  550. height: 40px;
  551. margin-left: 30px;
  552. font-size: 20px;
  553. color: #fff;
  554. cursor: pointer;
  555. background: $basicColor;
  556. border-style: none;
  557. border-radius: 4px;
  558. outline: none;
  559. }
  560. .acquired {
  561. @extend .get;
  562. background: #d5d5d5;
  563. }
  564. .price {
  565. font-size: 24px;
  566. .price_2 {
  567. font-size: 16px;
  568. }
  569. }
  570. }
  571. }
  572. }
  573. .teacherList {
  574. .moreOne {
  575. > div {
  576. img {
  577. width: 120px;
  578. height: 120px;
  579. border-radius: 50%;
  580. }
  581. }
  582. }
  583. }
  584. }
  585. .course-arrangement {
  586. width: 1200px;
  587. margin: 0 auto;
  588. margin-top: 30px;
  589. .moreTitle {
  590. font-size: 20px;
  591. font-weight: 600;
  592. color: #000;
  593. }
  594. .moreTitle::before {
  595. margin-right: 16px;
  596. color: $basicColor;
  597. content: '|';
  598. background: $basicColor;
  599. }
  600. .course-list {
  601. width: 1200px;
  602. padding: 40px 68px 40px 40px;
  603. margin-top: 30px;
  604. font-size: 18px;
  605. background: #fff;
  606. > :not(.courseOne) {
  607. padding-left: 40px;
  608. margin-top: 16px;
  609. }
  610. .courseOne {
  611. .title {
  612. display: flex;
  613. justify-content: space-between;
  614. > div:nth-child(1) {
  615. font-size: 20px;
  616. font-weight: bold;
  617. span {
  618. margin-right: 24px;
  619. }
  620. }
  621. }
  622. &-time {
  623. color: #737373;
  624. }
  625. }
  626. .course-content {
  627. width: 670px;
  628. }
  629. .Coursetasks {
  630. display: flex;
  631. align-items: center;
  632. font-size: 16px;
  633. cursor: pointer;
  634. .arrow {
  635. width: 24px;
  636. margin-left: 8px;
  637. }
  638. }
  639. .courseContent {
  640. .tasks {
  641. padding-left: 10px;
  642. .title {
  643. font-size: 16px;
  644. color: #2c2c2c;
  645. .red-circle {
  646. position: relative;
  647. right: 3px;
  648. display: inline-block;
  649. width: 8px;
  650. height: 8px;
  651. margin-right: 16px;
  652. background: #fe6d68;
  653. border-radius: 50%;
  654. }
  655. }
  656. .content {
  657. padding-bottom: 10px;
  658. padding-left: 20px;
  659. margin-top: 16px;
  660. border-left: 1px solid #fe6d68;
  661. .contenttitle {
  662. display: flex;
  663. align-items: center;
  664. justify-content: space-between;
  665. width: 670px;
  666. padding: 0 10px;
  667. font-size: 16px;
  668. cursor: pointer;
  669. background: #fff;
  670. border: 1px solid #e6e6e6;
  671. border-radius: 8px;
  672. img {
  673. width: 16px;
  674. margin-left: 8px;
  675. }
  676. span {
  677. margin-left: 16px;
  678. }
  679. > span:first-child {
  680. width: 180px;
  681. overflow: hidden;
  682. text-overflow: ellipsis;
  683. white-space: nowrap;
  684. }
  685. .gray {
  686. opacity: 50%;
  687. }
  688. }
  689. .contenttitle2 {
  690. @extend .contenttitle;
  691. background: #f9f9f9;
  692. border-bottom-right-radius: 0;
  693. border-bottom-left-radius: 0;
  694. }
  695. .detail {
  696. width: 599px;
  697. padding-bottom: 24px;
  698. background: #fff;
  699. border: 1px solid #e7e7e7;
  700. border-bottom-right-radius: 8px;
  701. border-bottom-left-radius: 8px;
  702. box-shadow: 0 2px 8px rgba(0, 0, 0, 10%);
  703. > div {
  704. display: flex;
  705. align-items: center;
  706. margin-top: 24px;
  707. > :nth-child(1) {
  708. width: 78px;
  709. min-width: 78px;
  710. margin-left: 24px;
  711. font-size: 16px;
  712. color: #000;
  713. }
  714. > :nth-child(2) {
  715. margin-left: 16px;
  716. img {
  717. width: 24px;
  718. }
  719. .btn {
  720. display: flex;
  721. align-items: center;
  722. width: 270px;
  723. height: 40px;
  724. cursor: pointer;
  725. background: #fff;
  726. border: 1px solid #dbdbdb;
  727. border-radius: 4px;
  728. img {
  729. margin-right: 8px;
  730. margin-left: 16px;
  731. }
  732. }
  733. .btn:not(:nth-child(1)) {
  734. margin-top: 8px;
  735. }
  736. }
  737. }
  738. }
  739. }
  740. }
  741. }
  742. }
  743. }
  744. .cutDownOrimg {
  745. width: 1200px;
  746. margin: 0 auto;
  747. margin-top: 24px;
  748. .sele {
  749. display: flex;
  750. align-items: center;
  751. width: 318px;
  752. height: 48px;
  753. font-size: 20px;
  754. color: #9f9f9f;
  755. background: #ebebeb;
  756. border-radius: 30px;
  757. > div {
  758. width: 158px;
  759. height: 48px;
  760. line-height: 48px;
  761. text-align: center;
  762. cursor: pointer;
  763. border-radius: 30px;
  764. }
  765. .select {
  766. color: #fff;
  767. background: $basicColor;
  768. box-shadow: 0 2px 8px rgba(255, 153, 0, 15%);
  769. }
  770. }
  771. }
  772. .Catalogue {
  773. display: flex;
  774. width: 1200px;
  775. height: 710px;
  776. margin: 24px auto;
  777. background: #fff;
  778. .left {
  779. width: 340px;
  780. height: 710px;
  781. border-right: 1px solid #d9d9d9;
  782. .title {
  783. width: 80%;
  784. margin: 29px auto;
  785. font-size: 24px;
  786. font-weight: 600;
  787. color: #000;
  788. }
  789. }
  790. .right {
  791. width: 860px;
  792. height: 710px;
  793. }
  794. }
  795. .Resources {
  796. display: flex;
  797. width: 1200px;
  798. height: 710px;
  799. margin: 24px auto;
  800. background: #fff;
  801. div {
  802. display: flex;
  803. align-items: center;
  804. justify-content: center;
  805. height: 40px;
  806. padding: 0 10px;
  807. margin: 10px;
  808. cursor: pointer;
  809. border: 1px solid rgba(44, 44, 44, 15%);
  810. border-radius: 4px;
  811. img {
  812. width: 24px;
  813. margin: 0 10px;
  814. }
  815. span {
  816. width: 182px;
  817. overflow: hidden;
  818. text-overflow: ellipsis;
  819. white-space: nowrap;
  820. }
  821. }
  822. }
  823. }
  824. }
  825. .non-existent {
  826. margin-top: 15vh;
  827. text-align: center;
  828. }
  829. </style>
  830. <style lang="scss">
  831. .el-collapse {
  832. border-style: none;
  833. &-item + &-item {
  834. margin-top: 12px;
  835. }
  836. .el-collapse-item__header {
  837. border-style: none;
  838. .l-collapse-item__arrow,
  839. .el-icon-arrow-right {
  840. display: none;
  841. }
  842. }
  843. .el-collapse-item__wrap {
  844. border-style: none;
  845. }
  846. .el-collapse-item__content {
  847. padding-bottom: 0;
  848. }
  849. }
  850. .orderDialog {
  851. .el-dialog__header {
  852. padding: 32px 20px 24px 32px;
  853. .el-dialog__title {
  854. font-size: 20px;
  855. line-height: 150%;
  856. color: #000;
  857. }
  858. }
  859. .el-dialog__body {
  860. padding: 0 32px 32px;
  861. }
  862. }
  863. </style>