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.

149 lines
3.7 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 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">{{loginStatusTxt[item.loginStatus]}}</view>
  10. <view class="icon" v-if="!item.bookingDetailRespVOS.length">
  11. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="target">
  16. <view class="row">
  17. <view class="iconImg">
  18. <image src="@/static/images/index/listIcon.png" mode=""></image>
  19. </view>
  20. <view class="name">训练科目{{ subjectTxt[item.subject] }}</view>
  21. </view>
  22. <view class="row">
  23. <view class="iconImg">
  24. <image src="@/static/images/index/site.png" mode=""></image>
  25. </view>
  26. <view class="name">预约场地{{item.siteName}}</view>
  27. </view>
  28. <view class="row">
  29. <view class="iconImg">
  30. <image src="@/static/images/index/carIcon.png" mode=""></image>
  31. </view>
  32. <view class="name">预约车辆{{item.carNumber}}</view>
  33. </view>
  34. <view class="row">
  35. <view class="iconImg">
  36. <image src="@/static/images/index/timerIcon.png" mode=""></image>
  37. </view>
  38. <view class="name">预约时间{{item.classDate}}</view>
  39. </view>
  40. <view class="row" style="align-items: flex-start;" v-if="item.bookingDetailRespVOS&&item.bookingDetailRespVOS.length">
  41. <view class="leftBox">
  42. <view class="iconImg">
  43. <image src="@/static/images/index/timerIcon.png" mode=""></image>
  44. </view>
  45. <view class="name">预约时段</view>
  46. </view>
  47. <view class="rightBox" >
  48. <view class="name" v-for="(item2,index) in item.bookingDetailRespVOS">
  49. <view class="timer_row " :class="{hui: (item2.loginStatus==9||item2.loginStatus==3), black: item2.loginStatus==0}">
  50. <view class="time">{{item2.classTime}}</view>
  51. <view class="status">{{loginStatusTxt[item2.loginStatus]}}</view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. props: ['item'],
  62. data() {
  63. return {
  64. subjectTxt: ['不限', '', '科目二', '科目三'],//:0:不限;2:科目二;3:科目三
  65. loginStatusTxt: ['未签到', '已签到', '已签退', '已过期', '已取消'],//0:未签到,1:已签到,2:已签退,3:已过期,9:已取消
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .consultItem {
  72. width: 100%;
  73. .top_row {
  74. display: flex;
  75. width: 100%;
  76. height: 116rpx;
  77. border-bottom: 2rpx dashed #E8E9EC;
  78. justify-content: space-between;
  79. align-items: center;
  80. .tag {
  81. // width: 176rpx;
  82. height: 60rpx;
  83. background: rgba(250, 149, 25, 0.1);
  84. border-radius: 8rpx;
  85. text-align: center;
  86. font-size: 28rpx;
  87. color: #FA7919;
  88. margin-right: 24rpx;
  89. padding: 10rpx 18rpx;
  90. }
  91. .schoolName {
  92. font-size: 28rpx;
  93. color: #333;
  94. margin-left: 20rpx;
  95. font-weight: 550;
  96. }
  97. .status {
  98. display: flex;
  99. align-items: center;
  100. .text {
  101. font-size: 28rpx;
  102. color: $themC;
  103. }
  104. }
  105. }
  106. .target {
  107. padding: 20rpx 0;
  108. }
  109. .row {
  110. padding: 16rpx 0;
  111. display: flex;
  112. align-items: center;
  113. .iconImg {
  114. width: 32rpx;
  115. height: 28rpx;
  116. }
  117. .name {
  118. font-size: 28rpx;
  119. color: #333;
  120. padding-left: 20rpx;
  121. }
  122. }
  123. }
  124. .leftBox {
  125. display: flex;
  126. align-items: center;
  127. // width: 200rpx;
  128. }
  129. .rightBox {
  130. flex: 1;
  131. }
  132. .timer_row {
  133. display: flex;
  134. align-items: center;
  135. color: $themC;
  136. margin-bottom: 20rpx;
  137. &.hui {
  138. color: #999;
  139. }
  140. &.black {
  141. color: #333;
  142. }
  143. .time {
  144. margin-right: 40rpx;
  145. }
  146. }
  147. </style>