详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
3.8 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <!-- 头部搜索框 -->
  4. <view class="head-bar">
  5. <view class="lf-flex search" @click="$url('/pages/userList/userList?name=搜索')">
  6. <text class="lf-iconfont icon-linedesign-12 lf-font-30 lf-m-l-20"></text>
  7. <view class="lf-m-l-10 lf-font-24">搜索</view>
  8. </view>
  9. <!-- <view class="botton" @click="$url('/pages/signIn/signIn')">签到</view> -->
  10. </view>
  11. <!-- 上墙部分 -->
  12. <view class="up-the-wall">
  13. <view class="lf-row-between">
  14. <view class="lf-font-32 lf-color-black">最新上墙</view>
  15. <!-- <view class="lf-color-999" @click="$url('/pages/wallMember/wallMember')">
  16. <text class="lf-font-28">查看全部</text>
  17. <text class="lf-iconfont icon-xiangyou"></text>
  18. </view> -->
  19. </view>
  20. <scroll-view class="scroll-bar" :scroll-x="true">
  21. <view class="lf-flex">
  22. <!-- <view class="user-item" @click="$url('/pages/upTheWall/upTheWall')">
  23. <lf-image class="add-icon" src="../../static/images/add_icon.png"></lf-image>
  24. <view class="lf-m-t-12 lf-color-555 lf-font-24 lf-line-1">我要上墙</view>
  25. </view> -->
  26. <view class="user-item" v-for="item in 6" :key="item">
  27. <image class="avatar" src="https://picsum.photos/200"></image>
  28. <view class="lf-m-t-12 lf-color-555 lf-font-24 lf-line-1">编号 73949</view>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. <self-line />
  34. <!-- 推荐单身 -->
  35. <view>
  36. <view class="lf-row-between lf-p-30 lf-p-32 lf-p-b-20">
  37. <view class="lf-font-32 lf-color-black">推荐单身</view>
  38. <view class="lf-color-999" @click="$url('/pages/userList/userList?name=最新')">
  39. <text class="lf-font-28">最新</text>
  40. <text class="lf-iconfont icon-xiangyou"></text>
  41. </view>
  42. </view>
  43. <lf-user-list></lf-user-list>
  44. </view>
  45. <!-- 加载 -->
  46. <view class="loading-more">
  47. <text class="loading-more-text">正在加载中</text>
  48. </view>
  49. <!-- 回到顶部 -->
  50. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  51. </view>
  52. </template>
  53. <script>
  54. import lfUserList from '@/components/lf-userList/lf-userList.vue';
  55. export default {
  56. components: { lfUserList },
  57. data() {
  58. return {
  59. }
  60. },
  61. onLoad(){
  62. // #ifdef H5
  63. this.href_str = JSON.stringify(location.href);
  64. let options = this.strToObj();
  65. console.log("options", options)
  66. // #endif
  67. },
  68. methods: {
  69. strToObj(){
  70. let val = this.href_str;
  71. let obj = {};
  72. if(!val) return obj;
  73. if(val.indexOf('?') < 0) return obj;
  74. let indexA = val.indexOf('?') + 1;
  75. let str = val.substr(indexA, val.length);
  76. let indexB = str.indexOf('#');
  77. str = str.substr(0, indexB);
  78. let arr = str.split('&');
  79. arr.map(item => {
  80. let a = item.split('=');
  81. obj[a[0]] = a[1];
  82. });
  83. return obj;
  84. }
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .head-bar{
  90. width: 750rpx;
  91. height: max-content;
  92. padding: 21rpx 32rpx;
  93. display: flex;
  94. justify-content: space-between;
  95. box-sizing: border-box;
  96. .search{
  97. // width: 530rpx;
  98. width: 100%;
  99. height: 62rpx;
  100. background: #F7F7F7;
  101. border-radius: 32rpx;
  102. color: #999999;
  103. }
  104. .botton{
  105. width: 140rpx;
  106. height: 62rpx;
  107. background: #F7F7F7;
  108. border-radius: 32rpx;
  109. text-align: center;
  110. line-height: 62rpx;
  111. color: #222222;
  112. }
  113. }
  114. .up-the-wall{
  115. width: 750rpx;
  116. height: max-content;
  117. padding: 21rpx 32rpx 0;
  118. .scroll-bar{
  119. width: 100%;
  120. height: 164rpx;
  121. padding: 30rpx 0;
  122. .user-item{
  123. width: 136rpx;
  124. margin-right: 40rpx;
  125. display: flex;
  126. justify-content: center;
  127. flex-wrap: wrap;
  128. &:last-child{
  129. margin-right: 0rpx;
  130. }
  131. }
  132. .add-icon{
  133. width: 110rpx;
  134. height: 110rpx;
  135. border-radius: 50%;
  136. }
  137. .avatar{
  138. width: 110rpx;
  139. height: 110rpx;
  140. border: 5rpx solid #E21196;
  141. border-radius: 50%;
  142. box-sizing: border-box;
  143. }
  144. }
  145. }
  146. </style>