You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
3.7 KiB

3 months ago
3 months ago
1 week ago
3 months ago
1 week ago
3 months ago
1 week ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="content" id="beforeExam">
  3. <view class="topBg">
  4. <view class="backIcon" @click="goBack">
  5. <image src="@/static/images/backIcon.png" mode="aspectFill"></image>
  6. </view>
  7. <view class="txt">驾驶人科目{{ usecarStore.carInfo.stepType==1?'一': '四'}}考试系统</view>
  8. </view>
  9. <view class="con">
  10. <view class="conBg flex">
  11. <view class="box">
  12. <view class="h6">考试须知</view>
  13. <view class="text">
  14. <view class="txt">1.遵守考场纪律服从监考人员指挥</view>
  15. <view class="txt">2.进入考场手机关机禁止抽烟禁止吃零食</view>
  16. <view class="txt">3.未经工作人员允许考生禁止随意出入考场</view>
  17. <view class="txt">4.考场内禁止大声喧哗禁止随意走动</view>
  18. <view class="txt">5.考试中认真答题不准交头接耳</view>
  19. <view class="txt">6.考试中不准冒名顶替不准弄虚作假</view>
  20. <view class="txt">7.注意考场卫生禁止随地吐痰禁止乱扔纸屑</view>
  21. <view class="txt">8.爱护公物及考试设备</view>
  22. </view>
  23. </view>
  24. <view class="box">
  25. <view class="h6">理论考试0{{ randomNumber }}号考台</view>
  26. <!-- <view class="redt">身份证号123456789123456789</view> -->
  27. <view class="redt">考生{{ phone }}</view>
  28. <view class="btn" @click="$goPage('/pages/exercises/exam/exam?randomNumber='+ randomNumber)">开始考试</view>
  29. <view class="redt">点击开始考试按钮开始考试!</view>
  30. <view class="text">操作提示每题考试答案确定后点击下一题电脑立即判定所选答案如选择错误系统将提示正确答案提示后不允许修改答案</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script setup>
  37. import { detectOrient } from '@/utils/utils.js'
  38. import { ref, onMounted, nextTick } from 'vue'
  39. import carStore from '@/store/modules/car.js'
  40. let usecarStore = carStore()
  41. let phone = uni.getStorageSync('loginInfo')?.phone
  42. onMounted(()=>{
  43. detectOrient('#beforeExam')
  44. })
  45. function goBack() {
  46. uni.navigateBack()
  47. }
  48. function getRandomNumber(min, max) {
  49. return Math.floor(Math.random() * (max - min + 1)) + min;
  50. }
  51. let randomNumber = getRandomNumber(1, 9);
  52. </script>
  53. <style lang="scss" scoped>
  54. image {
  55. display: block;
  56. width: 100%;
  57. height: 100%;
  58. }
  59. #beforeExam {
  60. .topBg {
  61. width: 100%;
  62. height: 146rpx;
  63. background: url('../../../static/images/beforeExamebg.png') no-repeat;
  64. background-size: 100% 100%;
  65. position: relative;
  66. .backIcon {
  67. position: absolute;
  68. left: 30rpx;
  69. top: 50%;
  70. transform: translateY(-50%);
  71. width: 40rpx;
  72. height: 40rpx;
  73. }
  74. .txt {
  75. font-weight: 500;
  76. font-size: 48rpx;
  77. color: #4298F3;
  78. text-stroke: 2rpx #FFFFFF;
  79. font-style: italic;
  80. -webkit-text-stroke: 2rpx #FFFFFF;
  81. text-align: center;
  82. line-height: 146rpx;
  83. }
  84. }
  85. .con {
  86. padding: 30rpx;
  87. }
  88. .conBg {
  89. background: #F7FBFE;
  90. border-radius: 12rpx;
  91. border: 1rpx solid #F0F0F0;
  92. .box {
  93. flex: 1;
  94. padding: 40rpx;
  95. &:last-child {
  96. border-left: 1px solid #F0F0F0;
  97. }
  98. .h6 {
  99. font-size: 32rpx;
  100. color: #333;
  101. font-weight: bold;
  102. margin-bottom: 24rpx;
  103. }
  104. .redt {
  105. font-size: 28rpx;
  106. color: #FA2C2C;
  107. margin-bottom: 28rpx;
  108. }
  109. .btn {
  110. width: 300rpx;
  111. height: 60rpx;
  112. background: #3776FF;
  113. border-radius: 30rpx;
  114. font-size: 28rpx;
  115. color: #fff;
  116. text-align: center;
  117. line-height: 60rpx;
  118. margin: 30rpx auto;
  119. }
  120. .text {
  121. font-size: 22rpx;
  122. color: #666;
  123. .txt {
  124. font-size: 24rpx;
  125. color: #333;
  126. margin: 4rpx 0;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. </style>