index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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 @click="navigatorAllOrder()">
  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" @click="stayInfo()">
  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. img: 'https://i.ringzle.com/file/20240107/83bca90dfb3f4b1fba36115dc7269219.png',
  54. title: '待确认',
  55. path: ''
  56. },
  57. {
  58. img: 'https://i.ringzle.com/file/20240107/7e7825255bbc4d06ae5d75e7bb23db71.png',
  59. title: '未支付',
  60. path: ''
  61. },
  62. {
  63. img: 'https://i.ringzle.com/file/20240107/c368a627821244929ab6477acb46fb15.png',
  64. title: '已预订',
  65. path: ''
  66. },
  67. {
  68. img: 'https://i.ringzle.com/file/20240107/656b5cc9e9514a08a3f2abd86d86b4ca.png',
  69. title: '已取消',
  70. path: ''
  71. }
  72. ]
  73. }
  74. },
  75. methods: {
  76. navigatorAllOrder() {
  77. uni.navigateTo({
  78. url: '/pagesMy/orderList/orderList'
  79. })
  80. },
  81. stayInfo() {
  82. uni.navigateTo({
  83. url: '/pagesMy/stayInfo/stayInfo'
  84. })
  85. }
  86. }
  87. }
  88. </script>
  89. <style scoped lang="less">
  90. .page {
  91. background: #F3F4F4;
  92. padding-bottom: 40rpx;
  93. box-sizing: border-box;
  94. overflow-y: auto;
  95. .bg {
  96. width: 100%;
  97. height: 360rpx;
  98. padding: 0 60rpx;
  99. background: url(https://i.ringzle.com/file/20240107/fc66824bcef14a3b9e19f8b966a128c7.png) no-repeat;
  100. background-size: 100% 100%;
  101. box-sizing: border-box;
  102. position: relative;
  103. z-index: 1;
  104. .account {
  105. display: flex;
  106. align-items: center;
  107. image {
  108. width: 96rpx;
  109. height: 96rpx;
  110. }
  111. text {
  112. font-size: 40rpx;
  113. font-family: PingFang SC, PingFang SC;
  114. font-weight: 800;
  115. color: #FFFFFF;
  116. margin: 0 20rpx;
  117. }
  118. }
  119. }
  120. .box {
  121. width: calc(100% - 60rpx);
  122. margin: 0 30rpx;
  123. padding: 30rpx;
  124. box-sizing: border-box;
  125. background: #FFFFFF;
  126. border-radius: 10rpx 10rpx 10rpx 10rpx;
  127. }
  128. .orders {
  129. margin-top: -25rpx;
  130. position: relative;
  131. z-index: 2;
  132. .o_top {
  133. display: flex;
  134. align-items: center;
  135. justify-content: space-between;
  136. &>text {
  137. font-size: 32rpx;
  138. font-family: PingFang SC, PingFang SC;
  139. font-weight: 800;
  140. color: #333333;
  141. }
  142. &>view {
  143. display: flex;
  144. align-items: center;
  145. &>text {
  146. font-size: 24rpx;
  147. font-family: PingFang SC, PingFang SC;
  148. font-weight: 400;
  149. color: #999999;
  150. margin-right: 10rpx;
  151. }
  152. }
  153. }
  154. .o_menus {
  155. margin-top: 30rpx;
  156. padding-top: 30rpx;
  157. border-top: 1rpx solid #F1F1F1;
  158. display: flex;
  159. align-items: center;
  160. justify-content: space-around;
  161. flex-wrap: wrap;
  162. &>view {
  163. width: 25%;
  164. display: flex;
  165. flex-direction: column;
  166. align-items: center;
  167. image {
  168. width: 64rpx;
  169. height: 64rpx;
  170. }
  171. text {
  172. font-size: 24rpx;
  173. font-family: PingFang SC, PingFang SC;
  174. font-weight: 400;
  175. color: #1F2425;
  176. margin-top: 10rpx;
  177. }
  178. }
  179. }
  180. }
  181. .menu {
  182. margin-top: 30rpx;
  183. display: flex;
  184. align-items: center;
  185. justify-content: space-between;
  186. text {
  187. font-size: 30rpx;
  188. font-family: PingFang SC, PingFang SC;
  189. font-weight: 400;
  190. color: #333333;
  191. }
  192. }
  193. }
  194. </style>