like-user.vue 4.3 KB

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