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

113 lines
2.5 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 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" :style="{ backgroundImage: `url(${imgUrl})`, backgroundSize: backgroundSize }">
  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. import { imgUrl } from '@/config/site.config'
  31. export default {
  32. data() {
  33. return {
  34. imgUrl: imgUrl+'carlearTimeBg.png',
  35. backgroundSize: '100% 100%',
  36. list: [
  37. {total: 1024, time: 236, text: '模拟器'},
  38. {total: 1024, time: 236, text: '科目一'},
  39. {total: 1024, time: 236, text: '科目二'},
  40. {total: 1024, time: 236, text: '科目三'},
  41. ]
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .pad {
  48. marginp: 20rpx 0;
  49. }
  50. .box {
  51. width: 100%;
  52. height: 400rpx;
  53. margin-bottom: 20rpx;
  54. padding: 0 16rpx 52rpx 16rpx;
  55. background: url('http://192.168.1.20:81/zhili/image/20230822/ca8f14281ac9412987b23ad43bfb50a1.png') no-repeat;
  56. background-size: 100% 400rpx;
  57. position: relative;
  58. .h2 {
  59. width: 489rpx;
  60. height: 75rpx;
  61. line-height: 70rpx;
  62. margin: 0 auto;
  63. text-align: center;
  64. // background-color: #A6E2FF;
  65. color: #fff;
  66. font-size: 32rpx;
  67. font-weight: 600;
  68. }
  69. .con {
  70. border-radius: 16rpx;
  71. width: 100%;
  72. .item_row {
  73. display: flex;
  74. width: 100%;
  75. height: 256rpx;
  76. align-items: center;
  77. .item {
  78. flex: 1;
  79. text-align: center;
  80. display: flex;
  81. flex-direction: column;
  82. align-items: center;
  83. .lab {
  84. font-size: 28rpx;
  85. color: #363A44;
  86. }
  87. .val {
  88. margin-top: 20rpx;
  89. font-size: 40rpx;
  90. color: $themC;
  91. font-weight: 500;
  92. }
  93. }
  94. }
  95. }
  96. .chain {
  97. width: 28rpx;
  98. height: 100rpx;
  99. position: absolute;
  100. top: -56rpx;
  101. &.left {
  102. left: 60rpx;
  103. }
  104. &.right {
  105. right: 60rpx !important;
  106. }
  107. }
  108. }
  109. </style>