custom.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. <template>
  2. <div class="client-course-page course-weike">
  3. <!-- 宣传图 -->
  4. <div class="client-course-banner" :style="{backgroundImage:`url(${banner_image})`}" @click="goQuotation"></div>
  5. <!-- 动画分类显示区域 -->
  6. <div class="client-course-classification">
  7. <div class="client-container">
  8. <courseCardTitle :title="project.title" class="classification-title"></courseCardTitle>
  9. <ul class="classification-items">
  10. <li class="classification-item" :class="{active:item.type === activeItem }" v-for="item in project.data" @click="changeItem(item)">
  11. <p>{{ item.title }}</p>
  12. </li>
  13. </ul>
  14. </div>
  15. </div>
  16. <!-- 动画分类详情区域 -->
  17. <div class="client-course-classification__info">
  18. <div class="client-container">
  19. <courseCardTitle :title="curItem.title" class="classification__info-title"></courseCardTitle>
  20. <div class="classification__info-mainTitle">{{curItem.mainTitle}}</div>
  21. <div class="classification__info-subHead">{{curItem.subhead}}</div>
  22. <ul class="classification__info-videos">
  23. <li v-for="item in curItem.videos" class="classification-video-item">
  24. <course-video :img-url="item.imgUrl" :title="item.title" :dialog-title="item.title" :source="item.url"></course-video>
  25. <!-- <div class="video-item-box">-->
  26. <!-- <i class="video-play-btn"></i><img :src="item.imgUrl">-->
  27. <!-- <p><span>展现:Mg动画</span><span>用途:生产工艺</span></p>-->
  28. <!-- </div>-->
  29. </li>
  30. </ul>
  31. <div class="classification-btns">
  32. <a class="classification-online-zixun" :href="zixunUrl">在线咨询</a>
  33. </div>
  34. </div>
  35. </div>
  36. <!-- 课程报价区域 -->
  37. <div class="client-course-quotation" ref="quotation">
  38. <div class="client-container quotation-wrap">
  39. <div class="left-text">
  40. <h3>课程定制在线报价</h3>
  41. <p>栋科客服人员会在30分钟内与你取得联系</p>
  42. </div>
  43. <courseBaojia class="baojia-form" tag="wkl" :user-list="userList" :sum="custom_sum"></courseBaojia>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import courseCardTitle from "@/components/course/course-card-title";
  50. import courseBaojia from "@/components/course/course-baojia";
  51. import courseVideo from "@/components/course/course-video";
  52. export default {
  53. name: 'weike',
  54. layout: 'templateB',
  55. head() {
  56. return {
  57. title: '微课制作_课件PPT_微课比赛_幼儿园微课_微课视频动画价格',
  58. meta: [
  59. {
  60. name: 'keywords',
  61. content: '微课,课件,课件ppt,微课制作,微课比赛,幼儿园微课,微课动画,微课视频,课件制作'
  62. },
  63. {
  64. name:'description',
  65. content:'麦塔拥有国内专业、成熟的微课制作团队,丰富的电子课程制作经验,业务方向包括教学设计体验、图文内容演示、教学课件、微课、情景动画、幼儿园微课等,在院校教育、零售连锁行业、汽车行业、金融等12大行业课程开发经验超过15年,规范可靠的研发流程、完善的质量评估和卓越的项目管理体系,能高效稳定地保障支付。'
  66. }
  67. ]
  68. }
  69. },
  70. components: {
  71. courseCardTitle,
  72. courseBaojia,
  73. courseVideo
  74. },
  75. async asyncData({$axios, store}) {
  76. // 设置选中菜单
  77. store.commit('setActiveNav', '/courseware');
  78. let [ res2, res3] = await Promise.all([
  79. $axios.$post(`/develop/sum`, {}),
  80. $axios.$post(`/develop/userlist`, {}),
  81. ])
  82. return {
  83. custom_sum: res2.data || 0,
  84. userList: res3.data.data || []
  85. }
  86. },
  87. data() {
  88. return {
  89. banner_image: require(`~/static/images/client/course/weike/weike-banner.png`),
  90. project: {
  91. title: '课程定制类型',
  92. data: [
  93. {
  94. type: 'donghuaweike',
  95. title: '动画微课',
  96. mainTitle: '百人动画微课制作团队,全国微课大赛获奖导师指导',
  97. subhead: '只做有灵魂的动画,只做有品质的微课',
  98. videos: [
  99. {
  100. title: '动画微课',
  101. purpose: '金融知识', // 用途
  102. imgUrl: require('~/static/images/client/course/weike/donghua01.png'),
  103. url: '',
  104. },
  105. {
  106. title: '动画微课',
  107. purpose: '人才管理', // 用途
  108. imgUrl: require('~/static/images/client/course/weike/donghua02.png'),
  109. url: '',
  110. },
  111. {
  112. title: '动画微课',
  113. purpose: '知识解答', // 用途
  114. imgUrl: require('~/static/images/client/course/weike/donghua03.png'),
  115. url: '',
  116. }
  117. ]
  118. },
  119. {
  120. type: 'shipinweike',
  121. title: '视频微课',
  122. mainTitle: '拍摄/文案/配音/制作一站式服务!',
  123. subhead: '追求卓越品质,用心为客户服务',
  124. videos: [
  125. {
  126. title: '视频微课',
  127. purpose: '视频微课', // 用途
  128. imgUrl: require('~/static/images/client/course/weike/shipin01.png'),
  129. url: '',
  130. },
  131. {
  132. title: '视频微课',
  133. purpose: '系统介绍', // 用途
  134. imgUrl: require('~/static/images/client/course/weike/shipin02.png'),
  135. url: '',
  136. },
  137. {
  138. title: '视频微课',
  139. purpose: '医学知识', // 用途
  140. imgUrl: require('~/static/images/client/course/weike/shipin03.png'),
  141. url: '',
  142. }
  143. ]
  144. },
  145. {
  146. type: 'wentuweike',
  147. title: '图文微课',
  148. mainTitle: '长文图/文图/E-Learning/电子杂志/H5交互',
  149. subhead: '麦塔微课制作-灵感/经验/细节缺一不可',
  150. videos: [
  151. {
  152. title: '图文微课',
  153. purpose: '产品解读', // 用途
  154. imgUrl: require('~/static/images/client/course/weike/tuwen01.png'),
  155. url: '',
  156. },
  157. {
  158. title: '图文微课',
  159. purpose: '电子课程', // 用途
  160. imgUrl: require('~/static/images/client/course/weike/tuwen02.png'),
  161. url: '',
  162. },
  163. {
  164. title: '图文微课',
  165. purpose: '知识培训', // 用途
  166. imgUrl: require('~/static/images/client/course/weike/tuwen03.png'),
  167. url: '',
  168. }
  169. ]
  170. },
  171. {
  172. type: 'PPTweike',
  173. title: 'PPT微课',
  174. mainTitle: '我们只做高端原创PPT微课,坚决抵制抄袭及模板',
  175. subhead: '针对每一个作品,都有严格的审核机制',
  176. videos: [
  177. {
  178. title: 'PPT课程',
  179. purpose: '企业宣传', // 用途
  180. imgUrl: require('~/static/images/client/course/weike/ppt01.png'),
  181. url: '',
  182. },
  183. {
  184. title: 'PPT课程',
  185. purpose: '知识培训', // 用途
  186. imgUrl: require('~/static/images/client/course/weike/ppt02.png'),
  187. url: '',
  188. },
  189. {
  190. title: 'PPT课程',
  191. purpose: '企业培训', // 用途
  192. imgUrl: require('~/static/images/client/course/weike/ppt03.png'),
  193. url: '',
  194. }
  195. ]
  196. }
  197. ]
  198. },
  199. zixunUrl: "https://affim.baidu.com/cps/chat?siteId=17930746&userId=40179606&siteToken=d9c57b2ea4cbedbb044677ef47a1e2d1",
  200. activeItem: 'donghuaweike'
  201. }
  202. },
  203. computed: {
  204. curItem() {
  205. return this.project.data.find(item => item.type === this.activeItem)
  206. },
  207. },
  208. methods: {
  209. changeItem(item) {
  210. this.activeItem = item.type;
  211. },
  212. goQuotation() {
  213. document.documentElement.scrollTop = this.$refs.quotation.offsetTop-150;
  214. window.pageYOffset = this.$refs.quotation.offsetTop -150;
  215. document.body.scrollTop=this.$refs.quotation.offsetTop -150;
  216. }
  217. }
  218. };
  219. </script>
  220. <style lang="scss">
  221. .course-weike {
  222. .client-course-banner {
  223. cursor: pointer;
  224. }
  225. .client-course-classification {
  226. box-sizing: border-box;
  227. text-align: center;
  228. height: 737px;
  229. padding-top: 135px;
  230. .classification-items {
  231. display: flex;
  232. justify-content: space-between;
  233. align-items: center;
  234. }
  235. li{
  236. width: 279px;height: 333px;position:relative;background-size: cover;
  237. background-repeat: no-repeat;cursor: pointer;
  238. p{font-size: 24px;color: #333;position: absolute;bottom: 65px;left:0;right:0;text-align: center;}
  239. }
  240. li.active{
  241. p{color: #2770FF;}
  242. }
  243. li:nth-child(1){
  244. background-image: url("~static/images/client/course/animationCard/kc-img1.png");
  245. }
  246. li.active:nth-child(1){
  247. background-image: url("~static/images/client/course/animationCard/kc-img1-active.png");
  248. }
  249. li:nth-child(2){
  250. background-image: url("~static/images/client/course/animationCard/kc-img2.png");
  251. }
  252. li.active:nth-child(2){
  253. background-image: url("~static/images/client/course/animationCard/kc-img2-active.png");
  254. }
  255. li:nth-child(3){
  256. background-image: url("~static/images/client/course/animationCard/kc-img3.png");
  257. }
  258. li.active:nth-child(3){
  259. background-image: url("~static/images/client/course/animationCard/kc-img3-active.png");
  260. }
  261. li:nth-child(4){
  262. background-image: url("~static/images/client/course/animationCard/kc-img4.png");
  263. }
  264. li.active:nth-child(4){
  265. background-image: url("~static/images/client/course/animationCard/kc-img4-active.png");
  266. }
  267. }
  268. .client-course-classification__info {
  269. box-sizing: border-box;
  270. background-image: url("~static/images/client/course/animation/course-bg-01.png");
  271. padding-top: 84px;
  272. height: 843px;
  273. .classification__info-title {
  274. margin-bottom: 57px;
  275. }
  276. .classification__info-mainTitle {
  277. text-align: center;
  278. font-weight: normal;
  279. color: #333333;
  280. margin-bottom: 16px;
  281. font-size: 24px;
  282. }
  283. .classification__info-subHead {
  284. text-align: center;
  285. font-size: 18px;
  286. font-weight: 400;
  287. color: #333333;
  288. }
  289. .classification__info-videos {
  290. display: flex;
  291. align-items: center;
  292. justify-content: space-between;
  293. margin: 122px 0 50px 0;
  294. .classification-video-item {
  295. width: 380px;height: 280px;
  296. .video-item-box{
  297. width: 352px;background: rgba(18,107,255,0.12);margin: 0;
  298. border: 1px solid #ffffff;border-radius: 10px;padding: 10px;
  299. box-sizing: border-box;position: relative;
  300. display: flex;align-items: center;
  301. img{width: 100%;border-radius: 8px;z-index: 8;}
  302. .video-play-btn{
  303. width: 70px;height: 70px;position: absolute;z-index: 10;background-size: cover;background-position: center;
  304. background-image: url("~static/images/client/course/animation-video-img1.png");background-repeat: no-repeat;
  305. right: -15px;bottom: 30px;transition: 0.5s;
  306. }
  307. .video-play-btn:hover{transform: scale(1.1);cursor: pointer;}
  308. }
  309. .video-item-box:before,.video-item-box:after{content: ' ';position: absolute;display: block;background-repeat: no-repeat;background-size: contain;}
  310. .video-item-box:before{width: 357px;height: 99px;background-image: url("~static/images/client/course/animation-video-img2.png");bottom: -30px;right: -44px;z-index: 9;}
  311. .video-item-box:after{width: 95px;height: 160px;background-image: url("~static/images/client/course/animation-video-img3.png");bottom: 20px;right: -30px;z-index: 7;transform: rotateY(180deg);}
  312. &:last-child {
  313. margin-right: 0;
  314. }
  315. }
  316. }
  317. .classification-btns {
  318. text-align: center;
  319. .classification-online-zixun {
  320. display: inline-block;
  321. background: #0065cd;
  322. border-radius: 6px;
  323. text-align: center;
  324. color: #ffffff;
  325. font-weight: 400;
  326. font-size: 16px;
  327. line-height: 48px;
  328. margin-bottom: 128px;
  329. width: 138px;
  330. height: 50px;
  331. }
  332. }
  333. }
  334. .client-course-quotation {
  335. background-image: url("~static/images/client/course/btns/course-bg-b1.png");
  336. height: 637px;
  337. .quotation-wrap {
  338. display: flex;
  339. justify-content: space-between;
  340. .left-text {
  341. margin-top: 282px;
  342. h3 {
  343. font-size: 48px;
  344. font-weight: 700;
  345. text-align: left;
  346. color: #fefefe;
  347. letter-spacing: 1.2px;
  348. margin-bottom: 33px;
  349. width: 410px;
  350. height: 47px;
  351. }
  352. p {
  353. font-size: 20px;
  354. font-weight: 400;
  355. text-align: left;
  356. color: #ffffff;
  357. width: 364px;
  358. height: 20px;
  359. }
  360. }
  361. .baojia-form {
  362. margin-top: 82px;
  363. margin-right: 120px;
  364. }
  365. }
  366. }
  367. @media (max-width: 768px){
  368. .client-course-classification {
  369. box-sizing: border-box;
  370. text-align: center;
  371. height: unset;
  372. padding: 35px 0;
  373. .classification-items{
  374. flex-wrap: wrap;
  375. justify-content: space-evenly;
  376. }
  377. .classification-item {
  378. width: 140px;
  379. height: 167px;
  380. margin: 10px;
  381. background-size: contain;
  382. background-repeat: no-repeat;
  383. background-position: center;
  384. p{font-size: 14px;bottom: 30px;}
  385. &:not(:nth-child(even)) {
  386. margin-right: 0;
  387. }
  388. &:nth-child(n+3) {
  389. margin-top: 0;
  390. }
  391. }
  392. }
  393. .client-course-classification__info{
  394. height: auto;
  395. padding-top: 42px;
  396. .classification__info-videos {
  397. flex-wrap: wrap;
  398. flex-direction: column;
  399. box-sizing: border-box;
  400. padding: 20px;
  401. margin: 30px 0 0 0;
  402. .classification-video-item {
  403. height: auto;
  404. flex: 1;
  405. width: 100%;
  406. margin: 0 0 10px;
  407. img {
  408. height: auto;
  409. width: 100%;
  410. }
  411. }
  412. }
  413. .classification-btns {
  414. .classification-online-zixun {
  415. margin-bottom: 60px;
  416. }
  417. }
  418. }
  419. .client-course-quotation {
  420. margin-bottom: 200px;
  421. height: 400px;
  422. .quotation-wrap {
  423. flex-direction: column;
  424. .left-text {
  425. margin: 40px auto 0;
  426. h3 {
  427. text-align: center;
  428. font-size: 20px;
  429. margin-bottom: 10px;
  430. width: 100%;
  431. }
  432. p {
  433. text-align: center;
  434. width: 100%;
  435. font-size: 16px;
  436. }
  437. }
  438. .baojia-form {
  439. margin: 0 auto;
  440. }
  441. }
  442. }
  443. }
  444. }
  445. </style>