alreadyBook.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="pages">
  3. <view class="customer">
  4. <view class="">
  5. <span style="margin-right: 20rpx;"> 吴易航</span>
  6. <span>18160883036</span>
  7. </view>
  8. <view class="" @click="textMessage()"><u-icon name="chat" size="34"></u-icon></view>
  9. </view>
  10. <view class="roomInfo">
  11. <view class="info1">
  12. <span>海景房-305</span>
  13. <text :class="statusClass[0]">{{status[0]}}</text>
  14. </view>
  15. <view class="info2">
  16. <span>2023-12-16入住 1晚</span>
  17. <text style="color: #245BED;">¥200.00</text>
  18. </view>
  19. <view class="info3">
  20. <span>入住人</span>
  21. <text>0人 ></text>
  22. </view>
  23. </view>
  24. <view class="orderInfo">
  25. <view class="orderInfo1">
  26. 订单号<span class='left'>A20231213102359619119</span>
  27. </view>
  28. <view class="orderInfo1">
  29. 创建时间 <span class='left'>2023-12-11 17:27:09</span>
  30. </view>
  31. <view class="orderInfo1">
  32. 办理员工 <span class='left'>何炜亭</span>
  33. </view>
  34. <view class="orderInfo1">
  35. 取消原因<span class='left'>-</span>
  36. </view>
  37. <view class="orderInfo2">
  38. 备注 <span class='left'>-</span>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. loading: true,
  48. statusClass: [
  49. 'green',
  50. 'blue',
  51. 'grey',
  52. 'orange'
  53. ],
  54. status: [
  55. '已预订',
  56. '已入住',
  57. '已取消',
  58. '待确认'
  59. ],
  60. }
  61. },
  62. methods: {
  63. textMessage() {
  64. uni.navigateTo({
  65. url: '/pagesMy/orderList/textMessage'
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .pages {
  73. background: #F9FAFC;
  74. height: 100vh;
  75. padding: 20rpx;
  76. font-size: 28rpx;
  77. .customer {
  78. background: #fff;
  79. padding: 20rpx;
  80. border-radius: 16rpx;
  81. margin-bottom: 20rpx;
  82. font-weight: 700;
  83. display: flex;
  84. justify-content: space-between;
  85. }
  86. .roomInfo {
  87. background: #fff;
  88. padding: 20rpx;
  89. border-radius: 16rpx;
  90. margin-bottom: 20rpx;
  91. .info1 {
  92. display: flex;
  93. justify-content: space-between;
  94. margin-bottom: 20rpx;
  95. .green {
  96. color: #39CE77;
  97. }
  98. .blue {
  99. color: #1372FF;
  100. }
  101. .grey {
  102. color: #4C5F76;
  103. }
  104. .orange {
  105. color: #FF9100;
  106. }
  107. }
  108. .info2 {
  109. margin-bottom: 20rpx;
  110. display: flex;
  111. justify-content: space-between;
  112. color: #777777;
  113. }
  114. .info3 {
  115. display: flex;
  116. justify-content: space-between;
  117. color: #777777;
  118. }
  119. }
  120. .orderInfo {
  121. border-radius: 16rpx;
  122. background: #fff;
  123. color: #777777;
  124. padding: 0 20rpx;
  125. .orderInfo1 {
  126. border-bottom: 1px #f3f3f3 solid;
  127. padding: 20rpx 0;
  128. display: flex;
  129. flex-direction: row;
  130. justify-content: space-between;
  131. .left {
  132. width: 80%;
  133. text-align: left;
  134. }
  135. }
  136. .orderInfo2 {
  137. padding: 20rpx 0;
  138. display: flex;
  139. flex-direction: row;
  140. justify-content: space-between;
  141. .left {
  142. width: 80%;
  143. text-align: left;
  144. }
  145. }
  146. }
  147. }
  148. </style>