appointmentHistory.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <div class="historyListBody">
  3. <div class="historyItem" v-for="item in historyList">
  4. <div class="tags">会议室</div>
  5. <div class="historyItemTitle">主题主题主题主题主题主题主题主题主题主题主题主题主题</div>
  6. <div class="historyItemInfo">使用日期:7月30日</div>
  7. <div class="historyItemInfo">资源名称:党建会议室</div>
  8. <div class="historyItemInfo">位置:A栋一楼</div>
  9. <div class="historyItemInfo">预约时间:2024.07.21 12:30</div>
  10. <div class="historyItemBottom">
  11. <span class="typeInfo" :class="item.type==='已通过'?'tgType':item.type==='已取消'?'qxType':''">{{item.type}}</span>
  12. <button class="btn" :class="item.type==='暂存'?'zcBtn':''" v-if="item.type !=='已取消'">{{item.type==='暂存'?'暂存':'取消'}}</button>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. name: "appointmentHistory",
  20. data(){
  21. return{
  22. historyList:[
  23. {type:'审核中'},
  24. {type:'已通过'},
  25. {type:'已取消'},
  26. {type:'暂存'},
  27. ]
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss">
  33. .historyListBody{
  34. margin-top: 24rpx;
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. padding-bottom: 100rpx;
  39. .historyItem{
  40. width: 686rpx;
  41. padding: 24rpx 0;
  42. background: white;
  43. box-sizing: border-box;
  44. position: relative;
  45. border-radius: 16rpx;
  46. margin-bottom: 24rpx;
  47. .tags{
  48. width: 148rpx;
  49. height: 56rpx;
  50. position: absolute;
  51. top: 0;
  52. right: 0;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. font-size: 26rpx;
  57. color: rgba(3, 101, 249, 1);
  58. background: url('https://www.idea-co-sf.com/gardenProduct/image/bj04.png') no-repeat;
  59. background-size: 100%;
  60. }
  61. .historyItemTitle{
  62. padding: 8rpx 32rpx;
  63. width: 480rpx;
  64. color: rgba(34, 34, 34, 1);
  65. font-size: 32rpx;
  66. line-height: 40rpx;
  67. font-weight: 500;
  68. }
  69. .historyItemInfo{
  70. color: rgba(102, 102, 102, 1);
  71. font-size: 28rpx;
  72. padding: 10rpx 32rpx;
  73. }
  74. .historyItemBottom{
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. padding: 28rpx 32rpx 0 32rpx;
  79. border-top: 1px solid rgba(232, 237, 245, 1);
  80. margin-top: 22rpx;
  81. .typeInfo{
  82. font-size: 28rpx;
  83. color: rgba(226, 81, 0, 1);
  84. }
  85. .tgType{
  86. color: rgba(3, 101, 249, 1);
  87. }
  88. .qxType{
  89. color:rgba(242, 25, 18, 1);
  90. }
  91. .btn{
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. font-size: 28rpx;
  96. width: 160rpx;
  97. height: 60rpx;
  98. border-radius: 32rpx;
  99. border: 2rpx solid rgba(255, 107, 24, 1);
  100. color:rgba(255, 107, 24, 1);
  101. &::after{
  102. border: none;
  103. }
  104. }
  105. .zcBtn{
  106. background: linear-gradient( 316deg, #84AAFF 0%, #0365F9 100%);
  107. color: white;
  108. border: none;
  109. }
  110. }
  111. }
  112. }
  113. </style>