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.

63 lines
1.5 KiB

8 months ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title=""></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <appointItem-operate :item="info"/>
  7. <view class="border_bottom">
  8. <view class="date">提交预约时间{{$u.timeFormat(info.createTime, 'yyyy/mm/dd MM:ss')}}</view>
  9. <view class="date" v-if="info.loginStatus==9">取消预约时间{{$u.timeFormat(info.updateTime, 'yyyy/mm/dd MM:ss')}}</view>
  10. <view class="date" v-if="info.loginStatus==1||loginStatus==2">学员签到时间{{$u.timeFormat(info.loginTime, 'yyyy/mm/dd MM:ss')}}</view>
  11. <view class="date" v-if="info.loginStatus==2">学员签退时间{{$u.timeFormat(info.signOutTime, 'yyyy/mm/dd MM:ss')}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import { bookingMasterDetail } from '@/config/api.js'
  19. export default {
  20. data() {
  21. return {
  22. info: {},
  23. id: ''
  24. }
  25. },
  26. onLoad(options) {
  27. this.id = options.id
  28. this.bookingMasterDetailFn()
  29. },
  30. methods: {
  31. async bookingMasterDetailFn() {
  32. const {data: res} = await bookingMasterDetail({id: this.id})
  33. this.info = res
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .card {
  40. padding: 0 28rpx;
  41. }
  42. .date {
  43. font-size: 28rpx;
  44. color: #ADADAD;
  45. margin-bottom: 16rpx;
  46. }
  47. .border_bottom {
  48. border-top: 2rpx dashed #E8E9EC;
  49. padding: 24rpx 10rpx 10rpx 0;
  50. .date {
  51. font-size: 28rpx;
  52. color: #ADADAD;
  53. margin-bottom: 16rpx;
  54. }
  55. .btnBg {
  56. width: 212rpx;
  57. margin: 30rpx auto;
  58. }
  59. }
  60. </style>