Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

224 wiersze
5.1 KiB

  1. <template>
  2. <view class="box">
  3. <view style="width: 690rpx;margin: 0 auto;margin-top: 20rpx;">
  4. <u-search @search='searchinfo()' placeholder="请输入" v-model="keyword"></u-search>
  5. </view>
  6. <!-- <view @click="searchinfo()">搜索</view> -->
  7. <view class="content">
  8. <view class="content-tips" v-for="(item,index) in recordList" :key='index' @click="godetail()">
  9. <view class="content-first">
  10. <view class="left">
  11. <view class="img">{{item.name.slice(0,1)}}</view>
  12. <view class="test">{{item.name}}</view>
  13. </view>
  14. </view>
  15. <view class="content-sec">
  16. <view class="content-sec-lab">
  17. 手机号码:<view class="content-sec-lab1">{{item.phone || '--'}}</view>
  18. </view>
  19. <view class="content-sec-lab">
  20. 客户标签:
  21. <!-- <view class="content-sec-tips" v-for="(che,ind) in item.demand.cusSemanticWords" :key='ind'>{{che.name}}</view> -->
  22. </view>
  23. <view class="content-sec-lab">
  24. 顾问姓名:<view class="content-sec-lab1">{{item.agentName}}</view>
  25. </view>
  26. <view class="content-sec-lab">
  27. 添加时间:<view class="content-sec-lab1">{{item.createTime}}</view>
  28. </view>
  29. <view class="content-sec-num">
  30. <view class="">{{item.visitRecord || "0"}}次到访</view>
  31. <view class="">{{item.fraction || '0'}}% | {{item.fraction || '0'}}分</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default{
  40. data(){
  41. return{
  42. keyword:'',
  43. stageList:['未知','到访','意向','定金','成交'],
  44. recordList:[],
  45. nextPage:1,
  46. totalRecord:'',
  47. buildingID:'',
  48. }
  49. },
  50. onShow() {
  51. this.buildingID = uni.getStorageSync('buildingID').id;
  52. },
  53. onReachBottom() {
  54. if(this.totalRecord==this.nextPage){
  55. uni.showToast({
  56. icon:'none',
  57. title: '到底了',
  58. duration: 2000
  59. });
  60. return
  61. }else{
  62. this.nextPage+=1;
  63. this.getMyCustom();
  64. }
  65. },
  66. methods:{
  67. // 客户详情
  68. gotoDetail(id) {
  69. uni.navigateTo({
  70. url: `/pages/center/consumer/consumerDetail?id=${id}`
  71. })
  72. },
  73. searchinfo(){
  74. this.nextPage=1;
  75. this.recordList=[];
  76. this.getMyCustom();
  77. },
  78. getMyCustom(){
  79. var parames = {
  80. pageNum: this.nextPage,
  81. pageSize: 10,
  82. query: {
  83. projectId:this.buildingID,
  84. nameOrPhone:this.keyword
  85. }
  86. };
  87. this.$u.post("/customer/customerManagement", parames).then(data => {
  88. var list = data.results || [];
  89. this.recordList = [...this.recordList, ...list];
  90. this.totalRecord=data.totalPage;
  91. })
  92. },
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .box {
  98. width: 100%;
  99. height: 100%;
  100. background: #F8F8F8;
  101. }
  102. .content{
  103. // height: 1000rpx;/
  104. overflow: hidden;
  105. border-top: 1px solid #E0E0E0;
  106. .content-tips{
  107. background: #fff;
  108. // box-sizing: border-box;
  109. margin-bottom: 20rpx;
  110. overflow: hidden;
  111. .content-first{
  112. padding: 19rpx 30rpx;
  113. display: flex;
  114. justify-content: space-between;
  115. box-sizing: border-box;
  116. // border-top: 1px solid #E0E0E0;
  117. font-weight: 400;
  118. color: #292929;
  119. height: 90rpx;
  120. font-size: 30rpx;
  121. line-height: 30rpx;
  122. .left{
  123. display: flex;
  124. .img{
  125. // margin-top: 19rpx;
  126. width: 52rpx;
  127. height: 52rpx;
  128. border: 1px solid #E0E0E0;
  129. border-radius: 50%;
  130. text-align: center;
  131. line-height: 50rpx;
  132. }
  133. .test{
  134. margin-top: 11rpx;
  135. margin-left: 20rpx;
  136. font-weight: 500;
  137. color: #333333;
  138. }
  139. }
  140. .right{
  141. display: flex;
  142. .point{
  143. width: 12rpx;
  144. height: 12rpx;
  145. background: #2B6EFF;
  146. border-radius: 50%;
  147. margin-right: 9rpx;
  148. margin-top: 20rpx;
  149. }
  150. .test{
  151. margin-top: 11rpx;
  152. }
  153. }
  154. }
  155. .content-sec{
  156. border-top: 1px solid #E0E0E0;
  157. padding: 0 30rpx;
  158. padding-bottom: 30rpx;
  159. // height: 270rpx;
  160. position: relative;
  161. .content-sec-lab{
  162. margin-top: 30rpx;
  163. display: flex;
  164. font-size: 30rpx;
  165. font-weight: 400;
  166. color: #666666;
  167. line-height: 30rpx;
  168. .content-sec-lab1{
  169. color: #333333;
  170. }
  171. .content-sec-tips{
  172. max-width:174rpx ;
  173. height: 46rpx;
  174. background: #F2F2F2;
  175. border-radius: 6rpx;
  176. text-align: center;
  177. line-height: 26rpx;
  178. overflow: hidden;
  179. text-overflow:ellipsis;
  180. white-space: nowrap;
  181. font-size: 26rpx;
  182. font-weight: 400;
  183. color: #333333;
  184. margin-right: 24rpx;
  185. box-sizing: border-box;
  186. padding: 10rpx 24rpx;
  187. }
  188. }
  189. .content-sec-num{
  190. position: absolute;
  191. width: 190rpx;
  192. height: 90rpx;
  193. background: #F4F8FD;
  194. border-radius: 12rpx;
  195. font-weight: 400;
  196. color: #2671E2;
  197. line-height: 45rpx;
  198. bottom: 30rpx;
  199. right: 30rpx;
  200. text-align: center;
  201. }
  202. }
  203. .content-last{
  204. display: flex;
  205. border-top: 1px solid #E0E0E0;
  206. // padding: 0 30rpx;
  207. height: 78rpx;
  208. .content-last-tab{
  209. width: 33.4%;
  210. text-align: center;
  211. font-size: 30rpx;
  212. font-weight: 400;
  213. color: #333333;
  214. line-height: 78rpx;
  215. border-right: 1px solid #E0E0E0;
  216. }
  217. }
  218. }
  219. }
  220. </style>