index.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  1. <template>
  2. <div class="client-index-page">
  3. <div style="display: none">
  4. <a :href="`${baseUrl}/pcdituye.html`"></a>
  5. <a :href="`${baseUrl}/pcsitemap.xml`"></a>
  6. </div>
  7. <!-- 首页banner栏 -->
  8. <div class="client-banner-box">
  9. <el-carousel trigger="click">
  10. <el-carousel-item v-for="(item,index) in bannerList" :key="index">
  11. <div @click="clickBanner(item)" :style="{backgroundImage: 'url(' + item.pic + ')'}" class="index-carousel-box"></div>
  12. </el-carousel-item>
  13. </el-carousel>
  14. </div>
  15. <!-- 发展历程 -->
  16. <div class="client-company-history">
  17. <div class="client-container">
  18. <ul>
  19. <li><div><p>2007<span>年</span></p><h4>公司创立于2007年</h4></div></li>
  20. <li><div><p>3000<span>+</span></p><h4>已与3000多家企业建立了合作关系</h4></div></li>
  21. <li><div><p>124,799<span>+</span></p><h4>平台用户已达到124799</h4></div></li>
  22. <li><div><p>30,000<span>+</span></p><h4>课件开发超30000课时</h4></div></li>
  23. </ul>
  24. </div>
  25. </div>
  26. <!-- 产品和服务 -->
  27. <div class="client-products-services">
  28. <div class="client-container">
  29. <h4 class="client-title">产品和服务</h4>
  30. <div class="products-services-box">
  31. <img :src="productsImg1" alt="考试系统" />
  32. <div class="products-services-content">
  33. <h5>考试系统</h5>
  34. <i></i>
  35. <p>麦塔考试平台满足不同行业考试考核需求:教育机构出题判卷、课后练习布置;企事业单位企业文化、业务水平提升</p>
  36. <div><a rel="nofollow" class="client-default-Btn" href="https://cdnks.mtavip.com/a/register?flug=1" target="_blank">免费试用</a><span class="client-default-Btn" @click="goExamPage">了解详情</span></div>
  37. </div>
  38. </div>
  39. <div class="products-services-box products-contrary-box">
  40. <img :src="productsImg2" alt="培训系统" />
  41. <div class="products-services-content">
  42. <h5>培训系统</h5>
  43. <i></i>
  44. <p>麦塔培训平台满足企业全流程培训场景,支持移动web端、PC端、APP端答题和学习,多种学习模式保障学习效果,结果及时反馈</p>
  45. <div><a rel="nofollow" class="client-default-Btn" href="https://cdnks.mtavip.com/a/register?flug=2" target="_blank">免费试用</a><span class="client-default-Btn" @click="goPeixunPage">了解详情</span></div>
  46. </div>
  47. </div>
  48. <div class="products-services-box">
  49. <img :src="productsImg3" alt="课件制作" />
  50. <div class="products-services-content">
  51. <h5>课件制作</h5>
  52. <i></i>
  53. <p>麦塔能够快速搭建企业单位、教育机构学习资源库,满足学习平台需求,针对目标对象的学习习惯和学习方式个性化开发课程</p>
  54. <div><div class="client-default-Btn" @click="applyFun">申请方案</div><span class="client-default-Btn" @click="goKechengPage">了解详情</span></div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <!-- 行业学习需求 -->
  60. <div class="client-demand-box">
  61. <div class="client-container">
  62. <h4 class="client-title">满足不同行业学习需求</h4>
  63. <el-tabs v-model="activeName" type="card" class="demand-box-tab">
  64. <el-tab-pane label="考试系统" name="first">
  65. <ul class="demand-tab-list demand-kaoshi-list">
  66. <li v-for="item in kaoshiLiArray">
  67. <div class="demand-content-box">{{item.demandNumber}}</div>
  68. <div class="demand-img-box"><i></i><h4>{{item.demandTitle}}</h4></div>
  69. <div class="demand-mask-box">
  70. <h4>{{item.demandTitle}}<a :href="`${baseUrl}/${item.demandHref}`"><span>了解详情</span><i></i></a></h4>
  71. <p>{{item.demandText}}</p>
  72. <div class="demand-icon-box">
  73. <a v-for="item2 in item.demandLinkBox" :href="`${baseUrl}/${item2.href}`"><img :src="item2.img" alt="客户案例"></a>
  74. </div>
  75. </div>
  76. </li>
  77. </ul>
  78. <a rel="nofollow" class="free-trial-default-btn" href="https://cdnks.mtavip.com/a/register?flug=1" target="_blank">免费试用</a>
  79. </el-tab-pane>
  80. <el-tab-pane label="培训系统" name="second">
  81. <ul class="demand-tab-list demand-peixun-list">
  82. <li v-for="item in peixunLiArray">
  83. <div class="demand-content-box">{{item.demandNumber}}</div>
  84. <div class="demand-img-box"><i></i><h4>{{item.demandTitle}}</h4></div>
  85. <div class="demand-mask-box">
  86. <h4>{{item.demandTitle}}<a :href="`${baseUrl}/${item.demandHref}`"><span>了解详情</span><i></i></a></h4>
  87. <p>{{item.demandText}}</p>
  88. <div class="demand-icon-box">
  89. <a v-for="item2 in item.demandLinkBox" :href="`${baseUrl}/${item2.href}`"><img :src="item2.img" alt="客户案例"></a>
  90. </div>
  91. </div>
  92. </li>
  93. </ul>
  94. <a rel="nofollow" class="free-trial-default-btn" href="https://cdnks.mtavip.com/a/register?flug=2" target="_blank">免费试用</a>
  95. </el-tab-pane>
  96. </el-tabs>
  97. </div>
  98. </div>
  99. <!-- 为什么选择我们 -->
  100. <div class="client-chose-box">
  101. <div class="client-container">
  102. <h4 class="client-title">为什么选择我们</h4>
  103. <ul class="chose-img-box">
  104. <li>
  105. <div>
  106. <span><img :src="choseImg1" alt="专业的顾问服务" /></span>
  107. <h5>专业的顾问服务</h5>
  108. </div>
  109. </li>
  110. <li>
  111. <div>
  112. <span><img :src="choseImg2" alt="完善的培训体系" /></span>
  113. <h5>完善的培训体系</h5>
  114. </div>
  115. </li>
  116. <li>
  117. <div>
  118. <span><img :src="choseImg3" alt="可靠的开发技术" style="margin-top: 65px;"/></span>
  119. <h5>可靠的开发技术</h5>
  120. </div>
  121. </li>
  122. <li>
  123. <div>
  124. <span><img :src="choseImg4" alt="成熟的运营能力" /></span>
  125. <h5>成熟的运营能力</h5>
  126. </div>
  127. </li>
  128. </ul>
  129. <a rel="nofollow" class="free-trial-default-btn" href="https://cdnks.mtavip.com/a/register?flug=1" target="_blank">免费试用</a>
  130. </div>
  131. </div>
  132. <!-- 新闻资讯 -->
  133. <div class="client-news-information">
  134. <h4 class="client-title">新闻资讯</h4>
  135. <div class="client-container">
  136. <div class="industry-information-box">
  137. <div class="industry-information-left">
  138. <img :src="topCarousels[0].pic" alt="新闻资讯" />
  139. <h4 @click="checkInfo(topCarousels[0])">{{ topCarousels[0].title }}<i></i></h4>
  140. <div><b>{{ topCarousels[0].yyyy }}</b><span>{{ topCarousels[0].mmdd }}</span></div>
  141. <p>{{ topCarousels[0].intro }}</p>
  142. </div>
  143. <div class="industry-information-right">
  144. <ul>
  145. <li v-for="(item, index) in topCarousels" v-if="index >= 1">
  146. <h4 @click="checkInfo(item)">
  147. <span>{{ item.yyyy }}</span>{{ item.title }}
  148. </h4>
  149. <p><span>{{ item.mmdd}}</span>{{ item.intro }}</p>
  150. </li>
  151. </ul>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <!-- 超过10万家客户的信任之选 -->
  157. <div class="client-customer-box">
  158. <div class="client-container">
  159. <h4 class="client-title">超过10万家客户的信任之选</h4>
  160. <ul class="customer-img-box">
  161. <li><img :src="customerImg1" alt="中国人民银行" /></li>
  162. <li><img :src="customerImg2" alt="汇丰" /></li>
  163. <li><img :src="customerImg3" alt="中国银行" /></li>
  164. <li><img :src="customerImg4" alt="中信银行" /></li>
  165. <li><img :src="customerImg5" alt="中国民生银行" /></li>
  166. <li><img :src="customerImg6" alt="astellas" /></li>
  167. <li><img :src="customerImg7" alt="今日头条" /></li>
  168. <li><img :src="customerImg8" alt="华图教育" /></li>
  169. <li><img :src="customerImg9" alt="步步高" /></li>
  170. <li><img :src="customerImg10" alt="小天才" /></li>
  171. <li><img :src="customerImg11" alt="华发股份" /></li>
  172. <li><img :src="customerImg12" alt="上海航空" /></li>
  173. <li><img :src="customerImg13" alt="中国国际航空公司" /></li>
  174. <li><img :src="customerImg14" alt="中国东方航空" /></li>
  175. <li><img :src="customerImg15" alt="深圳航空" /></li>
  176. <li><img :src="customerImg16" alt="中建八局" /></li>
  177. <li><img :src="customerImg17" alt="SANOFI" /></li>
  178. <li><img :src="customerImg18" alt="大连海事大学" /></li>
  179. <li><img :src="customerImg19" alt="南京银行" /></li>
  180. <li><img :src="customerImg20" alt="中国人民银行" /></li>
  181. </ul>
  182. </div>
  183. </div>
  184. <!-- 我们始终专注教育系统研发更懂用户需求 -->
  185. <div class="client-cert-box">
  186. <div class="client-container">
  187. <h4 class="client-title">我们始终专注教育系统研发更懂用户需求</h4>
  188. <div class="cert-img-box">
  189. <span><img :src="certImg3" alt="栋科课程管理系统" /></span>
  190. <span><img :src="certImg4" alt="栋科用户管理系统" /></span>
  191. <span><img :src="certImg7" alt="麦塔培训系统" /></span>
  192. <span><img :src="certImg6" alt="麦塔考试系统" /></span>
  193. <span><img :src="certImg8" alt="知识产权管理体系认证证书" /></span>
  194. </div>
  195. <a class="client-default-Btn" :href="`${baseUrl}/introduction`">了解更多</a>
  196. </div>
  197. </div>
  198. <el-dialog
  199. :close-on-click-modal="false"
  200. :visible.sync="telDl"
  201. @close="delDlClose"
  202. class="application-scheme-dialog"
  203. center>
  204. <i></i>
  205. <p>免费获得课程开发解决方案</p>
  206. <el-form :model="telChangeDate" status-icon :rules="telRules" ref="ruleTelForm" class="application-scheme-form">
  207. <el-form-item prop="tel">
  208. <el-input v-model="telChangeDate.tel" placeholder="请输入手机号" class="dialog-input-tel"></el-input>
  209. </el-form-item>
  210. <div id="your-dom-id" class="nc-container"></div>
  211. <el-form-item prop="verification">
  212. <div class="verification">
  213. <el-input v-model="telChangeDate.verification" placeholder="请输入验证码" class="dialog-input-code"></el-input>
  214. <el-button @click="checkVerification" :disabled="btnTextDisabled" class="dialog-code-btn">{{btnText}}</el-button>
  215. </div>
  216. </el-form-item>
  217. </el-form>
  218. <div class="application-scheme-btn" @click="dialogSave">申请方案</div>
  219. <span>免费热线:400-052-2130</span><a href="http://p.qiao.baidu.com/cps/chat?siteId=11735491&amp;userId=10530011" target="_blank">在线客服</a>
  220. </el-dialog>
  221. </div>
  222. </template>
  223. <script>
  224. import { mapGetters } from 'vuex';
  225. export default {
  226. name: 'index',
  227. layout: 'templateA',
  228. watchQuery: true,
  229. async fetch({ $axios, store, query }) {
  230. try {
  231. const { data } = await $axios.post('/home/links/list');
  232. store.commit('SetFooterYouQingLianJie', data.data.data);
  233. } catch (e) {
  234. }
  235. },
  236. async asyncData({ $axios, store }) {
  237. // 设置选中菜单
  238. store.commit('setActiveNav', '/');
  239. let [res1, res2] = await Promise.all([
  240. await $axios.$post(`/home/news/carousel`, { 'newsClassifyId': 1 }).then(res => {
  241. return res;
  242. }),
  243. await $axios.$post(`/home/banner/list`, { 'code': 1 }).then(res => {
  244. return res;
  245. }),
  246. ]);
  247. return {
  248. topCarousels: res1.data.data||[],
  249. bannerList: res2.data.data||[],
  250. };
  251. },
  252. data() {
  253. return {
  254. topCarousels2: [],
  255. // 产品和服务
  256. productsImg1: require(`~/static/images/client/index/index-products-kaoshi.png`),
  257. productsImg2: require(`~/static/images/client/index/index-products-peixun.png`),
  258. productsImg3: require(`~/static/images/client/index/index-products-kejian.png`),
  259. // 为什么选择我们
  260. choseImg1: require(`~/static/images/client/index/index-chose-service-icon.png`),
  261. choseImg2: require(`~/static/images/client/index/index-chose-system-icon.png`),
  262. choseImg3: require(`~/static/images/client/index/index-chose-tech-icon.png`),
  263. choseImg4: require(`~/static/images/client/index/index-chose-operate-icon.png`),
  264. // 客户logo
  265. customerImg1: require(`~/static/images/client/index/index-customer-img1.png`),
  266. customerImg2: require(`~/static/images/client/index/index-customer-img2.png`),
  267. customerImg3: require(`~/static/images/client/index/index-customer-img3.png`),
  268. customerImg4: require(`~/static/images/client/index/index-customer-img4.png`),
  269. customerImg5: require(`~/static/images/client/index/index-customer-img5.png`),
  270. customerImg6: require(`~/static/images/client/index/index-customer-img6.png`),
  271. customerImg7: require(`~/static/images/client/index/index-customer-img7.png`),
  272. customerImg8: require(`~/static/images/client/index/index-customer-img8.png`),
  273. customerImg9: require(`~/static/images/client/index/index-customer-img9.png`),
  274. customerImg10: require(`~/static/images/client/index/index-customer-img10.png`),
  275. customerImg11: require(`~/static/images/client/index/index-customer-img11.png`),
  276. customerImg12: require(`~/static/images/client/index/index-customer-img12.png`),
  277. customerImg13: require(`~/static/images/client/index/index-customer-img13.png`),
  278. customerImg14: require(`~/static/images/client/index/index-customer-img14.png`),
  279. customerImg15: require(`~/static/images/client/index/index-customer-img15.png`),
  280. customerImg16: require(`~/static/images/client/index/index-customer-img16.png`),
  281. customerImg17: require(`~/static/images/client/index/index-customer-img17.png`),
  282. customerImg18: require(`~/static/images/client/index/index-customer-img18.png`),
  283. customerImg19: require(`~/static/images/client/index/index-customer-img19.png`),
  284. customerImg20: require(`~/static/images/client/index/index-customer-img20.png`),
  285. // 证书图片
  286. certImg3: require(`~/static/images/client/index/index-cert-img3.jpg`),
  287. certImg4: require(`~/static/images/client/index/index-cert-img4.jpg`),
  288. certImg6: require(`~/static/images/client/index/index-cert-img6.jpg`),
  289. certImg7: require(`~/static/images/client/index/index-cert-img7.jpg`),
  290. certImg8: require(`~/static/images/client/index/index-cert-img8.jpg`),
  291. activeIndex: '首页',
  292. activeName: 'first',// tab页签
  293. kaoshiLiArray: [
  294. {
  295. demandNumber:'01',
  296. demandTitle:'企事业单位',
  297. demandHref: 'government',
  298. demandText: '无论是国企还是私企,每年都要举行年度考核、党建考核等各种不同形式的考试。而传统考试方式,从出题、组卷、印刷,到安排场地、试卷分发等,成本较高,不能完全适应现代企业管理模式。',
  299. demandLinkBox: [
  300. {
  301. img: require(`~/static/images/client/index/index-demand-icon1-1.png`),
  302. href: 'government',
  303. },
  304. {
  305. img: require(`~/static/images/client/index/index-demand-icon1-2.png`),
  306. href: 'government',
  307. },
  308. ],
  309. },
  310. {
  311. demandNumber:'02',
  312. demandTitle:'信息产业',
  313. demandHref: 'information',
  314. demandText: '近年来我国互联网继续保持增长态势,网络产业已经从过去的吸引眼球上逐渐转向以“盈利”为中心。如网络游戏、网上交易、网络广告、网络教育、网络短信等,新兴应用层出不穷,将推动产业融合发展和转型升级。',
  315. demandLinkBox: [
  316. {
  317. img: require(`~/static/images/client/index/index-demand-icon2-1.png`),
  318. href: 'information',
  319. },
  320. {
  321. img: require(`~/static/images/client/index/index-demand-icon2-2.png`),
  322. href: 'information',
  323. },
  324. ],
  325. },
  326. {
  327. demandNumber:'03',
  328. demandTitle:'能源化工',
  329. demandHref: 'energy',
  330. demandText: '信息化在社会的各行各业迅速发展,在石油、石化和煤炭等大型国有企业中要以信息化带动工业化、自动化,应用信息技术改造提升能源企业,加快企业信息化进程,提高信息技术应用水平。',
  331. demandLinkBox: [
  332. {
  333. img: require(`~/static/images/client/index/index-demand-icon3-1.png`),
  334. href: 'energy',
  335. },
  336. {
  337. img: require(`~/static/images/client/index/index-demand-icon3-2.png`),
  338. href: 'energy',
  339. },
  340. {
  341. img: require(`~/static/images/client/index/index-demand-icon3-3.png`),
  342. href: 'energy',
  343. },
  344. {
  345. img: require(`~/static/images/client/index/index-demand-icon3-4.png`),
  346. href: 'energy',
  347. },
  348. ],
  349. },
  350. {
  351. demandNumber:'04',
  352. demandTitle:'金融保险',
  353. demandHref: 'financial',
  354. demandText: '金融无处不在并已形成一个庞大体系,金融学涉及的范畴、分支和内容非常广,对员工的知识储备要求较高,相对的考核难度也较大。所以金融保险业更需要考核数据来作为依据,帮助提升业务能力。',
  355. demandLinkBox: [
  356. {
  357. img: require(`~/static/images/client/index/index-demand-icon4-1.png`),
  358. href: 'financial',
  359. },
  360. {
  361. img: require(`~/static/images/client/index/index-demand-icon4-2.png`),
  362. href: 'financial',
  363. },
  364. ],
  365. },
  366. {
  367. demandNumber:'05',
  368. demandTitle:'交通运输',
  369. demandHref: 'traffic',
  370. demandText: '由于交通行业以技术先行,企业越来越需要具有扎实的汽车运用技术、交通运输系统规划与管理、物流系统工程等方面专业知识,并能独立从事汽车运用与管理的复合型高级工程技术人才,人才的培养格外重要。',
  371. demandLinkBox: [
  372. {
  373. img: require(`~/static/images/client/index/index-demand-icon5-1.png`),
  374. href: 'traffic',
  375. },
  376. {
  377. img: require(`~/static/images/client/index/index-demand-icon5-2.png`),
  378. href: 'traffic',
  379. },
  380. ],
  381. },
  382. {
  383. demandNumber:'06',
  384. demandTitle:'教育培训',
  385. demandHref: 'education',
  386. demandText: '教培行业存在的教师教学水平参差不齐,教学质量难以提升等问题,麦塔不仅是考试出题软件,还是在线教学考试系统,非常适合培训机构前期营销获客以及后期模拟考试的场景。',
  387. demandLinkBox: [
  388. {
  389. img: require(`~/static/images/client/index/index-demand-icon6-1.png`),
  390. href: 'education',
  391. },
  392. {
  393. img: require(`~/static/images/client/index/index-demand-icon6-2.png`),
  394. href: 'education',
  395. },
  396. {
  397. img: require(`~/static/images/client/index/index-demand-icon6-3.png`),
  398. href: 'education',
  399. },
  400. ],
  401. },
  402. ],
  403. peixunLiArray: [
  404. {
  405. demandNumber:'01',
  406. demandTitle:'食品餐饮',
  407. demandHref: 'restaurant',
  408. demandText: '随着社会经济的不断发展,餐饮文化的传播将越来越国际化和市场化。如何应对蓬勃发展的餐饮形势,不仅只是餐饮企业所面对的问题,同时也是烹饪教育应该思考的问题。',
  409. demandLinkBox: [
  410. {
  411. img: require(`~/static/images/client/index/index-demand-icon7-1.png`),
  412. href: 'restaurant',
  413. },
  414. {
  415. img: require(`~/static/images/client/index/index-demand-icon7-2.png`),
  416. href: 'restaurant',
  417. },
  418. ],
  419. },
  420. {
  421. demandNumber:'02',
  422. demandTitle:'教育培训',
  423. demandHref: 'trainEducation',
  424. demandText: '教培行业存在的教师教学水平参差不齐,教学质量难以提升等问题,麦塔不仅是考试出题软件,还是在线教学考试系统,非常适合培训机构前期营销获客以及后期模拟考试的场景。',
  425. demandLinkBox: [
  426. {
  427. img: require(`~/static/images/client/index/index-demand-icon8-1.png`),
  428. href: 'trainEducation',
  429. },
  430. {
  431. img: require(`~/static/images/client/index/index-demand-icon8-2.png`),
  432. href: 'trainEducation',
  433. },
  434. ],
  435. },
  436. {
  437. demandNumber:'03',
  438. demandTitle:'医疗行业',
  439. demandHref: 'medical',
  440. demandText: '医学类考试种类繁多,全国各级医学教育机构,如医学院,卫校,护校的本科,研究生,大中专教育培训考试等,一些医学高等院校的附属医院同时还有本科,研究生在校生的教学考试工作等。',
  441. demandLinkBox: [
  442. {
  443. img: require(`~/static/images/client/index/index-demand-icon9-1.png`),
  444. href: 'medical',
  445. },
  446. {
  447. img: require(`~/static/images/client/index/index-demand-icon9-2.png`),
  448. href: 'medical',
  449. },
  450. ],
  451. },
  452. {
  453. demandNumber:'04',
  454. demandTitle:'企事业单位',
  455. demandHref: 'trainGovernment',
  456. demandText: '无论是国企还是私企,每年都要举行年度考核、党建考核等各种不同形式的考试。而传统考试方式,从出题、组卷、印刷,到安排场地、试卷分发等,成本较高,不能完全适应现代企业管理模式。',
  457. demandLinkBox: [
  458. {
  459. img: require(`~/static/images/client/index/index-demand-icon10-1.png`),
  460. href: 'trainGovernment',
  461. },
  462. {
  463. img: require(`~/static/images/client/index/index-demand-icon10-2.png`),
  464. href: 'trainGovernment',
  465. },
  466. ],
  467. },
  468. {
  469. demandNumber:'05',
  470. demandTitle:'能源化工',
  471. demandHref: 'trainEnergy',
  472. demandText: '信息化在社会的各行各业迅速发展,在石油、石化和煤炭等大型国有企业中要以信息化带动工业化、自动化,应用信息技术改造提升能源企业,加快企业信息化进程,提高信息技术应用水平。',
  473. demandLinkBox: [
  474. {
  475. img: require(`~/static/images/client/index/index-demand-icon11-1.png`),
  476. href: 'trainEnergy',
  477. },
  478. {
  479. img: require(`~/static/images/client/index/index-demand-icon11-2.png`),
  480. href: 'trainEnergy',
  481. },
  482. {
  483. img: require(`~/static/images/client/index/index-demand-icon11-3.png`),
  484. href: 'trainEnergy',
  485. },
  486. ],
  487. },
  488. ],
  489. btnTextDisabled: false,
  490. telDl: false,
  491. btnText: '获取验证码',
  492. countdown: 60, // 60秒倒计时
  493. sliderData: {},
  494. appKey: 'FFFF0N00000000007EC0',
  495. telChangeDate: {},
  496. telRules: {
  497. tel: [
  498. { trigger: 'blur', required: true, message: '请输入手机号' },
  499. ],
  500. verification: [
  501. { trigger: 'blur', required: true, message: '请输入验证码' },
  502. ],
  503. },
  504. };
  505. },
  506. head(){
  507. return {
  508. title: '在线考试系统_在线培训系统_在线答题系统_大连栋科软件工程有限公司',
  509. meta: [
  510. {
  511. name: 'description',
  512. content: '麦塔在线考试系统和在线培训系统是由大连栋科软件工程有限公司历经多年独立研发,有完全自主知识产权的在线考试系统、在线培训系统。麦塔在线答题系统、在线学习系统全面支持移动端,栋科10年教育软件开发经验,10大功能模块,365天实时跟踪服务。麦塔无纸化考试系统节省30%的考试成本,跨平台支持手机端考试、练习!'
  513. },
  514. {
  515. name: 'mobile-agent',
  516. content: 'format=html5;url=https://m.mtavip.com'
  517. },
  518. {
  519. 'http-equiv': 'Cache-Control',
  520. content: 'no-transform'
  521. },
  522. ],
  523. link:[
  524. {
  525. rel:'alternate',
  526. media:'only screen and(max-width: 640px)',
  527. href:'https://m.mtavip.com'
  528. }
  529. ]
  530. }
  531. },
  532. methods: {
  533. clickBanner(data){
  534. if(data.url){
  535. window.open(data.url)
  536. }
  537. },
  538. applyFun() {
  539. this.telDl = true;
  540. this.sliderFun();
  541. },
  542. dialogSave(){
  543. this.$refs.ruleTelForm.validate((valid) => {
  544. if (valid) {
  545. // 请求后台
  546. const options = {
  547. phone: this.telChangeDate.tel,
  548. code: this.telChangeDate.verification,
  549. };
  550. this.$axios.$post('/develop/add',options).then(res=>{
  551. if (res.code === 0 && res.data) {
  552. this.telDl = false;
  553. this.$message.success('申请成功');
  554. } else {
  555. this.$message.error('申请失败');
  556. }
  557. });
  558. }
  559. });
  560. },
  561. delDlClose(){
  562. this.telDl =false
  563. this.$refs.ruleTelForm.resetFields();
  564. __nc.reset();
  565. },
  566. /**
  567. * 串联加载指定的脚本
  568. * 串联加载[异步]逐个加载,每个加载完成后加载下一个
  569. * 全部加载完成后执行回调
  570. * @param array|string 指定的脚本们
  571. * @param function 成功后回调的函数
  572. * @return array 所有生成的脚本元素对象数组
  573. * 异步加载js后运行回调函数callback / scripts 为数组或字符串
  574. */
  575. seriesLoadScripts(scripts, callback) {
  576. if (typeof (scripts) != 'object') {
  577. var scripts = [scripts];
  578. }
  579. var HEAD = document.getElementsByTagName('head').item(0) || document.documentElement;
  580. var s = new Array(), last = scripts.length - 1, recursiveLoad = function (i) { //递归
  581. s[i] = document.createElement('script');
  582. s[i].setAttribute('type', 'text/javascript');
  583. s[i].onload = s[i].onreadystatechange = function () { //Attach handlers for all browsers
  584. if (!/*@cc_on!@*/0 || this.readyState == 'loaded' || this.readyState == 'complete') {
  585. this.onload = this.onreadystatechange = null;
  586. this.parentNode.removeChild(this);
  587. if (i != last) {
  588. recursiveLoad(i + 1);
  589. } else if (typeof (callback) == 'function') {
  590. callback();
  591. }
  592. }
  593. };
  594. s[i].setAttribute('src', scripts[i]);
  595. HEAD.appendChild(s[i]);
  596. };
  597. recursiveLoad(0);
  598. },
  599. // 滑块
  600. sliderFun() {
  601. const nc_token = [this.appKey, (new Date()).getTime(), Math.random()].join(':');
  602. console.log(nc_token);
  603. const NC_Opt = {
  604. //声明滑动验证需要渲染的目标元素ID。
  605. renderTo: '#your-dom-id',
  606. //应用类型标识。它和使用场景标识(scene字段)一起决定了滑动验证的业务场景与后端对应使用的策略模型。您可以在人机验证控制台的配置管理页签找到对应的appkey字段值,请务必正确填写。
  607. appkey: this.appKey,
  608. //使用场景标识。它和应用类型标识(appkey字段)一起决定了滑动验证的业务场景与后端对应使用的策略模型。您可以在人机验证控制台的配置管理页签找到对应的scene值,请务必正确填写。
  609. scene: 'nc_message',
  610. //滑动验证码的主键,请勿将该字段定义为固定值。确保每个用户每次打开页面时,其token值都是不同的。系统默认的格式为:”您的appkey”+”时间戳”+”随机数”。
  611. token: nc_token,
  612. //滑动条的宽度。
  613. customWidth: 300,
  614. //业务键字段,可为空。为便于线上问题的排查,建议您按照线上问题定位文档中推荐的方法配置该字段值。
  615. trans: { 'key1': 'code0' },
  616. //通过Dom的ID属性自动填写trans业务键,可为空。建议您按照线上问题定位文档中推荐的方法配置该字段值。
  617. elementID: ['usernameID'],
  618. //是否自定义配置底层采集组件。如无特殊场景,请使用默认值(0),即不自定义配置底层采集组件。
  619. is_Opt: 0,
  620. //语言。PC端Web页面场景默认支持18国语言,详细配置方法请参见自定义文案与多语言文档。
  621. language: 'cn',
  622. //是否启用。一般情况,保持默认值(true)即可。
  623. isEnabled: true,
  624. //内部网络请求的超时时间。一般情况建议保持默认值(3000ms)。
  625. timeout: 3000,
  626. //允许服务器超时重复次数,默认5次。超过重复次数后将触发报错。
  627. times: 5,
  628. //用于自定义滑动验证各项请求的接口地址。一般情况,请勿配置该参数。
  629. apimap: {
  630. // 'analyze': '//a.com/nocaptcha/analyze.jsonp',
  631. // 'get_captcha': '//b.com/get_captcha/ver3',
  632. // 'get_captcha': '//pin3.aliyun.com/get_captcha/ver3'
  633. // 'get_img': '//c.com/get_img',
  634. // 'checkcode': '//d.com/captcha/checkcode.jsonp',
  635. // 'umid_Url': '//e.com/security/umscript/3.2.1/um.js',
  636. // 'uab_Url': '//aeu.alicdn.com/js/uac/909.js',
  637. // 'umid_serUrl': 'https://g.com/service/um.json'
  638. },
  639. //前端滑动验证通过时会触发该回调参数。您可以在该回调参数中将请求标识(token)、会话ID(sessionid)、签名串(sig)字段记录下来,随业务请求一同发送至您的服务端调用验签。
  640. callback: (data) => {
  641. this.sliderData = Object.assign({}, data, {
  642. appkey: NC_Opt.appkey,
  643. scene: NC_Opt.scene,
  644. });
  645. console.log( this.sliderData);
  646. },
  647. };
  648. let date11 = () => {
  649. let _date = new Date();
  650. let year = _date.getFullYear().toString();
  651. let month = _date.getMonth().toString();
  652. let day = _date.getDate().toString();
  653. let a = _date.getHours().toString();
  654. let b = _date.getMinutes().toString();
  655. let c = _date.getSeconds().toString();
  656. return year + month + day + a + b + c;
  657. };
  658. let c = date11();
  659. const scripts = [
  660. `https://g.alicdn.com/sd/ncpc/nc.js?t=${c}`,
  661. ];
  662. this.seriesLoadScripts(scripts, function () {
  663. var nc = new noCaptcha(NC_Opt);
  664. nc.upLang('cn', {
  665. _startTEXT: '请按住滑块,拖动到最右边',
  666. _yesTEXT: '验证通过',
  667. _error300: '哎呀,出错了,点击<a href="javascript:__nc.reset()">刷新</a>再来一次',
  668. _errorNetwork: '网络不给力,请<a href="javascript:__nc.reset()">点击刷新</a>',
  669. });
  670. });
  671. },
  672. // 倒计时60秒
  673. setTime() {
  674. if (this.countdown === 0) {
  675. this.btnTextDisabled = false;
  676. this.btnText = '免费获取验证码';
  677. this.countdown = 60;
  678. } else {
  679. this.btnTextDisabled = true;
  680. this.btnText = '重新发送(' + this.countdown + 's)';
  681. this.countdown--;
  682. setTimeout(() => {
  683. this.setTime();
  684. }, 1000);
  685. }
  686. },
  687. // 验证码
  688. checkVerification() {
  689. if (this.sliderData.appkey === undefined) {
  690. return;
  691. }
  692. this.$axios.$post(`/develop/exists`,{ phone: this.telChangeDate.tel}).then(res=>{
  693. if (res.code === 0 && res.data) {
  694. let req = {
  695. 'appkey': this.sliderData.appkey,
  696. 'phone': this.telChangeDate.tel,
  697. 'scene': this.sliderData.scene,
  698. 'sessionid': this.sliderData.csessionid,
  699. 'sig': this.sliderData.sig,
  700. 'token': this.sliderData.token,
  701. 'type': 0,
  702. }
  703. this.$axios.$post('/sendCode',req).then(res=>{
  704. if (res.code === 0 && res.data) {
  705. this.setTime();
  706. }
  707. })
  708. } else {
  709. this.$message.error('手机号已存在');
  710. return false;
  711. }
  712. })
  713. },
  714. goExamPage(){
  715. this.$router.push({ name: 'examsystem' });
  716. },
  717. goPeixunPage(){
  718. this.$router.push({ name: 'trainsystem' });
  719. },
  720. goKechengPage(){
  721. this.$router.push({ name: 'courseware' });
  722. },
  723. checkInfo(data) {
  724. const opt = {
  725. id: data.code,
  726. };
  727. this.$router.push({ name: 'news-id', params: opt });
  728. },
  729. },
  730. computed: {
  731. baseUrl() {
  732. return this.getBaseUrl;
  733. },
  734. ...mapGetters(['getBaseUrl']),
  735. },
  736. };
  737. </script>
  738. <style></style>