minMember.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image src="" mode=""></image>
  5. <view class="top-val">
  6. {{allMun || 0}}<text>人</text>
  7. </view>
  8. </view>
  9. <scroll-view scroll-y="true" :style="{'height': height}" class="list" @scrolltolower="loadData()">
  10. <!-- <empty v-if="list.length == 0" ></empty> -->
  11. <view class="apply-item flex" v-for="item in list">
  12. <view class="item-left flex">
  13. <image src="" mode="" class="item-img"></image>
  14. <view class="item-info flex">
  15. <view class="name">
  16. 假猪套
  17. </view>
  18. <view class="phone">
  19. 13245678911
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <uni-load-more :status="loadingType"></uni-load-more>
  25. <view class="btn-jg"></view>
  26. </scroll-view>
  27. <!-- <view class="btn-jg"></view> -->
  28. <view class="btn-wrapper">
  29. <navigator url="./applyList">
  30. <view class="btm-btn">
  31. 申请列表
  32. </view>
  33. </navigator>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import empty from '@/components/empty';
  39. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  40. export default {
  41. components: {
  42. empty,
  43. uniLoadMore
  44. },
  45. data() {
  46. return {
  47. height: '',
  48. list: [],
  49. loaded: false,
  50. loadingType: 'more',
  51. page: 1,
  52. limit: 10,
  53. allMun: 0,
  54. }
  55. },
  56. onReady(res) {
  57. var _this = this;
  58. uni.getSystemInfo({
  59. success: resu => {
  60. const query = uni.createSelectorQuery();
  61. query.select('.list').boundingClientRect();
  62. query.exec(function(res) {
  63. console.log(res, 'ddddddddddddd');
  64. _this.height = resu.windowHeight - res[0].top + 'px';
  65. console.log('打印页面的剩余高度', _this.height);
  66. });
  67. },
  68. fail: res => {}
  69. });
  70. },
  71. onLoad() {
  72. this.loadData()
  73. },
  74. methods: {
  75. loadData() {
  76. let obj = this
  77. if(obj.loadingType == 'loading') {
  78. return
  79. }
  80. if(obj.loadingType == 'noMore') {
  81. return
  82. }
  83. }
  84. }
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .top {
  89. width: 750rpx;
  90. height: 400rpx;
  91. position: relative;
  92. image {
  93. width: 100%;
  94. height: 100%;
  95. background-color: #bfa;
  96. position: absolute;
  97. top: 0;
  98. }
  99. .top-val {
  100. width: 100%;
  101. height: 100%;
  102. line-height:400rpx;
  103. text-align: center;
  104. font-size: 72rpx;
  105. font-family: PingFang SC;
  106. font-weight: bold;
  107. color: #FF4C4C;
  108. position: absolute;
  109. top: 0;
  110. text {
  111. font-size: 36rpx;
  112. }
  113. }
  114. }
  115. .btn-wrapper {
  116. width: 100%;
  117. height: 116rpx;
  118. z-index: 99;
  119. position: fixed;
  120. bottom: 0;
  121. left: 0;
  122. right: 0;
  123. margin: auto;
  124. background-color: #fff;
  125. .btm-btn {
  126. margin: 0 auto;
  127. width: 674rpx;
  128. height: 88rpx;
  129. background: #FF4C4C;
  130. border-radius: 44rpx;
  131. text-align: center;
  132. line-height: 88rpx;
  133. font-size: 36rpx;
  134. font-family: PingFang SC;
  135. font-weight: 500;
  136. color: #FFFFFF;
  137. }
  138. }
  139. .btn-jg {
  140. height: 116rpx;
  141. }
  142. .list {
  143. .apply-item {
  144. background-color: #fff;
  145. height: 130rpx;
  146. border-bottom: 1px solid #F0F0F0;
  147. padding: 0 35rpx 0 20rpx;
  148. &:last-child {
  149. border: none;
  150. }
  151. .item-left {
  152. .item-img {
  153. height: 80rpx;
  154. width: 80rpx;
  155. border-radius: 80rpx;
  156. background-color: red;
  157. }
  158. .item-info {
  159. height: 80rpx;
  160. flex-direction: column;
  161. padding-left: 20rpx;
  162. justify-content: space-around;
  163. align-items: flex-start;
  164. line-height: 1;
  165. .name {
  166. font-size: 30rpx;
  167. font-family: PingFangSC;
  168. font-weight: 500;
  169. color: #3F454B;
  170. }
  171. .phone {
  172. font-size: 22rpx;
  173. font-family: PingFang SC;
  174. font-weight: 400;
  175. color: #999999;
  176. }
  177. }
  178. }
  179. .item-btn {
  180. .err-btn {
  181. width: 98rpx;
  182. height: 47rpx;
  183. border: 1px solid #000000;
  184. border-radius: 5rpx;
  185. line-height: 47rpx;
  186. text-align: center;
  187. font-size: 24rpx;
  188. font-family: PingFang SC;
  189. font-weight: 500;
  190. color: #333333;
  191. }
  192. .pas-btn {
  193. width: 98rpx;
  194. height: 47rpx;
  195. background: linear-gradient(-35deg, #F8DD4F, #FBEB77);
  196. border-radius: 5rpx;
  197. line-height: 47rpx;
  198. text-align: center;
  199. font-size: 24rpx;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #333333;
  203. margin-left: 10rpx;
  204. }
  205. }
  206. .item-right {
  207. line-height: 129rpx;
  208. font-size: 24rpx;
  209. font-family: PingFang SC;
  210. font-weight: 400;
  211. color: #999999;
  212. }
  213. }
  214. }
  215. </style>