学员端小程序
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.

229 lines
4.3 KiB

  1. <template>
  2. <view class="myData pad">
  3. <topNavbar title=""></topNavbar>
  4. <view class="topText">
  5. <view class="h3">专属您的</view>
  6. <view class="h4">学车数据</view>
  7. </view>
  8. <view class="card">
  9. <view class="row">
  10. <view class="leftCon">
  11. <view class="icon">
  12. <image src="@/static/images/userCenter/ic_jiaxiao.png" mode=""></image>
  13. </view>
  14. <view class="text">我的驾校</view>
  15. </view>
  16. <view class="value">翔力驾校</view>
  17. </view>
  18. <view class="row">
  19. <view class="leftCon">
  20. <view class="icon">
  21. <image src="@/static/images/userCenter/ic_jiaolian.png" mode=""></image>
  22. </view>
  23. <view class="text">我的教练</view>
  24. </view>
  25. <view class="value">xxx</view>
  26. </view>
  27. <view class="row">
  28. <view class="leftCon">
  29. <view class="icon">
  30. <image src="@/static/images/userCenter/ic_chexing.png" mode=""></image>
  31. </view>
  32. <view class="text">所学车型</view>
  33. </view>
  34. <view class="value">xxx</view>
  35. </view>
  36. <view class="row">
  37. <view class="leftCon">
  38. <view class="icon">
  39. <image src="@/static/images/userCenter/ic_shijian.png" mode=""></image>
  40. </view>
  41. <view class="text">报名时间</view>
  42. </view>
  43. <view class="value">xxx</view>
  44. </view>
  45. </view>
  46. <!-- 学驾共历时 -->
  47. <view class="card">
  48. <view class="chart_row">
  49. <view class="leftText">
  50. <view class="lab">学驾共历时</view>
  51. <view class="val">33</view>
  52. </view>
  53. <view class="rightChart">
  54. <qiun-data-charts type="ring" :chartData="gaueData" :opts="opts" />
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 考试通过率 -->
  59. <view class="card">
  60. <view class="chart_row">
  61. <view class="leftText">
  62. <view class="lab">考试通过率</view>
  63. <view class="val">33</view>
  64. </view>
  65. <view class="rightChart">
  66. 图表下次一起调
  67. </view>
  68. </view>
  69. </view>
  70. <view class="flex-b">
  71. <view class="count card">
  72. <view class="lab">实操练习次数</view>
  73. <view class="val">20</view>
  74. </view>
  75. <view class="count card">
  76. <view class="lab">模拟训练次数</view>
  77. <view class="val">20</view>
  78. </view>
  79. </view>
  80. <view class="btnBorder">立即分享</view>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. gaueData: {
  88. series: [{
  89. "data": [{
  90. "name": "科目一",
  91. "value": 7
  92. },
  93. {
  94. "name": "模拟器",
  95. "value": 0
  96. },
  97. {
  98. "name": "科目二",
  99. "value": 10
  100. },
  101. {
  102. "name": "科目三",
  103. "value": 20
  104. }
  105. ]
  106. }]
  107. },
  108. opts: {
  109. dataLabel: false,
  110. width: 300,
  111. height: 300
  112. }
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .myData {
  119. width: 100%;
  120. background: url('http://192.168.1.20:81/zhili/image/20230818/409dca21dfec44eb8477e056ee23e437.png') #f6f6f6 no-repeat;
  121. background-size: 100% 544rpx;
  122. min-height: 100vh;
  123. font-size: 28rpx;
  124. padding-bottom: 40rpx;
  125. .topText {
  126. padding: 56rpx 34rpx 84rpx 34rpx;
  127. color: #fff;
  128. font-weight: 600;
  129. .h3 {
  130. font-size: 42rpx;
  131. }
  132. .h4 {
  133. font-size: 64rpx;
  134. }
  135. }
  136. .card {
  137. padding: 0 24rpx;
  138. margin-bottom: 20rpx;
  139. .row {
  140. display: flex;
  141. border-bottom: 2rpx solid #E8E9EC;
  142. height: 102rpx;
  143. align-items: center;
  144. .leftCon {
  145. display: flex;
  146. align-items: center;
  147. .icon {
  148. width: 40rpx;
  149. height: 40rpx;
  150. }
  151. .text {
  152. font-size: 28rpx;
  153. padding: 0 40rpx 0 12rpx;
  154. }
  155. }
  156. .value {
  157. font-size: 28rpx;
  158. color: #1989FA;
  159. flex: 1;
  160. }
  161. }
  162. }
  163. .count {
  164. width: 48%;
  165. height: 196rpx;
  166. background: #FFFFFF;
  167. border-radius: 16rpx;
  168. text-align: center;
  169. .lab {
  170. margin: 36rpx 0 28rpx 0;
  171. }
  172. .val {
  173. font-weight: 500;
  174. font-size: 40rpx;
  175. color: $themC;
  176. }
  177. }
  178. .btnBorder {
  179. width: 396rpx;
  180. margin: 48rpx auto 0 auto;
  181. }
  182. }
  183. .chart_row {
  184. height: 300rpx;
  185. border-radius: 16rpx;
  186. display: flex;
  187. .leftText {
  188. width: 270rpx;
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. justify-content: center;
  193. .lab {
  194. margin: 0rpx 0 24rpx 0;
  195. }
  196. .val {
  197. font-weight: 500;
  198. font-size: 40rpx;
  199. color: $themC;
  200. }
  201. }
  202. .rightChart {
  203. width: 0;
  204. flex: 1;
  205. }
  206. }
  207. </style>