index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="page" :style="{'height':(h-th)+'px'}">
  3. <c-nav-bar title="我的" bgColor="transparent" :titleStyle="titleStyle" :showIcon="false"></c-nav-bar>
  4. <view class="bg" :style="{'padding-top':(mt+30)+'px'}">
  5. <view class="account">
  6. <image :src="avatar"></image>
  7. <text>{{name}}</text>
  8. <u-icon name="arrow-right" color="#ffffff" size="28"></u-icon>
  9. </view>
  10. </view>
  11. <view class="orders box">
  12. <view class="o_top">
  13. <text>订单管理</text>
  14. <view>
  15. <text>全部</text>
  16. <u-icon name="arrow-right" color="#999999" size="28"></u-icon>
  17. </view>
  18. </view>
  19. <view class="o_menus">
  20. <view v-for="(item,index) in menus" :key="index">
  21. <image :src="item.img"></image>
  22. <text>{{item.title}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="menu box">
  27. <text>酒店民宿信息</text>
  28. <u-icon name="arrow-right" color="#999999" size="28"></u-icon>
  29. </view>
  30. <view class="menu box">
  31. <text>房型管理</text>
  32. <u-icon name="arrow-right" color="#999999" size="28"></u-icon>
  33. </view>
  34. <view class="menu box">
  35. <text>预订二维码</text>
  36. <u-icon name="arrow-right" color="#999999" size="28"></u-icon>
  37. </view>
  38. <Tabbar :tabbarIndex="3"></Tabbar>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. titleStyle: {
  46. fontSize: '34rpx',
  47. fontWeight: "bold",
  48. color: '#FFFFFF'
  49. },
  50. avatar:'https://i.ringzle.com/file/20240107/d61321708599457bbcca1c089154e635.png',
  51. name:'吴彦霖',
  52. menus:[
  53. {
  54. img:'https://i.ringzle.com/file/20240107/83bca90dfb3f4b1fba36115dc7269219.png',
  55. title:'待确认',
  56. path:''
  57. },
  58. {
  59. img:'https://i.ringzle.com/file/20240107/7e7825255bbc4d06ae5d75e7bb23db71.png',
  60. title:'未支付',
  61. path:''
  62. },
  63. {
  64. img:'https://i.ringzle.com/file/20240107/c368a627821244929ab6477acb46fb15.png',
  65. title:'已预订',
  66. path:''
  67. },
  68. {
  69. img:'https://i.ringzle.com/file/20240107/656b5cc9e9514a08a3f2abd86d86b4ca.png',
  70. title:'已取消',
  71. path:''
  72. }
  73. ]
  74. }
  75. },
  76. methods: {
  77. }
  78. }
  79. </script>
  80. <style scoped lang="less">
  81. .page{
  82. background: #F3F4F4;
  83. padding-bottom: 40rpx;
  84. box-sizing: border-box;
  85. overflow-y: auto;
  86. .bg{
  87. width: 100%;
  88. height: 360rpx;
  89. padding: 0 60rpx;
  90. background: url(https://i.ringzle.com/file/20240107/fc66824bcef14a3b9e19f8b966a128c7.png) no-repeat;
  91. background-size: 100% 100%;
  92. box-sizing: border-box;
  93. position: relative;
  94. z-index: 1;
  95. .account{
  96. display: flex;
  97. align-items: center;
  98. image{
  99. width: 96rpx;
  100. height: 96rpx;
  101. }
  102. text{
  103. font-size: 40rpx;
  104. font-family: PingFang SC, PingFang SC;
  105. font-weight: 800;
  106. color: #FFFFFF;
  107. margin: 0 20rpx;
  108. }
  109. }
  110. }
  111. .box{
  112. width: calc(100% - 60rpx);
  113. margin: 0 30rpx;
  114. padding: 30rpx;
  115. box-sizing: border-box;
  116. background: #FFFFFF;
  117. border-radius: 10rpx 10rpx 10rpx 10rpx;
  118. }
  119. .orders{
  120. margin-top: -60rpx;
  121. position: relative;
  122. z-index: 2;
  123. .o_top{
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. &>text{
  128. font-size: 32rpx;
  129. font-family: PingFang SC, PingFang SC;
  130. font-weight: 800;
  131. color: #333333;
  132. }
  133. &>view{
  134. display: flex;
  135. align-items: center;
  136. &>text{
  137. font-size: 24rpx;
  138. font-family: PingFang SC, PingFang SC;
  139. font-weight: 400;
  140. color: #999999;
  141. margin-right: 10rpx;
  142. }
  143. }
  144. }
  145. .o_menus{
  146. margin-top: 30rpx;
  147. padding-top: 30rpx;
  148. border-top: 1rpx solid #F1F1F1;
  149. display: flex;
  150. align-items: center;
  151. justify-content: space-around;
  152. flex-wrap: wrap;
  153. &>view{
  154. width: 25%;
  155. display: flex;
  156. flex-direction: column;
  157. align-items: center;
  158. image{
  159. width: 64rpx;
  160. height: 64rpx;
  161. }
  162. text{
  163. font-size: 24rpx;
  164. font-family: PingFang SC, PingFang SC;
  165. font-weight: 400;
  166. color: #1F2425;
  167. margin-top: 10rpx;
  168. }
  169. }
  170. }
  171. }
  172. .menu{
  173. margin-top: 30rpx;
  174. display: flex;
  175. align-items: center;
  176. justify-content: space-between;
  177. text{
  178. font-size: 30rpx;
  179. font-family: PingFang SC, PingFang SC;
  180. font-weight: 400;
  181. color: #333333;
  182. }
  183. }
  184. }
  185. </style>