洛阳学员端
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.

237 lines
4.9 KiB

  1. <template>
  2. <view class="myData" id="app" ref="appref" :style="{ background: `url(${imgUrl}) #f6f6f6 no-repeat`, backgroundSize: backgroundSize }">
  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: 300px; height: 300px;" class="canvas" ref="canvas"></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. import { imgUrl } from '@/config/site.config'
  95. export default {
  96. components: { ringChart, columnChart },
  97. data() {
  98. return {
  99. shareImageUrl: '',
  100. imgUrl: imgUrl+'mydatabg.png',
  101. backgroundSize: '100% 544rpx',
  102. }
  103. },
  104. onReady() {
  105. },
  106. methods: {
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .myData {
  112. width: 100%;
  113. // background: url('http://192.168.1.20:81/zhili/image/20230818/409dca21dfec44eb8477e056ee23e437.png') #f6f6f6 no-repeat;
  114. // background-size: 100% 544rpx;
  115. min-height: 100vh;
  116. font-size: 28rpx;
  117. padding-bottom: 40rpx;
  118. .topText {
  119. padding: 56rpx 34rpx 84rpx 34rpx;
  120. color: #fff;
  121. font-weight: 600;
  122. .h3 {
  123. font-size: 42rpx;
  124. }
  125. .h4 {
  126. font-size: 64rpx;
  127. }
  128. }
  129. .card {
  130. padding: 0 24rpx;
  131. margin-bottom: 20rpx;
  132. .row {
  133. display: flex;
  134. border-bottom: 2rpx solid #E8E9EC;
  135. height: 102rpx;
  136. align-items: center;
  137. .leftCon {
  138. display: flex;
  139. align-items: center;
  140. .icon {
  141. width: 40rpx;
  142. height: 40rpx;
  143. }
  144. .text {
  145. font-size: 28rpx;
  146. padding: 0 40rpx 0 12rpx;
  147. }
  148. }
  149. .value {
  150. font-size: 28rpx;
  151. color: #1989FA;
  152. flex: 1;
  153. }
  154. }
  155. }
  156. .count {
  157. width: 48%;
  158. height: 196rpx;
  159. background: #FFFFFF;
  160. border-radius: 16rpx;
  161. text-align: center;
  162. .lab {
  163. margin: 36rpx 0 28rpx 0;
  164. }
  165. .val {
  166. font-weight: 500;
  167. font-size: 40rpx;
  168. color: $themC;
  169. }
  170. }
  171. .btnBorder {
  172. width: 396rpx;
  173. margin: 48rpx auto 0 auto;
  174. }
  175. }
  176. .chart_row {
  177. height: 300rpx;
  178. border-radius: 16rpx;
  179. display: flex;
  180. .leftText {
  181. width: 270rpx;
  182. display: flex;
  183. flex-direction: column;
  184. align-items: center;
  185. justify-content: center;
  186. .lab {
  187. margin: 0rpx 0 24rpx 0;
  188. }
  189. .val {
  190. font-weight: 500;
  191. font-size: 40rpx;
  192. color: $themC;
  193. }
  194. }
  195. .rightChart {
  196. width: 0;
  197. flex: 1;
  198. &.pad28 {
  199. padding: 28rpx 0;
  200. }
  201. .blueBg {
  202. padding: 20rpx 0 10rpx 0;
  203. width: 100%;
  204. height: 100%;
  205. background-color: #F2F8FF;
  206. }
  207. }
  208. }
  209. .img {
  210. width: 100vw;
  211. height: 100vh;
  212. }
  213. </style>