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.

104 lines
1.8 KiB

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. <template>
  2. <view class="subject1">
  3. <view class="" v-for="(item,index) in list" :key="index">
  4. <view class="name">{{ item.studentName }} <text>{{ phoneShow(item.studentMobile)}}</text></view>
  5. <view class="row">
  6. <view class="timeItem">
  7. <view class="flex ">
  8. <view class="time">{{ item.totalTime }}</view>
  9. <view class="uni">分钟</view>
  10. </view>
  11. <view class="lab">已完成学时</view>
  12. </view>
  13. <view class="timeItem">
  14. <view class="flex ">
  15. <view class="time ">{{item.validTime}}</view>
  16. <view class="uni">分钟</view>
  17. </view>
  18. <view class="lab">应完成学时</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. props: {
  27. list: {
  28. type: Array,
  29. default: []
  30. }
  31. },
  32. methods: {
  33. phoneShow(phoneNumber) {
  34. if (phoneNumber.length === 11) {
  35. return phoneNumber.replace(phoneNumber.substr(3, 4), "****");
  36. } else {
  37. return phoneNumber;
  38. }
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .subject1 {
  45. border-top: 1rpx solid #EDEDED;
  46. background-color: #fff;
  47. border-radius: 20rpx;
  48. padding: 30rpx;
  49. }
  50. .name {
  51. font-size: 30rpx;
  52. font-weight: 600;
  53. color: #333;
  54. margin-bottom: 24rpx;
  55. text {
  56. margin-left: 20rpx;
  57. }
  58. }
  59. .row {
  60. display: flex;
  61. &:first-child {
  62. border: none;
  63. }
  64. .timeItem {
  65. border-left: 1px solid #EDEDED;
  66. flex: 1;
  67. align-items: center;
  68. justify-content: center;
  69. color: #999;
  70. font-size: 24rpx;
  71. padding: 20rpx 0;
  72. &:first-child {
  73. border: none;
  74. }
  75. .flex {
  76. justify-content: center;
  77. .time {
  78. font-size: 36rpx;
  79. color: #333;
  80. font-weight: 700;
  81. }
  82. .uni {
  83. margin-top: -6rpx;
  84. margin-left: 4rpx;
  85. }
  86. }
  87. .lab {
  88. text-align: center;
  89. }
  90. }
  91. }
  92. </style>