like-user.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="like-user flex-common-css box-sizing-border iPhone-bottom">
  3. <Nav title='喜欢的人' titleColor='#333' :rightShow='true' :rightType='2'>
  4. <template v-slot:right>
  5. <image @click="to(1)" class="nav-img" src="@/static/img/wallet/sd.png" mode="aspectFill"></image>
  6. </template>
  7. </Nav>
  8. <view class="like-text">
  9. <image src="@/static/img/wallet/h.png" mode="aspectFill"></image>
  10. <text class="sys-size-28 sys-color-gray-3">送出小花,搭讪心仪的他</text>
  11. </view>
  12. <view v-if="false" class="no-list sys-size-28 sys-color-gray-9">暂无心动</view>
  13. <scroll-view v-else scroll-y="true" class="list-scroll box-sizing-border" @scrolltolower="scrolltolower">
  14. <view class="list-home">
  15. <view class="list-box" v-for="(item,i) in 10" :key="i">
  16. <image class="image-bg" src="@/static/img/circle/1.png" mode="scaleToFill"></image>
  17. <image class="image-left" src="@/static/img/wallet/note.png" mode="scaleToFill"></image>
  18. <!-- <image class="image-type type-1" src="@/static/img/wallet/vip.png" mode="scaleToFill"></image> -->
  19. <image class="image-type type-2" src="@/static/img/wallet/svip.png" mode="scaleToFill"></image>
  20. <view class="list-info box-sizing-border">
  21. <view class="">
  22. <view class="info-name sys-size-36 sys-color-white sys-weight-600 sys-webkit-box">仰看辉煌仰看辉煌仰看辉煌</view>
  23. <view class="sys-size-24 sys-color-white">18/女/处女座</view>
  24. </view>
  25. <view class="info-right" @click="to(2)">
  26. <image src="@/static/img/wallet/h.png" mode="aspectFill"></image>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data(){
  37. return{
  38. page:1,
  39. total:0,
  40. list:[],
  41. }
  42. },
  43. methods:{
  44. scrolltolower(){
  45. // 触底
  46. },
  47. to(type){
  48. if(type === 1){
  49. console.log('曝光');
  50. }else if(type === 2){
  51. // 送花
  52. }
  53. },
  54. },
  55. }
  56. </script>
  57. <style scoped lang="scss">
  58. .like-user{
  59. .nav-img{
  60. width: 52rpx;
  61. height: 52rpx;
  62. }
  63. .like-text{
  64. display: flex;
  65. justify-content: center;
  66. align-items: center;
  67. margin: 24rpx 0;
  68. image{
  69. width: 40rpx;
  70. height: 40rpx;
  71. margin-right: 12rpx;
  72. }
  73. }
  74. .no-list{
  75. margin-top: 100rpx;
  76. text-align: center;
  77. }
  78. .list-scroll{
  79. flex: 1;
  80. overflow: auto;
  81. padding: 0 32rpx;
  82. .list-home{
  83. display: flex;
  84. justify-content: space-between;
  85. flex-flow: row wrap;
  86. }
  87. .list-box{
  88. width: 334rpx;
  89. height: 504rpx;
  90. border-radius: 20rpx;
  91. margin-bottom: 18rpx;
  92. position: relative;
  93. .list-info{
  94. width: 334rpx;
  95. padding: 24rpx;
  96. z-index: 14;
  97. position: absolute;
  98. bottom: 0;
  99. display: flex;
  100. justify-content: space-between;
  101. .info-name{
  102. width: 200rpx;
  103. margin-bottom: 4rpx;
  104. }
  105. .info-right{
  106. width: 80rpx;
  107. height: 80rpx;
  108. background-color: #fff;
  109. border-radius: 50%;
  110. text-align: center;
  111. image{
  112. width: 52rpx;
  113. height: 52rpx;
  114. margin-top: 14rpx;
  115. }
  116. }
  117. }
  118. .image-bg{
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. width: 334rpx;
  123. height: 504rpx;
  124. border-radius: 20rpx;
  125. z-index: 10;
  126. }
  127. .image-left{
  128. position: absolute;
  129. top: 0;
  130. left: 0;
  131. width: 134rpx;
  132. height: 44rpx;
  133. z-index: 11;
  134. }
  135. .image-type{
  136. position: absolute;
  137. top: 0;
  138. right: 0;
  139. z-index: 12;
  140. }
  141. .type-1{
  142. width: 48rpx;
  143. height: 28rpx;
  144. }
  145. .type-2{
  146. width: 64rpx;
  147. height: 28rpx;
  148. }
  149. }
  150. }
  151. }
  152. </style>