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

233 lines
4.6 KiB

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