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. <cjSlider :value="age" min="0" max="35" blockWidth="18" blockColor="#FFC107" activeColor="#727272"
  22. inactiveColor="#727272" @moving="blockMoving"></cjSlider>
  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(0)"
  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 cjSlider from '@/components/cj-slider/cj-slider.vue'
  87. export default {
  88. components: {
  89. cjSlider,
  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(e) {
  113. console.log('正在滑动中', e)
  114. },
  115. sliderChange(e) {
  116. this.distance = e.detail.value
  117. },
  118. selsectSex(id) {
  119. //点击没反应
  120. this.sexId = id
  121. console.log(id);
  122. },
  123. },
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. ::v-deep uni-slider {
  128. margin: 0;
  129. }
  130. .screen-item {
  131. width: 100%;
  132. flex: 1;
  133. .list-scroll {
  134. width: 100%;
  135. flex: 1;
  136. overflow: auto;
  137. padding: 24rpx 32rpx 0 32rpx;
  138. box-sizing: border-box;
  139. display: flex;
  140. flex-direction: column;
  141. .screen-box {
  142. .age-name {
  143. margin: 0 0 20rpx 0;
  144. }
  145. .num-section {
  146. padding: 8rpx 0 0 0;
  147. width: 100%;
  148. display: flex;
  149. align-items: center;
  150. justify-content: space-between;
  151. margin: 0 0 40rpx 0;
  152. }
  153. .sex {
  154. display: flex;
  155. align-items: center;
  156. justify-content: space-between;
  157. margin: 0 0 40rpx 0;
  158. .sex-list {
  159. width: 212rpx;
  160. padding: 10rpx 0;
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. }
  165. }
  166. .view-user {
  167. width: 100%;
  168. display: flex;
  169. align-items: center;
  170. justify-content: space-between;
  171. margin: 0 0 40rpx 0;
  172. .view-user-left {}
  173. .view-user-right {
  174. display: flex;
  175. align-items: center;
  176. .view-user-right-mame {
  177. margin: 0 4rpx 0 0;
  178. }
  179. }
  180. }
  181. .placeholder-box {
  182. width: 100%;
  183. height: 1rpx;
  184. border-bottom: 2rpx dashed #383838;
  185. margin: 0 0 40rpx 0;
  186. }
  187. .aim-box {
  188. width: 100%;
  189. display: flex;
  190. flex-direction: column;
  191. .aim-title {
  192. display: flex;
  193. align-items: center;
  194. margin: 0 0 4rpx 0;
  195. .title-box {
  196. width: 4rpx;
  197. height: 32rpx;
  198. margin: 0 8rpx 0 0;
  199. }
  200. }
  201. .aim-list {
  202. display: flex;
  203. align-items: center;
  204. flex-wrap: wrap;
  205. .list-box {
  206. width: 25%;
  207. display: flex;
  208. flex-direction: column;
  209. align-items: center;
  210. // margin: 0 60rpx 0 0;
  211. padding: 32rpx 0 0 0;
  212. .list-box-img {
  213. width: 120rpx;
  214. height: 120rpx;
  215. margin: 0 0 16rpx 0;
  216. flex-shrink: 0;
  217. }
  218. .list-box-name {
  219. white-space: nowrap;
  220. }
  221. }
  222. .list-box:last-child {
  223. margin: 0;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. </style>