report.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="safeArea">
  3. <view class="reportWrap">
  4. <view class="reportMain">
  5. <view class="title">试卷名称可换行我也不知道最多多少个字</view>
  6. <view class="time">交卷时间:2021/10/22 17:24</view>
  7. <view class="info">
  8. <view class="left">
  9. <view class="val">100<text>%</text></view>
  10. <view class="name">正确率</view>
  11. <view class="tip">不含简答/案例题</view>
  12. </view>
  13. <view class="right">
  14. <view class="item">
  15. <view class="label">
  16. <u-icon class="icon" name="checkmark" color="#16D48B"></u-icon>正确题数
  17. </view>
  18. <view class="num">3</view>
  19. </view>
  20. <view class="item">
  21. <view class="label">
  22. <u-icon class="icon" name="close" color="#FF3B30"></u-icon>错误题数
  23. </view>
  24. <view class="num1">3</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="btnBox">
  29. <view class="btn">错题解析</view>
  30. <view class="btn">全部解析</view>
  31. <view class="btn">重新练习</view>
  32. <view class="btn no">继续练习</view>
  33. </view>
  34. </view>
  35. <view class="reportBt">
  36. <view class="item">
  37. <view class="title">试卷得分<text class="sub">(不含简答和案例题)</text></view>
  38. <view class="progress">
  39. </view>
  40. </view>
  41. <view class="item">
  42. <view class="title">答题时长</view>
  43. <view class="progress">
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import { mapGetters } from 'vuex';
  52. export default {
  53. components: {},
  54. data() {
  55. return {
  56. };
  57. },
  58. onPullDownRefresh() {},
  59. onLoad(option) {},
  60. methods: {
  61. }
  62. };
  63. </script>
  64. <style lang="scss">
  65. page {
  66. background: #EAEEF1;
  67. }
  68. </style>
  69. <style scoped lang="scss">
  70. .reportWrap{
  71. padding: 8rpx;
  72. }
  73. .reportMain{
  74. background: #FFFFFF;
  75. border-radius: 16rpx;
  76. padding:16rpx;
  77. .title{
  78. font-size: 32rpx;
  79. font-family: PingFang SC;
  80. font-weight: bold;
  81. color: #333333;
  82. margin: 24rpx 0;
  83. padding-left: 18rpx;
  84. }
  85. .time{
  86. padding-left: 18rpx;
  87. font-size: 24rpx;
  88. font-family: PingFang SC;
  89. font-weight: 500;
  90. color: #999999;
  91. margin-bottom: 40rpx;
  92. }
  93. .info{
  94. display: flex;
  95. justify-content: space-between;
  96. .left{
  97. width: 250rpx;
  98. height: 176rpx;
  99. background: #F5F5F5;
  100. border-radius: 16rpx;
  101. font-size: 24rpx;
  102. font-family: PingFang SC;
  103. font-weight: 500;
  104. color: #999999;
  105. text-align: center;
  106. }
  107. .val{
  108. font-size: 60rpx;
  109. font-family: PingFang SC;
  110. font-weight: 800;
  111. color: #007AFF;
  112. text{
  113. font-size: 30rpx;
  114. }
  115. }
  116. .name{
  117. font-size: 32rpx;
  118. font-family: PingFang SC;
  119. font-weight: bold;
  120. color: #333333;
  121. }
  122. .item{
  123. width: 420rpx;
  124. height: 80rpx;
  125. background: #F5F5F5;
  126. border-radius: 16rpx;
  127. margin-bottom: 16rpx;
  128. font-size: 30rpx;
  129. font-family: PingFang SC;
  130. font-weight: 400;
  131. color: #666666;
  132. display: flex;
  133. justify-content: space-between;
  134. align-items: center;
  135. padding: 0 35rpx 0 45rpx;
  136. .label{
  137. display: flex;
  138. align-items: center;
  139. }
  140. .icon{
  141. margin-right: 28rpx;
  142. font-size: 45rpx;
  143. }
  144. .num{
  145. font-size: 48rpx;
  146. font-family: PingFang SC;
  147. font-weight: 500;
  148. color: #16D48B;
  149. }
  150. .num1{
  151. font-size: 48rpx;
  152. font-family: PingFang SC;
  153. font-weight: 500;
  154. color: #FF3B30;
  155. }
  156. }
  157. }
  158. .btnBox{
  159. display: flex;
  160. justify-content: center;
  161. margin: 25rpx 0 8rpx;
  162. .btn{
  163. width: 160rpx;
  164. height: 48rpx;
  165. line-height: 48rpx;
  166. background: #FFFFFF;
  167. border: 1px solid #007AFF;
  168. border-radius: 16rpx;
  169. font-size: 24rpx;
  170. font-family: PingFang SC;
  171. font-weight: 500;
  172. color: #007AFF;
  173. text-align: center;
  174. margin: 0 15rpx;
  175. &.no{
  176. opacity: 0.3;
  177. }
  178. }
  179. }
  180. }
  181. .reportBt{
  182. display: flex;
  183. justify-content: space-between;
  184. margin-top:16rpx;
  185. .item{
  186. width: 352rpx;
  187. height: 288rpx;
  188. background: #FFFFFF;
  189. border-radius: 16rpx;
  190. padding: 24rpx 16rpx;
  191. font-size: 30rpx;
  192. font-family: PingFang SC;
  193. font-weight: bold;
  194. color: #333333;
  195. .sub{
  196. font-size: 20rpx;
  197. font-weight: 500;
  198. color: #999999;
  199. }
  200. }
  201. }
  202. </style>