From 43dfae6dcf9cc77c5fbe1e2231f42f5204aa51f9 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Mon, 23 Aug 2021 19:34:24 +0800 Subject: [PATCH] init --- config.js | 1 + pages.json | 26 + .../Customerportrait/Detailsofthesearch.vue | 178 ++ .../Customerportrait/Receivedetailabout.vue | 1904 +++++++++++++++++ .../Customerportrait/Receivingrecords.vue | 624 ++++++ pages/center/Piabodata/Userinsightinto.vue | 6 +- pages/center/consumer/consumerDetail.vue | 207 +- pages/center/consumer/consumerSearch.vue | 198 +- pages/center/consumer/index.vue | 303 ++- pages/mine/consultanonduty/index.vue | 2 +- static/images/down1.png | Bin 0 -> 675 bytes static/images/down2.png | Bin 0 -> 672 bytes static/images/userorder.png | Bin 0 -> 6027 bytes 13 files changed, 3130 insertions(+), 319 deletions(-) create mode 100644 pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue create mode 100644 pages/center/Piabodata/Customerportrait/Receivedetailabout.vue create mode 100644 pages/center/Piabodata/Customerportrait/Receivingrecords.vue create mode 100644 static/images/down1.png create mode 100644 static/images/down2.png create mode 100644 static/images/userorder.png diff --git a/config.js b/config.js index 8eedb6b..be10eb6 100644 --- a/config.js +++ b/config.js @@ -16,6 +16,7 @@ var config = { service: { host, iMServiceHost, + getStage:`${host}/customer/getStage`, //验证toen verify:`${host}/user/verify`, //登录 diff --git a/pages.json b/pages.json index ad93481..653dfc4 100644 --- a/pages.json +++ b/pages.json @@ -310,6 +310,32 @@ "navigationBarTextStyle": "black" } }, + + { + "path": "Piabodata/Customerportrait/Detailsofthesearch", + "style": { + "navigationBarTitleText": "搜索", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" + } + }, + { + "path": "Piabodata/Customerportrait/Receivedetailabout", + "style": { + "navigationBarTitleText": "详情", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" + } + }, + { + "path": "Piabodata/Customerportrait/Receivingrecords", + "style": { + "navigationBarTitleText": "列表", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" + } + }, + { "path": "records/index", "style": { diff --git a/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue new file mode 100644 index 0000000..8fe8130 --- /dev/null +++ b/pages/center/Piabodata/Customerportrait/Detailsofthesearch.vue @@ -0,0 +1,178 @@ + + + + diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue new file mode 100644 index 0000000..5ea7538 --- /dev/null +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -0,0 +1,1904 @@ + + + + diff --git a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue new file mode 100644 index 0000000..3097d5d --- /dev/null +++ b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue @@ -0,0 +1,624 @@ + + + + diff --git a/pages/center/Piabodata/Userinsightinto.vue b/pages/center/Piabodata/Userinsightinto.vue index c1569fc..23f1c0d 100644 --- a/pages/center/Piabodata/Userinsightinto.vue +++ b/pages/center/Piabodata/Userinsightinto.vue @@ -196,9 +196,9 @@ }, //查看 Toview(item,i){ - // uni.navigateTo({ - // url: '/pages/main/Customerportrait/Receivingrecords?datatype='+this.activeTotal+"&keywordsId="+item.matchKeywords[i].keywordsId+"&starttime="+this.timeobj.statDateStart+"&endoftime="+this.timeobj.statDateEnd - // }) + uni.navigateTo({ + url: '/pages/center/Piabodata/Customerportrait/Receivingrecords?datatype='+this.activeTotal+"&keywordsId="+item.matchKeywords[i].keywordsId+"&starttime="+this.timeobj.statDateStart+"&endoftime="+this.timeobj.statDateEnd + }) }, //时间切换 tabtimetap(index) { diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 232c626..4e24041 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -4,26 +4,20 @@ - - A - - - 李先生 - + {{customerInfo.name.slice(0,1) || '--'}} + {{customerInfo.name || '--'}} - + - 手机号码:18777897865 + 手机号码:{{customerInfo.phone || '--'}} 客户标签: @@ -32,23 +26,19 @@ 学区 - 顾问姓名:齐横三 + 顾问姓名:{{customerInfo.agentName}} - 添加时间:2021-07-20 14:00:30 + 添加时间:{{customerInfo.createTime}} - - 3次到访 - - - 55分/88% - + {{customerInfo.visitRecord}}次到访 + {{customerInfo.fraction || '0'}}% | {{customerInfo.fraction || '0'}}分 - 这个客户很有意向,约了明天下午5点半看房,继续跟进~ + 备注:{{customerInfo.demand.remarks ? customerInfo.demand.remarks : "暂无"}} @@ -68,85 +58,28 @@ - + - - 宋 - - - 宋幸运 - - - 代接待 - - - - - - - 优秀案例 - - - - - - - - 客户:王先生 | - - - 首次到访 - - - - 88% | 55分 - - - - - 2021-07-20 16:00:30 | 80分钟 - - - - - - - 宋 - - - 宋幸运 - - - 代接待 - - - - - - - 优秀案例 - + {{item.agentName.slice(0,1) || '--'}} + {{item.agentName || ''}} + 代接待 + - - 客户:王先生 | - - - 首次到访 - - - - 88% | 55分 + 客户:{{item.name || ''}} | + {{item.visitRecord}}次到访 + {{item.fraction || '0'}}% | {{item.fraction || '0'}}分 - - 2021-07-20 16:00:30 | 80分钟 - + {{item.createTime}} | 80分钟 @@ -154,69 +87,43 @@ - - 宋 - - - 宋幸运 - - - - 2021-07-20 16:00:30 + + 宋幸运 + 2021-07-20 16:00:30 - - 有意向,想要更多优惠 - + 有意向,想要更多优惠 - - 编辑记录 - + 编辑记录 - - 宋 - - - 宋幸运 - + + 宋幸运 - - 2021-07-20 16:00:30 - - - - 有意向,想要更多优惠 + 2021-07-20 16:00:30 + 有意向,想要更多优惠 - - 编辑记录 - + 编辑记录 - - 执行率 - + + 执行率 - - 添加提醒 - - - - 写跟进 - + 添加提醒 + + 写跟进 + @@ -225,12 +132,46 @@ data(){ return{ activeTotal: 0, + customerId:'', + customerInfo:{ + name:'', + createTime:'', + agentName:'' + }, + Thevisitingrecords:[] } }, + onLoad(options) { + this.customerId = options.id; + }, + onShow() { + this.getCustomerInfo() + this.tabtimetap(0) + }, methods:{ + // 获取到访记录 + getVisitList() { + this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId, ).then(res => { + this.Thevisitingrecords = res + }) + }, + // 获取客户信息 + getCustomerInfo() { + const that = this; + this.$u.get("/customer/findById", { + id: this.customerId + }).then(res => { + this.customerInfo = res; + }) + }, + + + tabtimetap(idx){ - console.log(idx) this.activeTotal=idx + if(idx==0){ + this.getVisitList() + } }, // 去编辑 goedit(){ diff --git a/pages/center/consumer/consumerSearch.vue b/pages/center/consumer/consumerSearch.vue index c7abe3f..fc9cadd 100644 --- a/pages/center/consumer/consumerSearch.vue +++ b/pages/center/consumer/consumerSearch.vue @@ -1,9 +1,38 @@ @@ -11,8 +40,50 @@ export default{ data(){ return{ - keyword:'' + keyword:'', + stageList:['未知','到访','意向','定金','成交'], + recordList:[], + nextPage:1, + totalRecord:'', + buildingID:'', } + }, + onShow() { + this.buildingID = uni.getStorageSync('buildingID').id; + }, + onReachBottom() { + if(this.totalRecord==this.nextPage){ + uni.showToast({ + icon:'none', + title: '到底了', + duration: 2000 + }); + return + }else{ + this.nextPage+=1; + this.getMyCustom(); + } + }, + methods:{ + searchinfo(){ + this.nextPage=1; + this.recordList=[]; + this.getMyCustom(); + }, + getMyCustom(){ + var parames = { + pageNum: this.nextPage, + pageSize: 10, + query: { + projectId:this.buildingID, + } + }; + this.$u.post("/customer/customerManagement", parames).then(data => { + var list = data.results || []; + this.recordList = [...this.recordList, ...list]; + this.totalRecord=data.totalPage; + }) + }, } } @@ -21,6 +92,125 @@ .box { width: 100%; height: 100%; - // background: #F8F8F8; + background: #F8F8F8; + } + .content{ + // height: 1000rpx;/ + overflow: hidden; + border-top: 1px solid #E0E0E0; + .content-tips{ + background: #fff; + // box-sizing: border-box; + margin-bottom: 20rpx; + overflow: hidden; + .content-first{ + padding: 19rpx 30rpx; + display: flex; + justify-content: space-between; + box-sizing: border-box; + // border-top: 1px solid #E0E0E0; + font-weight: 400; + color: #292929; + height: 90rpx; + font-size: 30rpx; + line-height: 30rpx; + .left{ + display: flex; + .img{ + // margin-top: 19rpx; + width: 52rpx; + height: 52rpx; + border: 1px solid #E0E0E0; + border-radius: 50%; + text-align: center; + line-height: 50rpx; + } + .test{ + margin-top: 11rpx; + margin-left: 20rpx; + font-weight: 500; + color: #333333; + } + } + .right{ + display: flex; + .point{ + width: 12rpx; + height: 12rpx; + background: #2B6EFF; + border-radius: 50%; + margin-right: 9rpx; + margin-top: 20rpx; + } + .test{ + margin-top: 11rpx; + } + } + } + .content-sec{ + border-top: 1px solid #E0E0E0; + padding: 0 30rpx; + padding-bottom: 30rpx; + // height: 270rpx; + position: relative; + .content-sec-lab{ + margin-top: 30rpx; + display: flex; + font-size: 30rpx; + font-weight: 400; + color: #666666; + line-height: 30rpx; + .content-sec-lab1{ + color: #333333; + } + .content-sec-tips{ + max-width:174rpx ; + height: 46rpx; + background: #F2F2F2; + border-radius: 6rpx; + text-align: center; + line-height: 26rpx; + overflow: hidden; + text-overflow:ellipsis; + white-space: nowrap; + font-size: 26rpx; + font-weight: 400; + color: #333333; + margin-right: 24rpx; + box-sizing: border-box; + padding: 10rpx 24rpx; + } + } + .content-sec-num{ + position: absolute; + width: 190rpx; + height: 90rpx; + background: #F4F8FD; + border-radius: 12rpx; + font-weight: 400; + color: #2671E2; + line-height: 45rpx; + bottom: 30rpx; + right: 30rpx; + text-align: center; + } + } + .content-last{ + display: flex; + border-top: 1px solid #E0E0E0; + // padding: 0 30rpx; + height: 78rpx; + .content-last-tab{ + width: 33.4%; + text-align: center; + font-size: 30rpx; + font-weight: 400; + color: #333333; + line-height: 78rpx; + border-right: 1px solid #E0E0E0; + } + } + + } } diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index bfc7dc4..03b2084 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -1,6 +1,5 @@