screen-item.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <view class="screen-item flex-common-css sys-background-black">
  3. <Nav :bgckgroundBox="'#141414'" :title="'筛选'"></Nav>
  4. <scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
  5. <view class="screen-box">
  6. <view class="age-name sys-size-32 sys-color-white">
  7. 距离 {{distance}}
  8. </view>
  9. <slider :value="distance" @changing="sliderChange" min="0" max="500" activeColor="#727272"
  10. backgroundColor="#727272" block-size="6" block-color="#FFC107" />
  11. <view class="num-section sys-size-28 sys-color-5B ">
  12. <view class="">
  13. okm
  14. </view>
  15. <view class="">
  16. </view>
  17. </view>
  18. <view class="age-name sys-size-32 sys-color-white">
  19. 年龄 {{`${age[0]} - ${age[1]}`}}
  20. </view>
  21. <cjSliderTwo v-model="age" :min="0" :max="35" :step="1" :blockWidth="18" @moving="blockMoving"
  22. activeColor="#727272" inactiveColor="#727272" blockColor="#FFC107" />
  23. <view class="num-section sys-size-28 sys-color-5B">
  24. <view class="">
  25. okm
  26. </view>
  27. <view class="">
  28. 35+
  29. </view>
  30. </view>
  31. <view class="sex">
  32. <view v-for="(item,index) in sex" :key="index" class="sex-list sys-size-28 sys-radius-12"
  33. @click="selsectSex(item.id)"
  34. :class="sexId == item.id?'sys-background-FFC107 sys-color-black':'sys-color-gray-646464 sys-background-222'">
  35. {{item.name}}
  36. </view>
  37. </view>
  38. <view class="view-user">
  39. <view class="view-user-left sys-color-white sys-size-32">
  40. 优先查看用户
  41. </view>
  42. <view class="view-user-right">
  43. <view class="view-user-right-name sys-color-5B sys-size-28">
  44. 未设置
  45. </view>
  46. <uni-icons type="forward" size="20" color="#5B5B5B"></uni-icons>
  47. </view>
  48. </view>
  49. <view class="view-user">
  50. <view class="view-user-left sys-color-white sys-size-32">
  51. 速配星座
  52. </view>
  53. <view class="view-user-right">
  54. <view class="view-user-right-name sys-color-5B sys-size-28">
  55. 未设置
  56. </view>
  57. <uni-icons type="forward" size="20" color="#5B5B5B"></uni-icons>
  58. </view>
  59. </view>
  60. <view class="placeholder-box"></view>
  61. <view class="aim-box">
  62. <view class="aim-title">
  63. <view class="title-box sys-radius-200 sys-background-FFC107"></view>
  64. <view class="title-name sys-size-32 sys-color-white">
  65. 交友目的
  66. </view>
  67. </view>
  68. <view class="aim-text sys-color-5B sys-size-24">
  69. 人数不足时,将自动扬大范围
  70. </view>
  71. <view class="aim-list">
  72. <view class="list-box" v-for="(item,index) in 10">
  73. <image class="list-box-img sys-radius-40" src="../../../static/img/circle/1.png" mode="">
  74. </image>
  75. <view class="list-box-name sys-color-5B sys-size-26">
  76. 认识的朋友
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </scroll-view>
  83. </view>
  84. </template>
  85. <script>
  86. import cjSliderTwo from '@/components/jxs-slider/jxs-slider.vue'
  87. export default {
  88. components: {
  89. cjSliderTwo
  90. },
  91. data() {
  92. return {
  93. distance: 50,
  94. age: [18, 30],
  95. sex: [{
  96. 'name': '男生',
  97. 'id': 0
  98. }, {
  99. 'name': '女生',
  100. 'id': 1
  101. }, {
  102. 'name': '不限',
  103. 'id': 2
  104. }],
  105. sexId: 0,
  106. };
  107. },
  108. mounted() {},
  109. methods: {
  110. scroll() {},
  111. scrolltolower() {},
  112. blockMoving() {
  113. console.log('正在滑动中', this.age)
  114. },
  115. sliderChange(e) {
  116. this.distance = e.detail.value
  117. },
  118. selsectSex(id) {
  119. this.sexId = id
  120. console.log(id);
  121. },
  122. },
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. ::v-deep uni-slider {
  127. margin: 0;
  128. }
  129. .screen-item {
  130. width: 100%;
  131. flex: 1;
  132. .list-scroll {
  133. width: 100%;
  134. flex: 1;
  135. overflow: auto;
  136. padding: 24rpx 32rpx 0 32rpx;
  137. box-sizing: border-box;
  138. display: flex;
  139. flex-direction: column;
  140. .screen-box {
  141. .age-name {
  142. margin: 0 0 20rpx 0;
  143. }
  144. .num-section {
  145. padding: 8rpx 0 0 0;
  146. width: 100%;
  147. display: flex;
  148. align-items: center;
  149. justify-content: space-between;
  150. margin: 0 0 40rpx 0;
  151. }
  152. .sex {
  153. display: flex;
  154. align-items: center;
  155. justify-content: space-between;
  156. margin: 0 0 40rpx 0;
  157. .sex-list {
  158. width: 212rpx;
  159. padding: 10rpx 0;
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. }
  164. }
  165. .view-user {
  166. width: 100%;
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. margin: 0 0 40rpx 0;
  171. .view-user-left {}
  172. .view-user-right {
  173. display: flex;
  174. align-items: center;
  175. .view-user-right-mame {
  176. margin: 0 4rpx 0 0;
  177. }
  178. }
  179. }
  180. .placeholder-box {
  181. width: 100%;
  182. height: 1rpx;
  183. border-bottom: 2rpx dashed #383838;
  184. margin: 0 0 40rpx 0;
  185. }
  186. .aim-box {
  187. width: 100%;
  188. display: flex;
  189. flex-direction: column;
  190. .aim-title {
  191. display: flex;
  192. align-items: center;
  193. margin: 0 0 4rpx 0;
  194. .title-box {
  195. width: 4rpx;
  196. height: 32rpx;
  197. margin: 0 8rpx 0 0;
  198. }
  199. }
  200. .aim-list {
  201. display: flex;
  202. align-items: center;
  203. flex-wrap: wrap;
  204. .list-box {
  205. width: 25%;
  206. display: flex;
  207. flex-direction: column;
  208. align-items: center;
  209. // margin: 0 60rpx 0 0;
  210. padding: 32rpx 0 0 0;
  211. .list-box-img {
  212. width: 120rpx;
  213. height: 120rpx;
  214. margin: 0 0 16rpx 0;
  215. flex-shrink: 0;
  216. }
  217. .list-box-name {
  218. white-space: nowrap;
  219. }
  220. }
  221. .list-box:last-child {
  222. margin: 0;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. </style>