exam.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <template>
  2. <div class="client-exam-page client-platform-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">
  8. <div class="client-container mta-hidden-xs">
  9. <div class="banner-btn-groups">
  10. <onlineInformationBtn />
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- 产品体验 -->
  16. <div class="platform-products-experience client-container">
  17. <h4 class="client-title">产品体验</h4>
  18. <p class="client-subtitle-one-row">无序注册,即可免费体验青谷在线考试系统</p>
  19. <!-- 多端体验 -->
  20. <chanPinTiYan></chanPinTiYan>
  21. </div>
  22. <!-- 产品优势 -->
  23. <div class="platform-products-services client-container">
  24. <h4 class="client-title">产品优势</h4>
  25. <imgCardLv2 :option="item" v-for="(item,index) in productList" :key="index">
  26. <div class="btn-groups">
  27. <freeTrialBtn class="free-train-btn btn-item" v-if="item.mianfei" :myType="item.myType"/>
  28. <onlineInformationBtn class="online-information-btn btn-item" v-if="item.zixun"/>
  29. </div>
  30. </imgCardLv2>
  31. </div>
  32. <!-- 更多辅助功能 -->
  33. <div class="client-fuzhu-gongneng client-container">
  34. <h4>更多辅助功能</h4>
  35. <ul>
  36. <li>
  37. <i></i>
  38. <span>报名审核</span>
  39. </li>
  40. <li>
  41. <i></i>
  42. <span>发布证书</span>
  43. </li>
  44. <li>
  45. <i></i>
  46. <span>数据统计</span>
  47. </li>
  48. <li>
  49. <i></i>
  50. <span>断电续考</span>
  51. </li>
  52. </ul>
  53. </div>
  54. <!-- 新闻资讯 -->
  55. <newsComp2 :newsData="topCarousels"></newsComp2>
  56. </div>
  57. </template>
  58. <script>
  59. import freeTrialBtn from "~/components/common/freeTrialBtn";
  60. import onlineInformationBtn from "~/components/common/onlineInformationBtn";
  61. import newsComp2 from "~/components/common/newsComp2";
  62. import chanPinTiYan from "~/components/common/chanPinTiYan";
  63. import imgCardLv2 from "@/components/common/layout/imgDes/imgCardLv2";
  64. import {BannerImgs, classifys} from "~/defaultConfig"
  65. /**
  66. * @ 产品与服务 -> 考试系统
  67. */
  68. export default {
  69. name: "exam",
  70. layout: 'templateB',
  71. components: { freeTrialBtn, onlineInformationBtn, newsComp2, chanPinTiYan, imgCardLv2},
  72. async asyncData({$axios, store}) {
  73. const arr = [
  74. $axios.$post(`/home/news/carousel`, {'newsClassifyId': classifys.kaoshixitong.classify, 'keyword': classifys.kaoshixitong.keyword}),
  75. $axios.$post(`/home/banner/list`, {'code': BannerImgs.kaoshixitong}),
  76. ]
  77. const [res1, res2] = await Promise.all(arr);
  78. return {
  79. topCarousels: res1.data.data || [],
  80. bannerList: res2.data.data || [],
  81. }
  82. },
  83. head(){
  84. return {
  85. title: '在线考试平台_在线考试软件_试卷软件系统',
  86. meta: [
  87. {
  88. name: 'keywords',
  89. content: '考试平台,试卷系统,试卷软件'
  90. },
  91. {
  92. name:'description',
  93. content:'麦塔考试系统具有良好高并发性和访问安全部署、严格的考试监控防作弊功能、PC移动支持多终端,随时随地考试、丰富的考试管理功能。'
  94. }
  95. ],
  96. }
  97. },
  98. data() {
  99. return {
  100. productList: [
  101. {
  102. content: {
  103. title: '青谷云在线考试服务',
  104. list: [
  105. {
  106. value: '考试系统使用方便,操作简单,节约成本,无需独立开发',
  107. },
  108. {
  109. value: '在云平台直接搭建企业账号,邀请员工登录,即可享受完整的线上考试服务',
  110. },
  111. {
  112. value: '支持客观题自动判断,主观题后台人工阅卷。有效减少人力成本,提升时间小楼,降低费用成本',
  113. },
  114. ],
  115. order: 2,
  116. },
  117. img: {
  118. url: require('~/static/codeImage/code-jingli.png'),
  119. order: 1,
  120. },
  121. mianfei: true,
  122. zixun: true,
  123. shenqing: false,
  124. myType: 'kaoshi'
  125. },
  126. {
  127. content: {
  128. title: '强大的人员管理和考试功能',
  129. list: [
  130. {
  131. value: '考试系统使用方便,操作简单,节约成本,无需独立开发',
  132. },
  133. {
  134. value: '六大常用题型,批量导入;固定组卷,随机组卷,固定+随机综合组卷,涵盖错题,按难度程度抽题',
  135. },
  136. {
  137. value: '支持客观题自动判断,主观题后台人工阅卷。有效减少人力成本,提升时间小楼,降低费用成本',
  138. },
  139. ],
  140. order: 1,
  141. },
  142. img: {
  143. url: require('~/static/codeImage/code-jingli.png'),
  144. order: 2,
  145. },
  146. mianfei: true,
  147. zixun: true,
  148. shenqing: false,
  149. myType: 'kaoshi'
  150. },
  151. {
  152. content: {
  153. title: '全流程AI监考防作弊体系',
  154. list: [
  155. {
  156. value: '支持个性化定制登录背景、品牌、logo等,一键搭建属于您的个性化在线考试系统',
  157. },
  158. {
  159. value: '多屏监控画面展现考试全过程,考生的面部表情、一举一动在后台实时呈现',
  160. },
  161. {
  162. value: '随机组件、试题乱序、选择题选项乱序、超时强制交卷、防止切屏限制',
  163. },
  164. ],
  165. order: 2,
  166. },
  167. img: {
  168. url: require('~/static/codeImage/code-jingli.png'),
  169. order: 1,
  170. },
  171. mianfei: true,
  172. zixun: true,
  173. shenqing: false,
  174. myType: 'kaoshi'
  175. },
  176. {
  177. content: {
  178. title: '多端口个性化设置随心选择',
  179. list: [
  180. {
  181. value: '支持个性化定制登录背景、品牌、logo等,一键搭建属于您的个性化在线考试系统',
  182. },
  183. {
  184. value: '与三方平台无缝集成、支持OA、HR、ERP、教务、微信、钉钉等应用的对接',
  185. },
  186. {
  187. value: 'PC、APP、H5统一管理,数据互通,充分利用水平化时间,塑造学员高频率使用习惯',
  188. },
  189. ],
  190. order: 1,
  191. },
  192. img: {
  193. url: require('~/static/codeImage/code-jingli.png'),
  194. order: 2,
  195. },
  196. mianfei: true,
  197. zixun: true,
  198. shenqing: false,
  199. myType: 'kaoshi'
  200. }
  201. ],
  202. youkeFlag: false,// 控制游客系统是否维护中
  203. SystemWidthFlag: false,
  204. swiperOption: {
  205. pagination: {
  206. el: '.swiper-pagination',
  207. bulletClass: 'my-bullet-swiper', // 自定义设置默认类名
  208. bulletActiveClass: 'my-bullet-active-swiper', // 自定义滑块活跃类名
  209. clickable: true, // 点击当前滑块切换到对应的轮播图片
  210. },
  211. autoplay: {
  212. delay: 5000,
  213. },
  214. paginationClickable: true,
  215. speed: 800,
  216. loop: true,
  217. observer: true,
  218. observeParents: true,
  219. },
  220. }
  221. },
  222. methods: {
  223. // 游客系统试用
  224. ykFreeTrial() {
  225. if (this.youkeFlag) {
  226. // 没升级
  227. window.open('https://youkeksc.mtavip.com/kscmdist/#/youke')
  228. } else {
  229. // 升级中
  230. this.$message({customClass: 'phone-message-box', type: 'warning', message: '系统升级中,请稍后再试...'});
  231. }
  232. },
  233. // 判断是否为移动端
  234. isH5() {
  235. var browserWidth = document.documentElement.clientWidth;
  236. if (browserWidth <= 768) {
  237. return true;
  238. } else {
  239. return false;
  240. }
  241. },
  242. // 鼠标移入
  243. enterCode() {
  244. if (this.youkeFlag) {
  245. this.$refs.codeBtn.style.bottom = '90px';
  246. } else {
  247. this.$refs.codeBtn.style.bottom = '0';
  248. }
  249. },
  250. // 鼠标移出
  251. leaveCode() {
  252. this.$refs.codeBtn.style.bottom = '305px';
  253. },
  254. // 考试体验按钮
  255. KsTyBtn(btnUrl) {
  256. if (this.youkeFlag) {
  257. if (this.isH5()) {
  258. this.$router.push({name: 'copyUrl', query: {url: btnUrl,}});
  259. } else {
  260. window.open(btnUrl);
  261. }
  262. } else {
  263. if (this.isH5()) {
  264. // 升级中
  265. this.$message({customClass: 'phone-message-box', type: 'warning', message: '系统升级中,请稍后再试...'});
  266. } else {
  267. this.systemMaintainDl = true;
  268. }
  269. }
  270. },
  271. },
  272. created() {
  273. // 页面初始化
  274. this.$axios.$post('/home/youke/stop').then(res => {
  275. if (res.data === '1') {
  276. this.youkeFlag = false;
  277. } else {
  278. this.youkeFlag = true;
  279. }
  280. });
  281. },
  282. }
  283. </script>
  284. <style lang="scss" scoped>
  285. // 按钮
  286. .free-train-btn,.apply-btn{margin-right: 16px;}
  287. .btn-groups {
  288. margin-top: 48px;
  289. }
  290. // 辅助功能
  291. .client-fuzhu-gongneng {
  292. margin-top: 130px;
  293. margin-bottom: 120px;
  294. h4 {
  295. font-size: 30px;
  296. font-weight: 800;
  297. color: #333;
  298. text-align: center;
  299. margin-bottom: 140px;
  300. }
  301. ul {
  302. display: flex;
  303. justify-content: space-between;
  304. li {
  305. display: flex;
  306. flex-direction: column;
  307. justify-content: center;
  308. i {
  309. background-position: center;
  310. background-repeat: no-repeat;
  311. background-size: contain;
  312. display: inline-block;
  313. width: 123px;
  314. height: 123px;
  315. margin: 0 auto 20px;
  316. text-align: center;
  317. }
  318. span {
  319. color: #333;
  320. font-size: 20px;
  321. font-weight: 800;
  322. text-align: center;
  323. }
  324. &:nth-child(1) {
  325. i {
  326. background-image: url("~static/gangweiIcon/z108.png");
  327. }
  328. }
  329. &:nth-child(2) {
  330. i {
  331. background-image: url("~static/gangweiIcon/z109.png");
  332. }
  333. }
  334. &:nth-child(3) {
  335. i {
  336. background-image: url("~static/gangweiIcon/z110.png");
  337. }
  338. }
  339. &:nth-child(4) {
  340. i {
  341. background-image: url("~static/gangweiIcon/z111.png");
  342. }
  343. }
  344. }
  345. }
  346. }
  347. @media (max-width: 768px) {
  348. .btn-groups {
  349. display: flex;justify-content: center;margin-top: 30px;
  350. }
  351. .client-fuzhu-gongneng {
  352. margin-top: 130px;
  353. margin-bottom: 120px;
  354. h4 {
  355. font-size: 18px;
  356. font-weight: 800;
  357. color: #333;
  358. text-align: center;
  359. margin-bottom: 11%;
  360. }
  361. ul {
  362. display: flex;
  363. justify-content: space-between;
  364. flex-wrap: wrap;
  365. li {
  366. width: 50%;
  367. display: flex;
  368. flex-direction: column;
  369. justify-content: center;
  370. margin-bottom: 20px;
  371. i {
  372. background-position: center;
  373. background-repeat: no-repeat;
  374. background-size: contain;
  375. display: inline-block;
  376. width: 80px;
  377. height: 80px;
  378. margin: 0 auto 20px;
  379. text-align: center;
  380. }
  381. span {
  382. color: #333;
  383. font-size: 14px;
  384. font-weight: 800;
  385. text-align: center;
  386. }
  387. &:nth-child(1) {
  388. i {
  389. background-image: url("~static/gangweiIcon/z108.png");
  390. }
  391. }
  392. &:nth-child(2) {
  393. i {
  394. background-image: url("~static/gangweiIcon/z109.png");
  395. }
  396. }
  397. &:nth-child(3) {
  398. i {
  399. background-image: url("~static/gangweiIcon/z110.png");
  400. }
  401. }
  402. &:nth-child(4) {
  403. i {
  404. background-image: url("~static/gangweiIcon/z111.png");
  405. }
  406. }
  407. }
  408. }
  409. }
  410. }
  411. </style>