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

243 lines
4.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  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. <ringChart />
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 考试通过率 -->
  59. <view class="card">
  60. <view class="chart_row">
  61. <view class="leftText" style="width: 200rpx;">
  62. <view class="lab">考试通过率</view>
  63. <view class="val">90%</view>
  64. </view>
  65. <view class="rightChart pad28">
  66. <view class="blueBg">
  67. <columnChart/>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="flex-b">
  73. <view class="count card">
  74. <view class="lab">实操练习次数</view>
  75. <view class="val">20</view>
  76. </view>
  77. <view class="count card">
  78. <view class="lab">模拟训练次数</view>
  79. <view class="val">20</view>
  80. </view>
  81. </view>
  82. <view class="btnBorder">立即分享</view>
  83. </view>
  84. </template>
  85. <script>
  86. import ringChart from './ringChart.vue'
  87. import columnChart from './columnChart'
  88. export default {
  89. components: { ringChart, columnChart },
  90. data() {
  91. return {
  92. gaueData: {
  93. series: [{
  94. "data": [{
  95. "name": "科目一",
  96. "value": 7
  97. },
  98. {
  99. "name": "模拟器",
  100. "value": 0
  101. },
  102. {
  103. "name": "科目二",
  104. "value": 10
  105. },
  106. {
  107. "name": "科目三",
  108. "value": 20
  109. }
  110. ]
  111. }]
  112. },
  113. opts: {
  114. dataLabel: false,
  115. width: 300,
  116. height: 300
  117. }
  118. }
  119. }
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. .myData {
  124. width: 100%;
  125. background: url('http://192.168.1.20:81/zhili/image/20230818/409dca21dfec44eb8477e056ee23e437.png') #f6f6f6 no-repeat;
  126. background-size: 100% 544rpx;
  127. min-height: 100vh;
  128. font-size: 28rpx;
  129. padding-bottom: 40rpx;
  130. .topText {
  131. padding: 56rpx 34rpx 84rpx 34rpx;
  132. color: #fff;
  133. font-weight: 600;
  134. .h3 {
  135. font-size: 42rpx;
  136. }
  137. .h4 {
  138. font-size: 64rpx;
  139. }
  140. }
  141. .card {
  142. padding: 0 24rpx;
  143. margin-bottom: 20rpx;
  144. .row {
  145. display: flex;
  146. border-bottom: 2rpx solid #E8E9EC;
  147. height: 102rpx;
  148. align-items: center;
  149. .leftCon {
  150. display: flex;
  151. align-items: center;
  152. .icon {
  153. width: 40rpx;
  154. height: 40rpx;
  155. }
  156. .text {
  157. font-size: 28rpx;
  158. padding: 0 40rpx 0 12rpx;
  159. }
  160. }
  161. .value {
  162. font-size: 28rpx;
  163. color: #1989FA;
  164. flex: 1;
  165. }
  166. }
  167. }
  168. .count {
  169. width: 48%;
  170. height: 196rpx;
  171. background: #FFFFFF;
  172. border-radius: 16rpx;
  173. text-align: center;
  174. .lab {
  175. margin: 36rpx 0 28rpx 0;
  176. }
  177. .val {
  178. font-weight: 500;
  179. font-size: 40rpx;
  180. color: $themC;
  181. }
  182. }
  183. .btnBorder {
  184. width: 396rpx;
  185. margin: 48rpx auto 0 auto;
  186. }
  187. }
  188. .chart_row {
  189. height: 300rpx;
  190. border-radius: 16rpx;
  191. display: flex;
  192. .leftText {
  193. width: 270rpx;
  194. display: flex;
  195. flex-direction: column;
  196. align-items: center;
  197. justify-content: center;
  198. .lab {
  199. margin: 0rpx 0 24rpx 0;
  200. }
  201. .val {
  202. font-weight: 500;
  203. font-size: 40rpx;
  204. color: $themC;
  205. }
  206. }
  207. .rightChart {
  208. width: 0;
  209. flex: 1;
  210. &.pad28 {
  211. padding: 28rpx 0;
  212. }
  213. .blueBg {
  214. padding: 20rpx 0 10rpx 0;
  215. width: 100%;
  216. height: 100%;
  217. background-color: #F2F8FF;
  218. }
  219. }
  220. }
  221. </style>