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.

185 lines
3.4 KiB

1 month ago
  1. <template>
  2. <view class="content">
  3. <u-navbar leftText=" " title="模拟考试成绩" :safeAreaInsetTop="true" :autoBack="true" :fixed="true"></u-navbar>
  4. <view class="topCard card">
  5. <view class="echartBox">
  6. </view>
  7. <view class="info_row">
  8. <view class="avatar">
  9. <!-- <image src="@/static/images/backIcon.png" mode=""></image> -->
  10. </view>
  11. <view class="txtInfo">
  12. <view class="name">用户名</view>
  13. <view class="carType">车型C1 (科目一)</view>
  14. </view>
  15. <view class="resStatus">考试不级格</view>
  16. </view>
  17. <view class="btnBox">
  18. <oneBtn text="快速提升通过率"></oneBtn>
  19. </view>
  20. </view>
  21. <view class="card">
  22. <view class="flex-b">
  23. <view class="leftT">预测考试通过率</view>
  24. <view class="rate"><span>12</span>%</view>
  25. </view>
  26. </view>
  27. <view class="card">
  28. <view class="lab">错题分类</view>
  29. <view class="ul">
  30. <view class="li" v-for="(item,index) in 4" :key="index">
  31. <view class="num">1</view>
  32. <view class="txt">驾驶证和机动车管理规定</view>
  33. <view class="rightBox">
  34. <view class="p">错3题</view>
  35. <u-icon name="arrow-right" color="#D9D9D9" size="14"></u-icon>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. </script>
  44. <style lang="scss" scoped>
  45. image {
  46. display: block;
  47. width: 100%;
  48. height: 100%;
  49. }
  50. .card {
  51. background: #FFFFFF;
  52. padding: 20rpx;
  53. border-radius: 20rpx;
  54. margin-top: 20rpx;
  55. }
  56. .content {
  57. width: 100%;
  58. background-color: #F6F7FA;
  59. padding: 100rpx 30rpx 30rpx 30rpx;
  60. min-height: 100vh;
  61. .topCard {
  62. .echartBox {
  63. }
  64. .info_row {
  65. display: flex;
  66. align-items: center;
  67. .avatar {
  68. background: url('../../../static/images/avatarbg.png') no-repeat;
  69. background-size: 100% 100%;
  70. width: 120rpx;
  71. height: 120rpx;
  72. }
  73. .txtInfo {
  74. width: 0;
  75. flex: 1;
  76. padding: 0 20rpx;
  77. .name {
  78. font-size: 36rpx;
  79. color: #333;
  80. font-weight: 600;
  81. }
  82. .carType {
  83. font-size: 28rpx;
  84. margin-top: 14rpx;
  85. }
  86. }
  87. .resStatus {
  88. width: 200rpx;
  89. height: 66rpx;
  90. background: linear-gradient(90deg, #FAE0A2 0%, #F6C86F 100%);
  91. border-radius: 33rpx;
  92. font-size: 28rpx;
  93. color: #6B4229;
  94. text-align: center;
  95. line-height: 66rpx;
  96. }
  97. }
  98. .btnBox {
  99. width: 100%;
  100. padding: 70rpx 80rpx 10rpx 80rpx;
  101. onebtn {
  102. }
  103. }
  104. }
  105. .card{
  106. .flex-b {
  107. padding: 20rpx 10rpx;
  108. .leftT {
  109. font-size: 36rpx;
  110. font-weight: 700;
  111. }
  112. .rate {
  113. font-size: 36rpx;
  114. color: #FF3333;
  115. text {
  116. font-size: 72rpx;
  117. font-weight: 700;
  118. }
  119. }
  120. }
  121. }
  122. .card {
  123. .lab {
  124. font-size: 32rpx;
  125. }
  126. .ul {
  127. padding-top: 30rpx;
  128. .li {
  129. width: 100%;
  130. display: flex;
  131. align-items: center;
  132. padding: 34rpx 0;
  133. .num {
  134. height: 32rpx;
  135. background: #F5C142;
  136. border-radius: 50%;
  137. padding: 0 10rpx;
  138. color: #fff;
  139. font-size: 24rpx;
  140. line-height: 32rpx;
  141. }
  142. .txt {
  143. flex: 1;
  144. width: 0;
  145. font-size: 28rpx;
  146. padding: 0 20rpx;
  147. }
  148. .rightBox {
  149. display: flex;
  150. align-items: center;
  151. .p {
  152. font-size: 24rpx;
  153. color: #FF3333;
  154. margin-right: 4rpx;
  155. }
  156. u-icon {
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. </style>