list.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="list-box">
  3. <view class="item-box" v-for="item in list" :key="item.shareuserid">
  4. <navigator class="item-top" url="'#">
  5. <view class="avatar-info">
  6. <u--image shape="circle" :width="tovw(44)" :height="tovw(44)" :lazy-load="true" :src="item.headpic || 'https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404231713854678447B26b4363.svg'" mode="widthFix"></u--image>
  7. <view class="detail-info">
  8. <text class="title">{{ item.name }}</text>
  9. <view class="address">
  10. <i class="iconfont icon-dizhi-hui1"></i>
  11. <text>{{ item.province+item.city+item.county+item.address }}</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="origin-info">
  16. <text class="origin">来自:{{ item.sharename }}</text>
  17. <text class="createdate">{{ item.createdate }}</text>
  18. </view>
  19. </navigator>
  20. <view class="footer-info">
  21. <view class="left">来源:{{ item.type }}</view>
  22. <navigator class="right" url="#" @click="callPhoneFun(item.phonenumber)">
  23. <i class="iconfont icon-dianhua-hong" style="color:#C30D23"></i>
  24. <text>{{ item.phonenumber }}</text>
  25. </navigator>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. props:['list'],
  33. data () {
  34. return {
  35. }
  36. },
  37. methods: {
  38. callPhoneFun (phone) {
  39. this.callPhone(phone)
  40. }
  41. },
  42. }
  43. </script>
  44. <style lang="scss">
  45. .list-box {
  46. padding: 10px 10px 0 10px;
  47. .item-box {
  48. background: #ffffff;
  49. padding: 10px 0 10px 10px;
  50. display: flex;
  51. flex-direction: column;
  52. border-radius: 8px 8px 8px 8px;
  53. .item-top {
  54. display: flex;
  55. flex-direction: column;
  56. padding-bottom: 10px;
  57. border-bottom: 1px solid #DDDDDD;
  58. font-family: Source Han Sans SC, Source Han Sans SC;
  59. .avatar-info {
  60. display: flex;
  61. .avatar {
  62. width: 44px;
  63. height: 44px;
  64. margin-right: 10px;
  65. }
  66. .detail-info {
  67. display: flex;
  68. flex-direction: column;
  69. margin-left: 10px;
  70. .title {
  71. font-weight: 500;
  72. font-size: 16px;
  73. color: #333333;
  74. margin-bottom: 5px;
  75. }
  76. .address {
  77. font-weight: 400;
  78. font-size: 12px;
  79. color: #666666;
  80. display: flex;
  81. align-items: center;
  82. align-content: center;
  83. text {
  84. margin-left: 5px;
  85. }
  86. }
  87. }
  88. }
  89. .origin-info {
  90. display: flex;
  91. justify-content: space-between;
  92. font-size: 14px;
  93. color: #888888;
  94. margin-top: 6px;
  95. .origin {
  96. margin-left: 64px;
  97. }
  98. .createdate {
  99. margin-right: 10px;
  100. }
  101. }
  102. }
  103. .footer-info {
  104. display: flex;
  105. justify-content: space-between;
  106. margin-top: 10px;
  107. .left{
  108. font-weight: 400;
  109. font-size: 14px;
  110. color: #888888;
  111. }
  112. .right{
  113. display: flex;
  114. align-items: center;
  115. align-content: center;
  116. text {
  117. font-size: 14px;
  118. color: #333333;
  119. margin: 0 10px 0 10px;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. </style>