like-me.vue 7.1 KB

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