index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px'}">
  3. <u-navbar bgColor="transparent">
  4. <view class="u-nav-slot" slot="left" style="display: flex;" @tap="show=true">
  5. <text>{{name}}</text>
  6. <u-icon name="arrow-down" size="28" :bold="true" color="#fff"></u-icon>
  7. </view>
  8. </u-navbar>
  9. <view class="bg" :style="{'padding-top':(mt+30)+'px'}">
  10. <view class="b_money">
  11. <text>{{orderMoney.toFixed(2)}}</text>
  12. <text>今日订单金额</text>
  13. </view>
  14. <view class="b_items">
  15. <view>
  16. <text>{{resData.yrzNum}}</text>
  17. <text>已入住</text>
  18. </view>
  19. <view>
  20. <text>{{resData.drzNum}}</text>
  21. <text>待入住</text>
  22. </view>
  23. <view>
  24. <text>{{resData.dqrNum}}</text>
  25. <text>待确认</text>
  26. </view>
  27. <view>
  28. <text>{{resData.dclNum}}</text>
  29. <text>待处理</text>
  30. </view>
  31. <view>
  32. <text>{{resData.zrddNum}}</text>
  33. <text>昨日订单</text>
  34. </view>
  35. <view>
  36. <text>{{resData.zrscNum}}</text>
  37. <text>昨日售出</text>
  38. </view>
  39. <view>
  40. <text>{{resData.zrkfNum}}</text>
  41. <text>昨日空房</text>
  42. </view>
  43. <view>
  44. <text>{{resData.rzl}}</text>
  45. <text>入住率</text>
  46. </view>
  47. </view>
  48. </view>
  49. <Tabbar :tabbarIndex="0"></Tabbar>
  50. <u-picker :show="show" :columns="nameList" @close="show=false" @cancel="show=false" @confirm="confirm"></u-picker>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. name:'一家民宿',
  58. nameList:[['一家民宿','我家民宿','他家民宿']],
  59. show:false,
  60. orderMoney:66614,
  61. resData:{
  62. yrzNum:68,
  63. drzNum:0,
  64. dqrNum:12,
  65. dclNum:16,
  66. zrddNum:48,
  67. zrscNum:48,
  68. zrkfNum:20,
  69. rzl:'69.65%'
  70. }
  71. }
  72. },
  73. methods: {
  74. confirm(e){
  75. this.name = e.value[0];
  76. this.show = false;
  77. }
  78. }
  79. }
  80. </script>
  81. <style scoped lang="less">
  82. .page{
  83. background: #F3F4F4;
  84. padding-bottom: 40rpx;
  85. box-sizing: border-box;
  86. .bg{
  87. width: 100%;
  88. height: 660rpx;
  89. background: url(https://i.ringzle.com/file/20240107/8bc656fc64fd4386a6b336a7dc8c86d0.png) no-repeat;
  90. background-size: 100% 100%;
  91. box-sizing: border-box;
  92. .b_money{
  93. display: flex;
  94. flex-direction: column;
  95. align-items: center;
  96. text{
  97. font-size: 56rpx;
  98. font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
  99. font-weight: bold;
  100. color: #FFFFFF;
  101. &:last-child{
  102. font-size: 32rpx;
  103. font-family: PingFang SC, PingFang SC;
  104. font-weight: 400;
  105. margin-top: 21rpx;
  106. }
  107. }
  108. }
  109. .b_items{
  110. margin-top: 20rpx;
  111. display: flex;
  112. justify-content: space-around;
  113. flex-wrap: wrap;
  114. &>view{
  115. width: 25%;
  116. margin-top: 40rpx;
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. text{
  121. font-size: 40rpx;
  122. font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
  123. font-weight: bold;
  124. color: #FFFFFF;
  125. &:last-child{
  126. font-size: 26rpx;
  127. font-family: PingFang SC, PingFang SC;
  128. font-weight: 400;
  129. margin-top: 10rpx;
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. /deep/.u-nav-slot{
  137. &>text{
  138. font-size: 34rpx;
  139. font-family: PingFang SC, PingFang SC;
  140. font-weight: bold;
  141. color: #FFFFFF;
  142. }
  143. .u-icon{
  144. margin: 8rpx 0 0 20rpx;
  145. }
  146. }
  147. </style>