visits-cell.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view class="visits-cell" @click="$emit('handlerVisits', visitsInfo)">
  3. <view class="visits-club">
  4. <image :src="visitsInfo.image || '/static/icon-user-active@3x.png'" mode="" class="visits-author"></image>
  5. <view>{{visitsInfo.name || '游客'}}</view>
  6. </view>
  7. <view class="visits-content">
  8. <view class="container" v-if="visitsInfo.linkMan && visitsInfo.contractMobile">
  9. <view class="visits-name">
  10. {{ visitsInfo.linkMan }}
  11. </view>
  12. <view class="visits-phone">
  13. {{ visitsInfo.contractMobile }}
  14. </view>
  15. </view>
  16. <view class="container">
  17. <view class="visits-name concern">
  18. 关注点:
  19. </view>
  20. <view class="visits-concern">
  21. {{ visitsInfo.pageLabel }}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="visits-content-bot">
  26. <view class="btn" @click.stop="handleClickOper(1, visitsInfo)">
  27. <text class="iconfont icon-jigouhuaxiang"></text> 机构画像
  28. </view>
  29. <view class="btn" @click.stop="handleClickOper(2, visitsInfo)">
  30. <text class="iconfont icon-tianxie"></text> 填写咨询记录
  31. </view>
  32. <view class="btn" @click.stop="handleClickOper(3, visitsInfo)">
  33. <text class="iconfont icon-shangcheng"></text> 商城访问记录
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. props: {
  41. visitsInfo: {
  42. type: Object,
  43. default: () => ({
  44. image: '',
  45. userId:'',
  46. pageLabel: '',
  47. name: '',
  48. linkMan: '',
  49. contractMobile: '',
  50. accessTime: '2023-08-29',
  51. clubId: '1111'
  52. })
  53. }
  54. },
  55. methods:{
  56. // 按钮操作
  57. handleClickOper(type, club) {
  58. //1:机构画像 2:填写咨询记录 3:商城访问记录
  59. switch (type) {
  60. case 1:
  61. this.$api.navigateTo(`/pages/seller/club/club-portrait?userId=${club.userId}`)
  62. break
  63. case 2:
  64. this.$api.navigateTo(`/pages/seller/remarks/add?userId=${club.userId}`)
  65. break
  66. case 3:
  67. this.$api.navigateTo(`/pages/seller/club/club-visit?clubId=${club.clubId}`)
  68. break
  69. }
  70. },
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .visits-cell {
  76. margin: 0 auto 24rpx auto;
  77. width: 702rpx;
  78. border-radius: 16rpx;
  79. padding: 35rpx 32rpx;
  80. background-color: #fff;
  81. box-sizing: border-box;
  82. .visits-club {
  83. height: 70rpx;
  84. font-size: 32rpx;
  85. font-weight: bold;
  86. color:#333333;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. white-space: nowrap;
  90. display: flex;
  91. align-items: center;
  92. border-bottom: 1rpx solid #E1E1E1;
  93. padding-bottom: 18rpx;
  94. .visits-author {
  95. width: 56rpx;
  96. height: 56rpx;
  97. border-radius: 50%;
  98. object-fit: contain;
  99. margin-right: 16rpx;
  100. background-color: #FFF0E2;
  101. }
  102. }
  103. .visits-content {
  104. padding: 40rpx 0 0 0;
  105. .container {
  106. display: flex;
  107. font-size: 28rpx;
  108. .visits-name {
  109. white-space: nowrap;
  110. color: #333333;
  111. }
  112. .concern {
  113. font-weight: bold;
  114. }
  115. .visits-phone {
  116. margin-left: 28rpx;
  117. margin-bottom: 24rpx;
  118. }
  119. .visits-concern {
  120. line-height: 48rpx;
  121. }
  122. }
  123. }
  124. .visits-content-bot {
  125. width: 100%;
  126. height: 80rpx;
  127. background-color: #f7f7f7;
  128. border-radius: 8rpx;
  129. margin-top: 20rpx;
  130. .btn {
  131. height: 80rpx;
  132. box-sizing: border-box;
  133. line-height: 80rpx;
  134. padding: 0 20rpx;
  135. font-size: $font-size-24;
  136. color: #333333;
  137. text-align: center;
  138. float: left;
  139. position: relative;
  140. &:nth-child(1) {
  141. &:before {
  142. content: '';
  143. width: 1px;
  144. height: 20rpx;
  145. background-color: #b2b2b2;
  146. position: absolute;
  147. right: 0;
  148. top: 30rpx;
  149. }
  150. }
  151. &:nth-child(2) {
  152. &:before {
  153. content: '';
  154. width: 1px;
  155. height: 20rpx;
  156. background-color: #b2b2b2;
  157. position: absolute;
  158. right: 0;
  159. top: 30rpx;
  160. }
  161. }
  162. .iconfont {
  163. font-size: 30rpx;
  164. color: #333333;
  165. margin-right: 5rpx;
  166. }
  167. }
  168. }
  169. }
  170. </style>