list.vue 4.1 KB

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