like-me.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view class="like-me flex-common-css box-sizing-border iPhone-bottom">
  3. <Nav title='谁喜欢我' titleColor='#333' bgckgroundBox='#fff'></Nav>
  4. <scroll-view scroll-y="true" class="info-box box-sizing-border"
  5. @scrolltolower="scrolltolower()" >
  6. <view class="" :class="true?'flex-box':''">
  7. <view class="card">
  8. <view class="car-home">
  9. <view class="car-info">
  10. <view class="sys-size-40 sys-weight-600 sys-color-white">10000</view>
  11. <view class="sys-size-24 sys-color-gray-9">最近收到</view>
  12. </view>
  13. <view class="car-info-xian"></view>
  14. <view class="car-info">
  15. <view class="sys-size-40 sys-weight-600 sys-color-white">100</view>
  16. <view class="sys-size-24 sys-color-gray-9">收到的喜欢</view>
  17. </view>
  18. </view>
  19. <image class="card-b-img" src="@/static/img/wallet/jiasu.png" mode="aspectFill"></image>
  20. </view>
  21. <view class="info-title">
  22. <view class="title-box">
  23. <image src="@/static/img/wallet/xd-black.png" mode="aspectFill"></image>
  24. <text class="sys-size-32 sys-color-gray-3 sys-weight-600">心动擦亮</text>
  25. </view>
  26. <view class="title-box" @click="to(1)">
  27. <text class="sys-size-24 sys-color-gray-9">全部</text>
  28. <uni-icons type="forward" size="12" color="#999"></uni-icons>
  29. </view>
  30. </view>
  31. <scroll-view scroll-x="true" class="x-scroll" @scrolltoupper="scrolltoupper">
  32. <view class="x-box" v-for="(item,i) in 10" :key="i">
  33. <image src="@/static/img/circle/1.png" mode="aspectFill"></image>
  34. <view class="box-text sys-size-24 sys-color-white">24/处女座</view>
  35. </view>
  36. </scroll-view>
  37. <view class="info-title">
  38. <view class="title-box">
  39. <image src="@/static/img/wallet/like-black.png" mode="aspectFill"></image>
  40. <text class="sys-size-32 sys-color-gray-3 sys-weight-600">新的喜欢</text>
  41. </view>
  42. </view>
  43. <!-- <view class="y-list">
  44. <view class="y-box" v-for="(item,i) in 10" :key="i">
  45. <image src="@/static/img/circle/1.png" mode="aspectFill"></image>
  46. <view class="list-info box-sizing-border">
  47. <view class="">
  48. <view class="info-name sys-size-36 sys-color-white sys-weight-600 sys-webkit-box">仰看辉煌仰看辉煌仰看辉煌</view>
  49. <view class="sys-size-24 sys-color-white">18/女/处女座</view>
  50. </view>
  51. <view class="info-right" @click="to(2)">
  52. <image src="@/static/img/wallet/s-xin.png" mode="aspectFill"></image>
  53. <image src="@/static/img/wallet/n-xin.png" mode="aspectFill"></image>
  54. </view>
  55. </view>
  56. </view>
  57. </view> -->
  58. <view class="n-list y-list">
  59. <view class="y-box" v-for="(item,i) in 4" :key="i">
  60. <image class="image-1" src="@/static/img/circle/1.png" mode="aspectFill"></image>
  61. <view class="list-info box-sizing-border">
  62. <view class="">
  63. <view class="info-name-1"></view>
  64. <view class="info-name-1"></view>
  65. </view>
  66. <image class="image-2" src="@/static/img/wallet/n-xin.png" mode="aspectFill"></image>
  67. </view>
  68. </view>
  69. <view class="list-m">
  70. <view class="list-m-b box-sizing-border">
  71. <view class="b-view sys-size-32 sys-color-gray-3">
  72. <uni-icons type="locked-filled" size="14" color="#333"></uni-icons>
  73. 立即解锁
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </scroll-view>
  80. </view>
  81. </template>
  82. <script>
  83. export default {
  84. data(){
  85. return{
  86. }
  87. },
  88. methods:{
  89. scrolltoupper(){
  90. // x 轴触底
  91. },
  92. scrolltolower(){
  93. // y 轴触底
  94. console.log('触底');
  95. },
  96. to(type,item){
  97. if(type === 1){
  98. // 更多心动擦亮
  99. uni.navigateTo({
  100. 'url':'/pages/wallet/like-user?isUrlType=2'
  101. })
  102. }
  103. },
  104. },
  105. }
  106. </script>
  107. <style scoped lang="scss">
  108. .like-me{
  109. .flex-box{
  110. height: 100%;
  111. display: flex;
  112. flex-direction: column;
  113. .n-list{
  114. width: 100%;
  115. flex: 1;
  116. overflow: hidden;
  117. position: relative;
  118. .list-m{
  119. width: 100%;
  120. height: 100%;
  121. background: rgba(255,255,255,0.6);
  122. position: absolute;
  123. top:0;
  124. left: 0;
  125. z-index: 110;
  126. .list-m-b{
  127. position: absolute;
  128. bottom: 0;
  129. z-index: 130;
  130. width: 100%;
  131. height: 190rpx;
  132. background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  133. padding-top: 70rpx;
  134. .b-view{
  135. margin: 0 auto;
  136. width: 590rpx;
  137. height: 88rpx;
  138. background: #FFC107;
  139. border-radius: 200rpx;
  140. line-height: 88rpx;
  141. text-align: center;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. .info-box{
  148. flex: 1;
  149. overflow: auto;
  150. padding: 32rpx;
  151. .info-title{
  152. display: flex;
  153. justify-content: space-between;
  154. .title-box{
  155. line-height: 20rpx;
  156. display: flex;
  157. align-items: center;
  158. image{
  159. width: 40rpx;
  160. height: 40rpx;
  161. margin-right: 8rpx;
  162. }
  163. }
  164. }
  165. .y-list{
  166. display: flex;
  167. justify-content: space-between;
  168. flex-flow: row wrap;
  169. margin-top: 32rpx;
  170. .y-box{
  171. width: 334rpx;
  172. height: 440rpx;
  173. margin-bottom: 18rpx;
  174. border-radius: 20rpx;
  175. position: relative;
  176. .image-1{
  177. width: 334rpx;
  178. height: 440rpx;
  179. border-radius: 20rpx;
  180. }
  181. .list-info{
  182. width: 334rpx;
  183. padding: 24rpx;
  184. z-index: 14;
  185. position: absolute;
  186. bottom: 0;
  187. display: flex;
  188. justify-content: space-between;
  189. .info-name{
  190. width: 200rpx;
  191. margin-bottom: 4rpx;
  192. }
  193. .info-name-1{
  194. margin-top: 16rpx;
  195. width: 154rpx;
  196. height: 16rpx;
  197. background: #D9D9D9;
  198. border-radius: 200rpx;
  199. }
  200. .info-right{
  201. width: 80rpx;
  202. height: 80rpx;
  203. background-color: #fff;
  204. border-radius: 50%;
  205. text-align: center;
  206. image{
  207. width: 52rpx;
  208. height: 52rpx;
  209. margin-top: 14rpx;
  210. }
  211. }
  212. .image-2{
  213. width: 80rpx;
  214. height: 80rpx;
  215. border-radius: 50%;
  216. }
  217. }
  218. }
  219. }
  220. .x-scroll{
  221. width: 100%;
  222. height: 212rpx;
  223. white-space: nowrap;
  224. display: flex;
  225. padding: 36rpx 0;
  226. .x-box{
  227. display: inline-block;
  228. width: 160rpx;
  229. height: 212rpx;
  230. border-radius: 12rpx;
  231. margin-right: 16rpx;
  232. position: relative;
  233. .box-text{
  234. position: absolute;
  235. bottom: 8rpx;
  236. left: 8rpx;
  237. }
  238. image{
  239. width: 160rpx;
  240. height: 212rpx;
  241. border-radius: 12rpx;
  242. }
  243. }
  244. }
  245. }
  246. .card{
  247. width: 100%;
  248. height: 302rpx;
  249. border-radius: 16rpx;
  250. background: url('@/static/img/wallet/like-me.png') no-repeat;
  251. background-size: 100% 100%;
  252. padding: 24rpx 30rpx;
  253. box-sizing: border-box;
  254. margin-bottom: 46rpx;
  255. .car-home{
  256. display: flex;
  257. align-items: center;
  258. .car-info{
  259. min-width: 120rpx;
  260. text-align: center;
  261. }
  262. .car-info-xian{
  263. width: 2rpx;
  264. height: 62rpx;
  265. background-color: #999;
  266. margin: 0 80rpx;
  267. }
  268. }
  269. .card-b-img{
  270. margin-top: 60rpx;
  271. width: 100%;
  272. height: 108rpx;
  273. border-radius: 16rpx;
  274. }
  275. }
  276. }
  277. </style>