index.vue 28 KB

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