visitor.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class="visitor flex-common-css box-sizing-border iPhone-bottom">
  3. <Nav title='最近访客' titleColor='#333' :rightShow='true' :rightType='2'>
  4. <template v-slot:right>
  5. <view class="add-view">
  6. <image src="@/static/img/wallet/add.png" mode="aspectFill"></image>
  7. <view class="sys-size-24 sys-color-gray-3 sys-weight-600">增加来访</view>
  8. </view>
  9. </template>
  10. </Nav>
  11. <view v-if="false" class="no-list sys-size-28 sys-color-gray-9">暂无访客</view>
  12. <scroll-view v-else scroll-y="true" class="list-scroll box-sizing-border" @scrolltolower="scrolltolower">
  13. <view class="list-home">
  14. <view class="list-box box-sizing-border" v-for="(item,i) in 10" :key="i">
  15. <view class="box-head">
  16. <image src="@/static/img/circle/1.png" mode="aspectFill"></image>
  17. <view class="head-icon" :class="true?'view-1':'view-2'">
  18. <uni-icons v-if="true" type="checkmarkempty" size="10" color="#fff"></uni-icons>
  19. </view>
  20. </view>
  21. <view class="box-right">
  22. <view class="box-1">
  23. <view class="">
  24. <view class="box-name sys-size-32 sys-color-gray-3 sys-weight-600">
  25. WANGXIAOMI
  26. <image class="img-vip" src="@/static/img/wallet/vip-type.png" mode="aspectFill"></image>
  27. <!-- <image class="img-svip" src="@/static/img/wallet/vip-type.png" mode="aspectFill"></image> -->
  28. </view>
  29. <view class="sys-size-28 sys-color-gray-9">2小时前 8.06km</view>
  30. </view>
  31. <view class="list-h">
  32. <image src="@/static/img/wallet/h.png" mode="aspectFill"></image>
  33. </view>
  34. </view>
  35. <view class="img-list" v-if="i>5">
  36. <image v-for="(v,x) in 4" :key="x"
  37. src="@/static/img/circle/1.png" mode="aspectFill"></image>
  38. <view class="img-oly" v-if="4>3&&4%3!=0"></view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </scroll-view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data(){
  49. return{
  50. page:1,
  51. total:0,
  52. list:[],
  53. }
  54. },
  55. methods:{
  56. scrolltolower(){
  57. // 触底
  58. },
  59. },
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .visitor{
  64. .add-view{
  65. width: 154rpx;
  66. height: 52rpx;
  67. background: #F2F2F2;
  68. border-radius: 200rpx;
  69. display: flex;
  70. align-items: center;
  71. line-height: 52rpx;
  72. image{
  73. width: 40rpx;
  74. height: 40rpx;
  75. margin: 0 4rpx;
  76. }
  77. }
  78. .no-list{
  79. margin-top: 100rpx;
  80. text-align: center;
  81. }
  82. .list-scroll{
  83. flex: 1;
  84. overflow: auto;
  85. padding: 32rpx;
  86. .list-home{
  87. .list-box{
  88. margin-bottom: 40rpx;
  89. display: flex;
  90. .box-head{
  91. width: 112rpx;
  92. height: 112rpx;
  93. position: relative;
  94. margin-right: 20rpx;
  95. image{
  96. width: 112rpx;
  97. height: 112rpx;
  98. border-radius: 50%;
  99. }
  100. .head-icon{
  101. position: absolute;
  102. right: 0;
  103. bottom: 0;
  104. z-index: 10;
  105. width: 25rpx;
  106. height: 25rpx;
  107. line-height: 20rpx;
  108. text-align: center;
  109. border-radius: 50%;
  110. border: 2rpx solid #fff;
  111. }
  112. .view-1{
  113. background: #FEC631;
  114. }
  115. .view-2{
  116. background: #4BC285;
  117. }
  118. }
  119. .box-right{
  120. flex: 1;
  121. .box-1{
  122. display: flex;
  123. justify-content: space-between;
  124. .list-h{
  125. width: 80rpx;
  126. height: 80rpx;
  127. background-color: #eee;
  128. border-radius: 50%;
  129. text-align: center;
  130. margin-top: 16rpx;
  131. image{
  132. width: 52rpx;
  133. height: 52rpx;
  134. margin-top: 14rpx;
  135. }
  136. }
  137. .box-name{
  138. display: flex;
  139. align-items: center;
  140. margin: 10rpx 0 4rpx 0;
  141. .img-vip{
  142. width: 84rpx;
  143. height: 28rpx;
  144. }
  145. .img-svip{
  146. width: 92rpx;
  147. height: 28rpx;
  148. }
  149. }
  150. }
  151. .img-list{
  152. margin-top: 18rpx;
  153. display: flex;
  154. justify-content: space-between;
  155. flex-flow: row wrap;
  156. image{
  157. width: 180rpx;
  158. height: 180rpx;
  159. border-radius: 16rpx;
  160. margin-bottom: 8rpx;
  161. }
  162. .img-oly{
  163. width: 180rpx;
  164. height: 180rpx;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }
  172. </style>