custom.vue 15 KB

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