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.

121 lines
3.2 KiB

8 months ago
  1. <template>
  2. <!-- 实操 -->
  3. <view class="consultItem">
  4. <view class="top_row">
  5. <view class="flex">
  6. <view class="schoolName">{{item.studentName}} <text style="margin-left: 6px;">{{ item.studentPhone}}</text></view>
  7. </view>
  8. <view class="status">
  9. <view class="text" v-if="item.isOnTime">正在计时...</view>
  10. <view class="changeBtn btnBg" v-else-if="item.loginStatus==1">计时切换</view>
  11. <view class="" v-else>{{loginStatusTxt[item.loginStatus]}}</view>
  12. </view>
  13. </view>
  14. <view class="target">
  15. <view class="row" v-if="item.isOnTime">
  16. <view class="iconImg">
  17. <image src="@/static/images/index/timerIcon.png" mode=""></image>
  18. </view>
  19. <view class="name" style="color: red;">计时开始时间14: 50</view>
  20. </view>
  21. <view class="row">
  22. <view class="iconImg">
  23. <image src="@/static/images/index/listIcon.png" mode=""></image>
  24. </view>
  25. <view class="name">训练科目{{ subjectTxt[item.subject] }}</view>
  26. </view>
  27. <view class="row">
  28. <view class="iconImg">
  29. <image src="@/static/images/index/site.png" mode=""></image>
  30. </view>
  31. <view class="name">预约场地{{item.siteName}}</view>
  32. </view>
  33. <view class="row">
  34. <view class="iconImg">
  35. <image src="@/static/images/index/carIcon.png" mode=""></image>
  36. </view>
  37. <view class="name">预约车辆{{item.carNumber}}</view>
  38. </view>
  39. <view class="row">
  40. <view class="iconImg">
  41. <image src="@/static/images/index/timerIcon.png" mode=""></image>
  42. </view>
  43. <view class="name">预约时间 14:00 <text>-</text> 18:00</view>
  44. <!-- <view class="name">预约时间{{item.classDate}} {{$u.timeFormat(item.startTime, 'hh:MM')}} <text>-</text> {{$u.timeFormat(item.endTime, 'hh:MM')}}</view> -->
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. props: ['item'],
  52. data() {
  53. return {
  54. subjectTxt: ['不限', '科目二', '科目三'],//:0:不限;2:科目二;3:科目三
  55. loginStatusTxt: ['未签到', '已签到', '已签退', '已过期', '已取消'],//0:未签到,1:已签到,2:已签退,3:已过期,9:已取消
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .consultItem {
  62. width: 100%;
  63. .top_row {
  64. display: flex;
  65. width: 100%;
  66. height: 116rpx;
  67. border-bottom: 2rpx dashed #E8E9EC;
  68. justify-content: space-between;
  69. align-items: center;
  70. .tag {
  71. // width: 176rpx;
  72. height: 60rpx;
  73. background: rgba(250, 149, 25, 0.1);
  74. border-radius: 8rpx;
  75. text-align: center;
  76. font-size: 28rpx;
  77. color: #FA7919;
  78. margin-right: 24rpx;
  79. padding: 10rpx 18rpx;
  80. }
  81. .schoolName {
  82. font-size: 28rpx;
  83. color: #333;
  84. margin-left: 20rpx;
  85. font-weight: 550;
  86. }
  87. .status {
  88. display: flex;
  89. align-items: center;
  90. .text {
  91. font-size: 28rpx;
  92. color: $themC;
  93. }
  94. }
  95. }
  96. .target {
  97. padding: 20rpx 0;
  98. }
  99. .row {
  100. padding: 16rpx 0;
  101. display: flex;
  102. align-items: center;
  103. .iconImg {
  104. width: 32rpx;
  105. height: 28rpx;
  106. }
  107. .name {
  108. font-size: 28rpx;
  109. color: #333;
  110. padding-left: 20rpx;
  111. }
  112. }
  113. }
  114. .changeBtn {
  115. line-height: 60rpx;
  116. height: 60rpx;
  117. padding: 0 12rpx;
  118. }
  119. </style>