详情小程序
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.

148 lines
3.7 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
  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. this.href_str = JSON.stringify(location.href);
  63. let options = this.strToObj();
  64. console.log("options", options)
  65. },
  66. methods: {
  67. strToObj(){
  68. let val = this.href_str;
  69. let obj = {};
  70. if(!val) return obj;
  71. if(val.indexOf('?') < 0) return obj;
  72. let indexA = val.indexOf('?') + 1;
  73. let str = val.substr(indexA, val.length);
  74. let indexB = str.indexOf('#');
  75. str = str.substr(0, indexB);
  76. let arr = str.split('&');
  77. arr.map(item => {
  78. let a = item.split('=');
  79. obj[a[0]] = a[1];
  80. });
  81. return obj;
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. .head-bar{
  88. width: 750rpx;
  89. height: max-content;
  90. padding: 21rpx 32rpx;
  91. display: flex;
  92. justify-content: space-between;
  93. box-sizing: border-box;
  94. .search{
  95. // width: 530rpx;
  96. width: 100%;
  97. height: 62rpx;
  98. background: #F7F7F7;
  99. border-radius: 32rpx;
  100. color: #999999;
  101. }
  102. .botton{
  103. width: 140rpx;
  104. height: 62rpx;
  105. background: #F7F7F7;
  106. border-radius: 32rpx;
  107. text-align: center;
  108. line-height: 62rpx;
  109. color: #222222;
  110. }
  111. }
  112. .up-the-wall{
  113. width: 750rpx;
  114. height: max-content;
  115. padding: 21rpx 32rpx 0;
  116. .scroll-bar{
  117. width: 100%;
  118. height: 164rpx;
  119. padding: 30rpx 0;
  120. .user-item{
  121. width: 136rpx;
  122. margin-right: 40rpx;
  123. display: flex;
  124. justify-content: center;
  125. flex-wrap: wrap;
  126. &:last-child{
  127. margin-right: 0rpx;
  128. }
  129. }
  130. .add-icon{
  131. width: 110rpx;
  132. height: 110rpx;
  133. border-radius: 50%;
  134. }
  135. .avatar{
  136. width: 110rpx;
  137. height: 110rpx;
  138. border: 5rpx solid #E21196;
  139. border-radius: 50%;
  140. box-sizing: border-box;
  141. }
  142. }
  143. }
  144. </style>