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

110 lines
2.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
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="pageBgImg">
  3. <topNavbar title="学车学时"></topNavbar>
  4. <view class="pad">
  5. <view class="box" v-for="(item,index) in list" :key="index">
  6. <view class="h2">{{ item.text }}</view>
  7. <view class="con">
  8. <view class="item_row">
  9. <view class="item">
  10. <view class="lab">总学时</view>
  11. <view class="val">{{ item.total }}分钟</view>
  12. </view>
  13. <view class="item">
  14. <view class="lab">已完成</view>
  15. <view class="val">{{ item.time }}分钟</view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="chain left" v-if="index!=0">
  20. <image src="@/static/images/index/chain.png" mode=""></image>
  21. </view>
  22. <view class="chain right" v-if="index!=0">
  23. <image src="@/static/images/index/chain.png" mode=""></image>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. list: [
  34. {total: 1024, time: 236, text: '模拟器'},
  35. {total: 1024, time: 236, text: '科目一'},
  36. {total: 1024, time: 236, text: '科目二'},
  37. {total: 1024, time: 236, text: '科目三'},
  38. ]
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .pad {
  45. marginp: 20rpx 0;
  46. }
  47. .box {
  48. width: 100%;
  49. height: 400rpx;
  50. margin-bottom: 20rpx;
  51. padding: 0 16rpx 52rpx 16rpx;
  52. background: url('http://192.168.1.20:81/zhili/image/20230822/ca8f14281ac9412987b23ad43bfb50a1.png') no-repeat;
  53. background-size: 100% 400rpx;
  54. position: relative;
  55. .h2 {
  56. width: 489rpx;
  57. height: 75rpx;
  58. line-height: 70rpx;
  59. margin: 0 auto;
  60. text-align: center;
  61. // background-color: #A6E2FF;
  62. color: #fff;
  63. font-size: 32rpx;
  64. font-weight: 600;
  65. }
  66. .con {
  67. border-radius: 16rpx;
  68. width: 100%;
  69. .item_row {
  70. display: flex;
  71. width: 100%;
  72. height: 256rpx;
  73. align-items: center;
  74. .item {
  75. flex: 1;
  76. text-align: center;
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. .lab {
  81. font-size: 28rpx;
  82. color: #363A44;
  83. }
  84. .val {
  85. margin-top: 20rpx;
  86. font-size: 40rpx;
  87. color: $themC;
  88. font-weight: 500;
  89. }
  90. }
  91. }
  92. }
  93. .chain {
  94. width: 28rpx;
  95. height: 100rpx;
  96. position: absolute;
  97. top: -56rpx;
  98. &.left {
  99. left: 60rpx;
  100. }
  101. &.right {
  102. right: 60rpx !important;
  103. }
  104. }
  105. }
  106. </style>