exam.vue 9.2 KB

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