myOrder.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div class="myOrder">
  3. <div class="myOrderItem" v-for="item in orderList">
  4. <div class="myOrderItemTop">
  5. <span class="myOrderItemTopLeft">
  6. <img src="./image/frame.svg" class="frameIcon">
  7. 共享资源·会议室预约
  8. </span>
  9. <span :class="item.status==='等待审核'?'orgColor':item.status==='预定成功'?'greColor':'grayColor'">{{item.status}}</span>
  10. </div>
  11. <div class="orderTheme">{{item.theme}}</div>
  12. <div class="myOrderItemBottom">
  13. <div class="myOrderItemBottomLeft">
  14. <span>订单号:202405061228</span>
  15. <span>预约时间:2021-1-21 13:00</span>
  16. </div>
  17. <button class="cancelBtn" v-if="item.status!=='已取消'">去取消</button>
  18. </div>
  19. <div class="cancleBox" v-if="item.status==='已取消'">
  20. 取消原因:取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因取消原因
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: "myOrder",
  28. data(){
  29. return{
  30. orderList:[
  31. {theme:'会议主题会议主题会议主题会议主题会议主题会议主题会议主题会议主',status:'等待审核'},
  32. {theme:'会议主题会议主题会议主题会议主题会议主题会议主题会议主题会议主',status:'预定成功'},
  33. {theme:'会议主题会议主题会议主题会议主题会议主题会议主题会议主题会议主',status:'已取消'},
  34. ]
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. .myOrder{
  41. padding: 24rpx 32rpx;
  42. .myOrderItem{
  43. width: 686rpx;
  44. padding: 32rpx 0;
  45. border-radius: 16rpx;
  46. background: white;
  47. box-sizing: border-box;
  48. margin-bottom: 24rpx;
  49. .myOrderItemTop{
  50. display: flex;
  51. justify-content: space-between;
  52. padding:0 32rpx 24rpx 32rpx;
  53. border-bottom: 1px solid rgba(232, 237, 245, 1);
  54. .myOrderItemTopLeft{
  55. display: flex;
  56. align-items: center;
  57. color: rgba(102, 102, 102, 1);
  58. font-size: 28rpx;
  59. .frameIcon{
  60. width: 28rpx;
  61. height: 28rpx;
  62. margin-right: 16rpx;
  63. }
  64. }
  65. .orgColor{
  66. font-size: 28rpx;
  67. color: rgba(226, 81, 0, 1);
  68. }
  69. .greColor{
  70. font-size: 28rpx;
  71. color: rgba(34, 181, 101, 1);
  72. }
  73. .grayColor{
  74. font-size: 28rpx;
  75. color: rgba(136, 136, 136, 1);
  76. }
  77. }
  78. .orderTheme{
  79. padding: 16rpx 32rpx;
  80. color: rgba(34, 34, 34, 1);
  81. font-size: 32rpx;
  82. line-height: 50rpx;
  83. display: flex;
  84. flex-wrap: wrap;
  85. font-weight: 600;
  86. }
  87. .myOrderItemBottom{
  88. display: flex;
  89. align-items: center;
  90. padding: 0 32rpx;
  91. justify-content: space-between;
  92. .myOrderItemBottomLeft{
  93. display: flex;
  94. flex-direction: column;
  95. font-size: 28rpx;
  96. color:rgba(136, 136, 136, 1);
  97. line-height: 44rpx;
  98. }
  99. .cancelBtn{
  100. background: linear-gradient( 316deg, #84AAFF 0%, #0365F9 100%);
  101. width: 160rpx;
  102. height: 60rpx;
  103. border-radius: 32rpx;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. color: rgba(255, 255, 255, 1);
  108. font-size: 28rpx;
  109. &::after{
  110. border: none;
  111. }
  112. }
  113. }
  114. .cancleBox{
  115. font-size: 28rpx;
  116. color:rgba(242, 25, 18, 1);
  117. width: 622rpx;
  118. background: rgba(245, 247, 250, 1);
  119. padding: 24rpx;
  120. box-sizing: border-box;
  121. margin-left: 32rpx;
  122. display: flex;
  123. flex-wrap: wrap;
  124. line-height: 40rpx;
  125. margin-top: 16rpx;
  126. }
  127. }
  128. }
  129. </style>