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.

196 lines
3.9 KiB

2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
3 weeks ago
3 weeks ago
1 month ago
2 months ago
1 month ago
3 weeks ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
3 weeks ago
1 month ago
2 months ago
1 month ago
2 months ago
  1. <template>
  2. <view class="content">
  3. <up-navbar leftText=" " title="" :safeAreaInsetTop="false" :autoBack="true">
  4. <template #center>
  5. <view class="u-nav-slot flex">
  6. <view class="btn" @click="changeNav(1)" :class="{active: currentNav==1}">答题模式</view>
  7. <view class="btn" @click="changeNav(2)" :class="{active: currentNav==2}">背题模式</view>
  8. </view>
  9. </template>
  10. </up-navbar>
  11. <view class="con padding">
  12. <view class="h1_row">
  13. <text class="tag">单选</text>
  14. <text class="h1">机动车驾驶人在实习期内驾驶机动车不得牵引挂车</text>
  15. </view>
  16. <view class="option">
  17. <view class="optionItem flex">
  18. <view class="icon">
  19. <image src="@/static/logo.png" mode=""></image>
  20. </view>
  21. <view class="text">正确</view>
  22. </view>
  23. </view>
  24. <view class="answer flex">
  25. <view class="ans">正确答案是<text>B</text></view>
  26. <view class="ans">您的答案是<text>B</text></view>
  27. </view>
  28. <view class="btn_row flex-b">
  29. <view class="btn border" @click="$goPage('/pages/exercises/lastPage/lastPage')">上一题</view>
  30. <view class="btn bg">下一题</view>
  31. </view>
  32. <view class="analysis">
  33. <view class="tit">题目解析</view>
  34. <view class="txt">解析解析解析解析解析解析解析解析解析解析解析解析</view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. currentNav: '1'
  44. }
  45. },
  46. methods: {
  47. changeNav(val) {
  48. console.log(window)
  49. if(this.currentNav == val) return
  50. this.currentNav = val
  51. },
  52. goEmam() {
  53. uni.navigateTo({
  54. // url: '/pages/exercises/exam/exam',
  55. // url: '/pages/exercises/beforeExam/beforeExam',
  56. // url: '/pages/exercises/examResults/examResults',
  57. // url: '/pages/exercises/wrongQuestion/wrongQuestion',
  58. // url: '/pages/exercises/theoryStudy/theoryStudy',
  59. url: '/pages/vip/vipEntry/vipEntry'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. image {display: block;width: 100%;height: 100%;}
  67. .content {
  68. padding: 120rpx 0 0 0;
  69. .u-nav-slot {
  70. width: 306rpx;
  71. height: 54rpx;
  72. border-radius: 10rpx;
  73. border: 1px solid #333333;
  74. display: flex;
  75. .btn {
  76. font-size: 24rpx;
  77. color: #333333;
  78. flex: 1;
  79. text-align: center;
  80. line-height: 54rpx;
  81. &.active {
  82. background-color: #333333;
  83. color: #fff;
  84. }
  85. }
  86. }
  87. .btn_row {
  88. padding: 100rpx 0 50rpx 0;
  89. .btn {
  90. width: 44%;
  91. height: 76rpx;
  92. border-radius: 38rpx;
  93. border: 1rpx solid $themC;
  94. line-height: 76rpx;
  95. text-align: center;
  96. font-size: 28rpx;
  97. color: $themC;
  98. &.bg {
  99. background: #3776FF;
  100. border-radius: 38rpx;
  101. color: #fff;
  102. }
  103. }
  104. }
  105. .con {
  106. .h1_row {
  107. margin-bottom: 50rpx;
  108. .tag {
  109. display: inline-block;
  110. // width: 66px;
  111. height: 36rpx;
  112. line-height: 36rpx;
  113. padding: 4rpx 6rpx;
  114. background: #63C168;
  115. border-radius: 6rpx;
  116. margin-top: -2rpx;
  117. margin-right: 16rpx;
  118. font-size: 28rpx;
  119. color: #fff;
  120. }
  121. text.h1 {
  122. font-size: 36rpx;
  123. }
  124. }
  125. .option {
  126. width: 100%;
  127. .optionItem {
  128. margin-bottom: 50rpx;
  129. align-items: center;
  130. .icon {
  131. width: 56rpx;
  132. height: 56rpx;
  133. margin-right: 36rpx;
  134. image {
  135. border-radius: 50%;
  136. }
  137. }
  138. .text {
  139. font-size: 32rpx;
  140. }
  141. }
  142. }
  143. .answer {
  144. height: 90rpx;
  145. background: #F4F4F4;
  146. line-height: 90rpx;
  147. padding: 0 30rpx;
  148. margin-top: 20rpx;
  149. .ans {
  150. margin-right: 60rpx;
  151. text {
  152. color: red;
  153. }
  154. }
  155. }
  156. .analysis {
  157. margin-top: 60rpx;
  158. .tit {
  159. font-weight: 700;
  160. font-size: 32rpx;
  161. position: relative;
  162. padding-left: 30rpx;
  163. &::after {
  164. content: '';
  165. position: absolute;
  166. left: 0;
  167. top: 8rpx;
  168. width: 6rpx;
  169. height: 30rpx;
  170. background: linear-gradient(0deg, #43EA80 0%, #38F8D4 100%);
  171. border-radius: 3rpx;
  172. }
  173. }
  174. .txt {
  175. margin-top: 39rpx;
  176. font-size: 32rpx;
  177. color: #333333;
  178. }
  179. }
  180. }
  181. }
  182. </style>