hall.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <image class="top-bg" src="../../static/img/hall-bg.png" mode=""></image>
  5. <view class="title">趣豆会馆</view>
  6. </view>
  7. <view class="hall-main"><image src="../../static/img/hell-main.png" mode=""></image></view>
  8. <view class="hall-center">
  9. <view class="shingle-main" v-for="item in 10" @click="nav('/pages/hall/halllist')">
  10. <view class="shingle-bg"><image src="../../static/img/sim-bg.png" mode=""></image></view>
  11. <view class="shinglem-title flex">
  12. <image class="address" src="../../static/img/address.png" mode=""></image>
  13. <view class="shingle-font">浙江馆</view>
  14. </view>
  15. <view class="shingle-mmain flex">
  16. <view class="smmain-item">
  17. <view class="smitem-top">开放中</view>
  18. <view class="smitem-bottom">状态</view>
  19. </view>
  20. <view class="shu"></view>
  21. <view class="smmain-item">
  22. <view class="smitem-top">纯平</view>
  23. <view class="smitem-bottom">馆长</view>
  24. </view>
  25. <view class="shu"></view>
  26. <view class="smmain-item">
  27. <view class="people flex">
  28. <view class="peopleitem" v-for="item in 1"><image src="../../static/img/busy.png" mode=""></image></view>
  29. <view class="peopleitem" v-for="item in 4"><image src="../../static/img/leisure.png" mode=""></image></view>
  30. </view>
  31. <view class="smitem-bottom">流畅</view>
  32. </view>
  33. </view>
  34. <image class="right-bottom" src="../../static/img/right-bottom.png" mode=""></image>
  35. </view>
  36. </view>
  37. <u-tabbar activeColor="#375AFE" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
  38. </view>
  39. </template>
  40. <script>
  41. import { tabbar } from '@/utils/tabbar.js';
  42. export default {
  43. data() {
  44. return {
  45. tabbar: tabbar,
  46. current: 2
  47. };
  48. },
  49. methods: {
  50. nav(url){
  51. uni.navigateTo({
  52. url
  53. })
  54. }
  55. }
  56. };
  57. </script>
  58. <style lang="less">
  59. .center,
  60. page {
  61. height: auto;
  62. min-height: 100%;
  63. background: #ffffff;
  64. }
  65. .top {
  66. position: relative;
  67. width: 750rpx;
  68. height: 346rpx;
  69. .top-bg {
  70. position: absolute;
  71. top: 0;
  72. left: 0;
  73. right: 0;
  74. width: 750rpx;
  75. height: 346rpx;
  76. }
  77. .title {
  78. padding-top: 20rpx;
  79. text-align: center;
  80. position: relative;
  81. z-index: 2;
  82. font-size: 36rpx;
  83. font-family: PingFang SC;
  84. font-weight: bold;
  85. color: #ffffff;
  86. }
  87. }
  88. .hall-main {
  89. margin: -252rpx auto 0;
  90. width: 700rpx;
  91. height: 300rpx;
  92. image {
  93. width: 100%;
  94. height: 100%;
  95. }
  96. }
  97. .hall-center {
  98. margin-top: 34rpx;
  99. }
  100. .shingle-main {
  101. margin: 20rpx auto;
  102. width: 690rpx;
  103. height: 218rpx;
  104. position: relative;
  105. .shingle-bg {
  106. position: absolute;
  107. top: 0;
  108. left: 0;
  109. right: 0;
  110. width: 690rpx;
  111. height: 218rpx;
  112. image {
  113. width: 690rpx;
  114. height: 218rpx;
  115. }
  116. }
  117. .shinglem-title {
  118. position: relative;
  119. z-index: 2;
  120. justify-content: center;
  121. height: 70rpx;
  122. .address {
  123. width: 28rpx;
  124. height: 30rpx;
  125. }
  126. .shingle-font {
  127. font-size: 36rpx;
  128. font-family: PingFang SC;
  129. font-weight: bold;
  130. color: #ffffff;
  131. line-height: 70rpx;
  132. margin-left: 14rpx;
  133. }
  134. }
  135. .shingle-mmain {
  136. position: relative;
  137. z-index: 2;
  138. margin-top: 30rpx;
  139. .smmain-item {
  140. width: 33%;
  141. display: flex;
  142. flex-direction: column;
  143. align-items: center;
  144. .smitem-top {
  145. font-size: 30rpx;
  146. font-family: PingFang SC;
  147. font-weight: bold;
  148. color: #ffffff;
  149. }
  150. .smitem-bottom {
  151. margin-top: 10rpx;
  152. font-size: 30rpx;
  153. font-family: PingFang SC;
  154. font-weight: 500;
  155. color: #ffffff;
  156. }
  157. .people {
  158. justify-content: center;
  159. .peopleitem {
  160. width: 24rpx;
  161. height: 34rpx;
  162. image {
  163. width: 100%;
  164. height: 100%;
  165. }
  166. }
  167. }
  168. }
  169. .shu {
  170. width: 2rpx;
  171. height: 70rpx;
  172. background: #ffffff;
  173. }
  174. }
  175. .right-bottom {
  176. position: absolute;
  177. z-index: 2;
  178. right: 0;
  179. bottom: 0;
  180. width: 94rpx;
  181. height: 92rpx;
  182. }
  183. }
  184. </style>