index.vue 4.6 KB

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