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.

138 lines
3.6 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 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">驾驶人科目一考试系统</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. let phone = uni.getStorageSync('loginInfo')?.phone
  40. onMounted(()=>{
  41. detectOrient('#beforeExam')
  42. })
  43. function goBack() {
  44. uni.navigateBack()
  45. }
  46. function getRandomNumber(min, max) {
  47. return Math.floor(Math.random() * (max - min + 1)) + min;
  48. }
  49. let randomNumber = getRandomNumber(1, 9);
  50. </script>
  51. <style lang="scss" scoped>
  52. image {
  53. display: block;
  54. width: 100%;
  55. height: 100%;
  56. }
  57. #beforeExam {
  58. .topBg {
  59. width: 100%;
  60. height: 146rpx;
  61. background: url('../../../static/images/beforeExamebg.png') no-repeat;
  62. background-size: 100% 100%;
  63. position: relative;
  64. .backIcon {
  65. position: absolute;
  66. left: 30rpx;
  67. top: 50%;
  68. transform: translateY(-50%);
  69. width: 40rpx;
  70. height: 40rpx;
  71. }
  72. .txt {
  73. font-weight: 500;
  74. font-size: 48rpx;
  75. color: #4298F3;
  76. text-stroke: 2rpx #FFFFFF;
  77. font-style: italic;
  78. -webkit-text-stroke: 2rpx #FFFFFF;
  79. text-align: center;
  80. line-height: 146rpx;
  81. }
  82. }
  83. .con {
  84. padding: 30rpx;
  85. }
  86. .conBg {
  87. background: #F7FBFE;
  88. border-radius: 12rpx;
  89. border: 1rpx solid #F0F0F0;
  90. .box {
  91. flex: 1;
  92. padding: 40rpx;
  93. &:last-child {
  94. border-left: 1px solid #F0F0F0;
  95. }
  96. .h6 {
  97. font-size: 32rpx;
  98. color: #333;
  99. font-weight: bold;
  100. margin-bottom: 24rpx;
  101. }
  102. .redt {
  103. font-size: 28rpx;
  104. color: #FA2C2C;
  105. margin-bottom: 28rpx;
  106. }
  107. .btn {
  108. width: 300rpx;
  109. height: 60rpx;
  110. background: #3776FF;
  111. border-radius: 30rpx;
  112. font-size: 28rpx;
  113. color: #fff;
  114. text-align: center;
  115. line-height: 60rpx;
  116. margin: 30rpx auto;
  117. }
  118. .text {
  119. font-size: 22rpx;
  120. color: #666;
  121. .txt {
  122. font-size: 24rpx;
  123. color: #333;
  124. margin: 4rpx 0;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. </style>