shengChanCaiGou.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <div class="client-platform-page client-exam-page">
  3. <!-- 广告 -->
  4. <div class="client-banner-box">
  5. <div
  6. :style="{backgroundImage: `url(${bannerList[0].pic || require(`~/static/images/client/train/train-banner-background.png`)})`}"
  7. class="client-platform-banner"></div>
  8. </div>
  9. <!-- 岗位职责 -->
  10. <gangweiList label="岗位职责" :list="gangwei" :pc-num="4" :h5-num="2"></gangweiList>
  11. <!-- 部分课程列表 -->
  12. <div class="platform-course-list client-container">
  13. <h4>部分课程列表</h4>
  14. <mtaTable :data="tableData" :config="tableConfig" @shi-kan="shiKan"></mtaTable>
  15. <div class="btn-groups">
  16. <freeTrialBtn class="btn-item" myType="kaoshi"/>
  17. <onlineInformationBtn />
  18. </div>
  19. </div>
  20. <videoDialog :source="curVideo" :visible.sync="visible"></videoDialog>
  21. </div>
  22. </template>
  23. <script>
  24. import mtaTable from "~/components/common/mtaTable";
  25. import videoDialog from "~/components/common/videoDialog";
  26. import freeTrialBtn from "~/components/common/freeTrialBtn";
  27. import onlineInformationBtn from "~/components/common/onlineInformationBtn";
  28. import gangweiList from "@/components/common/layout/desComp/gangweiList";
  29. import {BannerImgs, shengchancaigou} from "~/defaultConfig";
  30. /**
  31. * @ 产品与服务 -> 课程资源 -> 生产采购
  32. */
  33. export default {
  34. name: "professionalQuality",
  35. layout: 'templateB',
  36. async asyncData({$axios}) {
  37. const arr = [
  38. $axios.$post(`/home/banner/list`, {'code': BannerImgs.shengcancaigou}),
  39. ]
  40. const [res1] = await Promise.all(arr);
  41. return {
  42. bannerList: res1.data.data || [],
  43. }
  44. },
  45. components: {
  46. mtaTable, videoDialog,
  47. freeTrialBtn, onlineInformationBtn, gangweiList
  48. },
  49. head() {
  50. return {
  51. title: '在线考试平台_在线考试软件_试卷软件系统',
  52. meta: [
  53. {
  54. name: 'keywords',
  55. content: '考试平台,试卷系统,试卷软件'
  56. },
  57. {
  58. name: 'description',
  59. content: '麦塔考试系统具有良好高并发性和访问安全部署、严格的考试监控防作弊功能、PC移动支持多终端,随时随地考试、丰富的考试管理功能。'
  60. }
  61. ],
  62. }
  63. },
  64. data() {
  65. return {
  66. tableConfig: [
  67. {
  68. label: '课程名称',
  69. key: 'name'
  70. },
  71. {
  72. label: '使用行业',
  73. key: 'hangye'
  74. },
  75. {
  76. label: '使用人群',
  77. key: 'renqun'
  78. }
  79. ],
  80. tableData: [
  81. {
  82. name: '人际沟通: 如何更好地表达自己',
  83. shikanUrl: 'https://1111',
  84. hangye: '全行业',
  85. renqun: '职场新人'
  86. },
  87. {
  88. name: '如何向领导汇报行业',
  89. shikanUrl: '',
  90. hangye: '全行业',
  91. renqun: '职场新人'
  92. },
  93. {
  94. name: '职场生活游刃有余',
  95. shikanUrl: '',
  96. hangye: '全行业',
  97. renqun: '职场新人'
  98. },
  99. {
  100. name: '个人形象管理',
  101. shikanUrl: '',
  102. hangye: '全行业',
  103. renqun: '职场新人'
  104. },
  105. {
  106. name: '高效沟通',
  107. shikanUrl: '',
  108. hangye: '全行业',
  109. renqun: '职场新人'
  110. },
  111. {
  112. name: '如何向领导汇报行业',
  113. shikanUrl: '',
  114. hangye: '全行业',
  115. renqun: '职场新人'
  116. },
  117. {
  118. name: '如何向领导汇报行业',
  119. shikanUrl: '',
  120. hangye: '全行业',
  121. renqun: '职场新人'
  122. },
  123. {
  124. name: '如何向领导汇报行业',
  125. shikanUrl: '',
  126. hangye: '全行业',
  127. renqun: '职场新人'
  128. },
  129. ],
  130. curVideo: '',
  131. visible: false,
  132. }
  133. },
  134. computed: {
  135. gangwei() {
  136. return shengchancaigou
  137. }
  138. },
  139. methods: {
  140. shiKan({url}) {
  141. this.visible = true;
  142. this.curVideo = url;
  143. }
  144. }
  145. }
  146. </script>
  147. <style lang="scss" scoped>
  148. .client-banner-box {
  149. width: 100%;
  150. height: 736px;
  151. .client-platform-banner {
  152. height: 100%;
  153. width: 100%;
  154. }
  155. }
  156. .btn-groups {
  157. margin-top: 100px;
  158. text-align: center;
  159. margin-bottom: 210px;
  160. .btn-item {
  161. margin-right: 20px;
  162. }
  163. }
  164. .platform-course-list {
  165. h4 {
  166. font-size: 30px;
  167. font-weight: 800;
  168. color: #333;
  169. text-align: center;
  170. margin-bottom: 68px;
  171. }
  172. }
  173. @media (max-width: 768px) {
  174. .btn-groups {
  175. margin-top: 10%;
  176. margin-bottom: 10%;
  177. }
  178. .platform-course-list {
  179. h4 {
  180. font-size: 18px;
  181. font-weight: 800;
  182. color: #333;
  183. text-align: center;
  184. margin-bottom: 10%;
  185. margin-top: 15%;
  186. }
  187. }
  188. .client-nengli-box {
  189. margin-bottom: 5%;
  190. }
  191. }
  192. </style>