index.vue 4.7 KB

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