hall.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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,index) in list" :key="index" @click="nav(item.id)">
  10. <view class="shingle-bg"><image :src="item.image" mode=""></image></view>
  11. <view class="shinglem-title flex">
  12. <image class="tbg" src="../../static/img/tbg-left.png" mode=""></image>
  13. <view class="shinglemt-center">
  14. <image class="address" src="../../static/img/address.png" mode=""></image>
  15. <view class="shingle-font">{{ item.name }}</view>
  16. </view>
  17. <image class="tbg" src="../../static/img/tbg-right.png" mode=""></image>
  18. </view>
  19. <view class="shingle-mmain flex">
  20. <view class="smmain-item">
  21. <view class="smitem-top">开放中</view>
  22. <view class="smitem-bottom">状态</view>
  23. </view>
  24. <view class="shu"></view>
  25. <view class="smmain-item">
  26. <view class="smitem-top">纯平</view>
  27. <view class="smitem-bottom clamp">{{ item.nickname }}1111111111</view>
  28. </view>
  29. <view class="shu"></view>
  30. <view class="smmain-item">
  31. <view class="people flex">
  32. <view class="peopleitem" v-for="item in 1"><image src="../../static/img/busy.png" mode=""></image></view>
  33. <view class="peopleitem" v-for="item in 4"><image src="../../static/img/leisure.png" mode=""></image></view>
  34. </view>
  35. <view class="smitem-bottom">流畅</view>
  36. </view>
  37. </view>
  38. <image class="right-bottom" src="../../static/img/right-bottom.png" mode=""></image>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import { tabbar } from '@/utils/tabbar.js';
  45. import { auction_gu } from '@/api/hall.js';
  46. export default {
  47. data() {
  48. return {
  49. tabbar: tabbar,
  50. current: 2,
  51. list:[],
  52. page:1,
  53. limit:10,
  54. loadingType: 'more',
  55. };
  56. },
  57. onShow() {
  58. this.loadData();
  59. },
  60. methods: {
  61. loadData() {
  62. const obj = this
  63. if(obj.loadingType == 'nomore' || obj.loadingType == 'loading') {
  64. return ;
  65. }
  66. obj.loadingType = 'loading';
  67. auction_gu({pages:obj.page,limit:obj.limit}).then(({data}) =>{
  68. console.log(data);
  69. this.list = data
  70. }).catch(e =>{
  71. console.log(e);
  72. })
  73. },
  74. nav(id){
  75. uni.navigateTo({
  76. url: "/pages/hall/halllist?id=" + id
  77. })
  78. }
  79. }
  80. };
  81. </script>
  82. <style lang="less">
  83. .center,
  84. page {
  85. height: auto;
  86. min-height: 100%;
  87. background: #ffffff;
  88. }
  89. .top {
  90. position: relative;
  91. width: 750rpx;
  92. height: 346rpx;
  93. .top-bg {
  94. position: absolute;
  95. top: 0;
  96. left: 0;
  97. right: 0;
  98. width: 750rpx;
  99. height: 346rpx;
  100. }
  101. .title {
  102. padding-top: 20rpx;
  103. text-align: center;
  104. position: relative;
  105. z-index: 2;
  106. font-size: 36rpx;
  107. font-family: PingFang SC;
  108. font-weight: bold;
  109. color: #ffffff;
  110. }
  111. }
  112. .hall-main {
  113. margin: -252rpx auto 0;
  114. width: 700rpx;
  115. height: 300rpx;
  116. image {
  117. width: 100%;
  118. height: 100%;
  119. }
  120. }
  121. .hall-center {
  122. margin-top: 34rpx;
  123. }
  124. .shingle-main {
  125. margin: 20rpx auto;
  126. width: 690rpx;
  127. height: 218rpx;
  128. position: relative;
  129. .shingle-bg {
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. right: 0;
  134. width: 690rpx;
  135. height: 218rpx;
  136. image {
  137. width: 690rpx;
  138. height: 218rpx;
  139. }
  140. }
  141. .shinglem-title {
  142. position: relative;
  143. z-index: 2;
  144. justify-content: center;
  145. height: 70rpx;
  146. .tbg {
  147. height: 70rpx;
  148. width: 40rpx;
  149. }
  150. .shinglemt-center {
  151. display: flex;
  152. align-items: center;
  153. background: rgba(220,38,43,0.66);
  154. }
  155. .address {
  156. width: 28rpx;
  157. height: 30rpx;
  158. }
  159. .shingle-font {
  160. font-size: 36rpx;
  161. font-family: PingFang SC;
  162. font-weight: bold;
  163. color: #ffffff;
  164. line-height: 70rpx;
  165. margin-left: 14rpx;
  166. }
  167. }
  168. .shingle-mmain {
  169. position: relative;
  170. z-index: 2;
  171. margin-top: 30rpx;
  172. .smmain-item {
  173. width: 33%;
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. .smitem-top {
  178. font-size: 30rpx;
  179. font-family: PingFang SC;
  180. font-weight: bold;
  181. color: #ffffff;
  182. }
  183. .smitem-bottom {
  184. margin-top: 10rpx;
  185. font-size: 30rpx;
  186. font-family: PingFang SC;
  187. font-weight: 500;
  188. color: #ffffff;
  189. }
  190. .people {
  191. justify-content: center;
  192. .peopleitem {
  193. width: 24rpx;
  194. height: 34rpx;
  195. image {
  196. width: 100%;
  197. height: 100%;
  198. }
  199. }
  200. }
  201. }
  202. .shu {
  203. width: 2rpx;
  204. height: 70rpx;
  205. background: #ffffff;
  206. }
  207. }
  208. .right-bottom {
  209. position: absolute;
  210. z-index: 2;
  211. right: 0;
  212. bottom: 0;
  213. width: 94rpx;
  214. height: 92rpx;
  215. }
  216. }
  217. </style>