From aeabdf878e04c922f4bf6816773ac3a7dc5110ec Mon Sep 17 00:00:00 2001
From: lancer <1905818361@qq.com>
Date: Mon, 30 Aug 2021 18:02:40 +0800
Subject: [PATCH] init
---
config.js | 4 +-
.../Customerportrait/Receivingrecords.vue | 88 +++++++++++++++++--
pages/center/consumer/consumerDetail.vue | 62 +++++++++++--
utils/http.js | 4 +-
4 files changed, 142 insertions(+), 16 deletions(-)
diff --git a/config.js b/config.js
index 81fad2e..d159b65 100644
--- a/config.js
+++ b/config.js
@@ -2,9 +2,9 @@
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
-var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
+// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站
// var host = 'http://192.168.31.163:8080/autoSR/api'; // 长龙
-// var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
+var host = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式
// var host = 'https://hfju.com/api'; // 数智正式
diff --git a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue
index 3097d5d..6463477 100644
--- a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue
+++ b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue
@@ -115,9 +115,19 @@
- {{item.name}} -->
+ {{item.name}}
+
@@ -148,7 +158,8 @@ export default {
pageNum:1,
pageSize:10,
tadelist:[],
- totalpage:0
+ totalpage:0,
+ keywordIds:''
};
},
onLoad(options) {
@@ -164,7 +175,8 @@ export default {
this.endoftime='';
this.Datesicing='';
}
- this.keywordsId=options.keywordsId
+ // this.keywordsId=options.keywordsId
+ this.keywordIds=options.keywordsId
this.houseId=uni.getStorageSync('buildingID').id;
this.Accesstolevel()
},
@@ -191,6 +203,37 @@ export default {
this.pageNum=1;
this.getinit()
},
+ itemChcek(index){
+ this.semanticlist[index].checked=!this.semanticlist[index].checked
+ this.$forceUpdate()
+ },
+ reset(){
+ this.semanticlist.map(item=>{
+ item.checked=false
+ })
+ this.keywordIds=''
+ this.$forceUpdate()
+ this.allcancel()
+ this.totalpage=0;
+ this.tadelist=[];
+ this.pageNum=1;
+ this.getinit()
+ },
+ screensure(){
+ let arr=[]
+ this.semanticlist.map(item=>{
+ if(item.checked){
+ arr.push(item.keywordsId)
+ }
+ })
+ this.keywordIds=arr.join(',')
+ // console.log(this.keywordIds)
+ this.allcancel()
+ this.totalpage=0;
+ this.tadelist=[];
+ this.pageNum=1;
+ this.getinit()
+ },
//点击三级
semantictap(index){
this.keywordsId=this.semanticlist[index].keywordsId;
@@ -219,7 +262,8 @@ export default {
name:this.name,
agentName:this.agentName,
type:0,
- keywordsId:this.keywordsId,
+ keywordIds:this.keywordIds,
+ // keywordsId:this.keywordsId,
projectId:this.houseId,
}
}
@@ -236,7 +280,8 @@ export default {
name:this.name,
agentName:this.agentName,
type:0,
- keywordsId:this.keywordsId,
+ keywordIds:this.keywordIds,
+ // keywordsId:this.keywordsId,
projectId:this.houseId,
}
}
@@ -278,6 +323,11 @@ export default {
if(item.isInterval==0){
item.name=item.name+item.unit+'-'+item.endName+item.unit
}
+ if(item.keywordsId==this.keywordIds){
+ item.checked=true
+ }else{
+ item.checked=false
+ }
})
this.semanticlist=data;
this.getinit();
@@ -601,7 +651,7 @@ export default {
max-height: 500rpx;
background: #FFFFFF;
overflow-y: auto;
- padding-bottom: 20rpx;
+ // padding-bottom: 20rpx;
position: absolute;
top: 74rpx;
left: 0;
@@ -621,4 +671,30 @@ export default {
margin-top: 26rpx;
}
}
+.screen-foot{
+ width: 100%;
+ height: 88rpx;
+ display: flex;
+ margin-top: 20rpx;
+ border-top: 1px solid #E0E0E0;
+ .screen-foot-reset{
+ width: 50%;
+ text-align: center;
+ height: 88rpx;
+ line-height: 88rpx;
+ font-size: 30rpx;
+ font-weight: 400;
+ color: #666666;
+ }
+ .screen-foot-sure{
+ width: 50%;
+ text-align: center;
+ line-height: 88rpx;
+ height: 88rpx;
+ font-size: 30rpx;
+ font-weight: 400;
+ color: #FFFFFF;
+ background: #2671E2;
+ }
+ }
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index 34d13ad..9f08495 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -25,11 +25,13 @@
手机号码:{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}
-
+
客户标签:
- 暂无
- {{che.name}}
-
+ 暂无
+ {{che.name}}
+
+
+
顾问姓名:{{customerInfo.agentName}}
@@ -197,6 +199,17 @@
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
@@ -207,6 +220,7 @@
return{
activeTotal: 0,
customerId:'',
+ tipshow:false,
customerInfo:{
name:'',
createTime:'',
@@ -250,12 +264,16 @@
res.fraction='0';
}
if(res.demand.cusSemanticWordsList!=null){
+ res.demand.cusSemanticWords=res.demand.cusSemanticWordsList
res.demand.cusSemanticWordsList.forEach(che=>{
if(che.isInterval==0){
che.name=che.name+che.unit+'-'+che.endName+che.unit;
}
})
- }
+ res.demand.cusSemanticWordsList=res.demand.cusSemanticWordsList.slice(0,3)
+ }
+
+ // console.log(res.demand.cusSemanticWords,'关键字')
this.customerInfo = res;
})
},
@@ -353,6 +371,10 @@
})
}
},
+ tipupon(){
+ if(!this.customerInfo.demand.cusSemanticWordsList)return
+ this.tipshow=true
+ },
changeshow(item, type) {
if (type == 1) {
item.show = true
@@ -695,7 +717,7 @@
font-weight: 400;
color: #2671E2;
line-height: 45rpx;
- bottom: 30rpx;
+ bottom: 15rpx;
right: 30rpx;
text-align: center;
}
@@ -916,4 +938,32 @@
color: #FFFFFF;
}
}
+ .upon-sec-tips{
+ // max-width:120rpx ;
+ 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: 20rpx;
+ margin-top: 20rpx;
+ box-sizing: border-box;
+ padding: 10rpx 24rpx;
+ }
+ .conmsg-msg-lab-img{
+ width: 14rpx;
+ height: 30rpx;
+ margin-top: 6rpx;
+ margin-left: auto;
+ image{
+ width: 100%;
+ height: 100%;
+ }
+ }
diff --git a/utils/http.js b/utils/http.js
index 6b26aeb..b418c26 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,7 +1,7 @@
-const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
+// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙
-// const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
+const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式