custom.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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" scoped>
  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-title {
  231. margin-bottom: 144px;
  232. }
  233. .classification-items {
  234. display: flex;
  235. justify-content: space-between;
  236. align-items: center;
  237. }
  238. li{
  239. width: 279px;height: 333px;position:relative;background-size: cover;
  240. background-repeat: no-repeat;cursor: pointer;
  241. p{font-size: 24px;color: #333;position: absolute;bottom: 65px;left:0;right:0;text-align: center;}
  242. }
  243. li.active{
  244. p{color: #2770FF;}
  245. }
  246. li:nth-child(1){
  247. background-image: url("~static/images/client/course/animationCard/kc-img1.png");
  248. }
  249. li.active:nth-child(1){
  250. background-image: url("~static/images/client/course/animationCard/kc-img1.png");
  251. }
  252. li:nth-child(2){
  253. background-image: url("~static/images/client/course/animationCard/kc-img2.png");
  254. }
  255. li.active:nth-child(2){
  256. background-image: url("~static/images/client/course/animationCard/kc-img2.png");
  257. }
  258. li:nth-child(3){
  259. background-image: url("~static/images/client/course/animationCard/kc-img3.png");
  260. }
  261. li.active:nth-child(3){
  262. background-image: url("~static/images/client/course/animationCard/kc-img3.png");
  263. }
  264. li:nth-child(4){
  265. background-image: url("~static/images/client/course/animationCard/kc-img4.png");
  266. }
  267. li.active:nth-child(4){
  268. background-image: url("~static/images/client/course/animationCard/kc-img4.png");
  269. }
  270. }
  271. .client-course-classification__info {
  272. box-sizing: border-box;
  273. background-image: url("~static/images/client/course/animation/course-bg-01.png");
  274. padding-top: 84px;
  275. height: 843px;
  276. .classification__info-title {
  277. margin-bottom: 57px;
  278. }
  279. .classification__info-mainTitle {
  280. text-align: center;
  281. font-weight: normal;
  282. color: #333333;
  283. margin-bottom: 16px;
  284. font-size: 24px;
  285. }
  286. .classification__info-subHead {
  287. text-align: center;
  288. font-size: 18px;
  289. font-weight: 400;
  290. color: #333333;
  291. }
  292. .classification__info-videos {
  293. display: flex;
  294. justify-content: center;
  295. align-items: center;
  296. margin: 122px 0 50px 0;
  297. .classification-video-item {
  298. background-color: #ccc;
  299. margin-right: 20px;
  300. width: 380px;
  301. height: 280px;
  302. &:last-child {
  303. margin-right: 0;
  304. }
  305. img {
  306. width: 380px;
  307. height: 280px;
  308. }
  309. }
  310. }
  311. .classification-btns {
  312. text-align: center;
  313. .classification-online-zixun {
  314. display: inline-block;
  315. background: #0065cd;
  316. border-radius: 6px;
  317. text-align: center;
  318. color: #ffffff;
  319. font-weight: 400;
  320. font-size: 16px;
  321. line-height: 48px;
  322. margin-bottom: 128px;
  323. width: 138px;
  324. height: 50px;
  325. }
  326. }
  327. }
  328. .client-course-quotation {
  329. background-image: url("~static/images/client/course/btns/course-bg-b1.png");
  330. height: 637px;
  331. .quotation-wrap {
  332. display: flex;
  333. justify-content: space-between;
  334. .left-text {
  335. margin-top: 282px;
  336. h3 {
  337. font-size: 48px;
  338. font-weight: 700;
  339. text-align: left;
  340. color: #fefefe;
  341. letter-spacing: 1.2px;
  342. margin-bottom: 33px;
  343. width: 410px;
  344. height: 47px;
  345. }
  346. p {
  347. font-size: 20px;
  348. font-weight: 400;
  349. text-align: left;
  350. color: #ffffff;
  351. width: 364px;
  352. height: 20px;
  353. }
  354. }
  355. .baojia-form {
  356. margin-top: 82px;
  357. margin-right: 120px;
  358. }
  359. }
  360. }
  361. @media (max-width: 768px){
  362. .client-course-classification {
  363. box-sizing: border-box;
  364. text-align: center;
  365. height: 400px;
  366. padding-top: 35px;
  367. .classification-title {
  368. margin-bottom: 42px;
  369. }
  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>