list.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="list-box">
  3. <view class="item-box" v-for="item in list" :key="item.shareuserid">
  4. <view class="item-top">
  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/202406011717209838416B6150695f.webp'" 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 class="u-line-2">{{ 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. </view>
  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. margin-bottom: 10px;
  54. .item-top {
  55. display: flex;
  56. flex-direction: column;
  57. padding-bottom: 10px;
  58. border-bottom: 1px solid #DDDDDD;
  59. font-family: Source Han Sans SC, Source Han Sans SC;
  60. border-top-left-radius: 5px;
  61. border-top-right-radius: 5px;
  62. .avatar-info {
  63. display: flex;
  64. .avatar {
  65. width: 44px;
  66. height: 44px;
  67. margin-right: 10px;
  68. }
  69. .detail-info {
  70. display: flex;
  71. flex-direction: column;
  72. margin-left: 10px;
  73. .title {
  74. font-weight: 500;
  75. font-size: 16px;
  76. color: #333333;
  77. margin-bottom: 5px;
  78. }
  79. .address {
  80. font-weight: 400;
  81. font-size: 12px;
  82. color: #666666;
  83. display: flex;
  84. align-items: center;
  85. align-content: center;
  86. text {
  87. margin-left: 5px;
  88. }
  89. }
  90. }
  91. }
  92. .origin-info {
  93. display: flex;
  94. justify-content: space-between;
  95. font-size: 14px;
  96. color: #888888;
  97. margin-top: 6px;
  98. .origin {
  99. margin-left: 64px;
  100. }
  101. .createdate {
  102. margin-right: 10px;
  103. }
  104. }
  105. }
  106. .footer-info {
  107. display: flex;
  108. justify-content: space-between;
  109. margin-top: 10px;
  110. .left{
  111. font-weight: 400;
  112. font-size: 14px;
  113. color: #888888;
  114. }
  115. .right{
  116. display: flex;
  117. align-items: center;
  118. align-content: center;
  119. border-radius: 5px;
  120. text {
  121. font-size: 14px;
  122. color: #333333;
  123. margin: 0 10px 0 10px;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. </style>