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.

175 lines
3.5 KiB

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