index.vue 4.6 KB

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