visitor.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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">
  15. <view class="box-head">
  16. <image src="@/static/img/circle/1.png" mode="aspectFill"></image>
  17. <view class="head-icon">√</view>
  18. </view>
  19. <view class="box-right">
  20. </view>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. methods:{
  29. scrolltolower(){
  30. // 触底
  31. },
  32. },
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .visitor{
  37. .add-view{
  38. width: 154rpx;
  39. height: 52rpx;
  40. background: #F2F2F2;
  41. border-radius: 200rpx;
  42. display: flex;
  43. align-items: center;
  44. line-height: 52rpx;
  45. image{
  46. width: 40rpx;
  47. height: 40rpx;
  48. margin: 0 4rpx;
  49. }
  50. }
  51. .no-list{
  52. margin-top: 100rpx;
  53. text-align: center;
  54. }
  55. .list-scroll{
  56. flex: 1;
  57. overflow: auto;
  58. padding: 32rpx;
  59. .list-home{
  60. .list-box{
  61. display: flex;
  62. .box-head{
  63. width: 112rpx;
  64. height: 112rpx;
  65. position: relative;
  66. margin-right: 20rpx;
  67. image{
  68. width: 112rpx;
  69. height: 112rpx;
  70. border-radius: 50%;
  71. }
  72. .head-icon{
  73. position: absolute;
  74. right: 0;
  75. bottom: 0;
  76. z-index: 10;
  77. width: 25rpx;
  78. height: 25rpx;
  79. border-radius: 50%;
  80. border: 2rpx solid #fff;
  81. }
  82. .view-1{
  83. background: #FEC631;
  84. }
  85. .view-1{
  86. background: #4BC285;
  87. }
  88. }
  89. .box-right{
  90. flex: 1;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. </style>