@@ -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.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 = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// var host = 'https://hfju.com/api'; // 数智正式 | // var host = 'https://hfju.com/api'; // 数智正式 | ||||
@@ -115,9 +115,19 @@ | |||||
<view v-if="screeningshow4==true" class="call_zhezhao" @click="allcancel()"></view> | <view v-if="screeningshow4==true" class="call_zhezhao" @click="allcancel()"></view> | ||||
<view v-if="screeningshow4==true" class="yuyipick"> | <view v-if="screeningshow4==true" class="yuyipick"> | ||||
<view class="inputdlex"> | <view class="inputdlex"> | ||||
<view :class="{ timeactive111: keywordsId == item.keywordsId }" @click="semantictap(index)" | |||||
<!-- <view :class="{ timeactive111: keywordsId == item.keywordsId }" @click="semantictap(index)" | |||||
v-for="(item,index) in semanticlist" :key="index">{{item.name}}</view> --> | |||||
<view :class="{ timeactive111: item.checked }" @click="itemChcek(index)" | |||||
v-for="(item,index) in semanticlist" :key="index">{{item.name}}</view> | v-for="(item,index) in semanticlist" :key="index">{{item.name}}</view> | ||||
</view> | </view> | ||||
<view class="screen-foot"> | |||||
<view class="screen-foot-reset" @click="reset"> | |||||
重置 | |||||
</view> | |||||
<view class="screen-foot-sure" @click="screensure"> | |||||
确定 | |||||
</view> | |||||
</view> | |||||
</view> | </view> | ||||
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | ||||
</view> | </view> | ||||
@@ -148,7 +158,8 @@ export default { | |||||
pageNum:1, | pageNum:1, | ||||
pageSize:10, | pageSize:10, | ||||
tadelist:[], | tadelist:[], | ||||
totalpage:0 | |||||
totalpage:0, | |||||
keywordIds:'' | |||||
}; | }; | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -164,7 +175,8 @@ export default { | |||||
this.endoftime=''; | this.endoftime=''; | ||||
this.Datesicing=''; | this.Datesicing=''; | ||||
} | } | ||||
this.keywordsId=options.keywordsId | |||||
// this.keywordsId=options.keywordsId | |||||
this.keywordIds=options.keywordsId | |||||
this.houseId=uni.getStorageSync('buildingID').id; | this.houseId=uni.getStorageSync('buildingID').id; | ||||
this.Accesstolevel() | this.Accesstolevel() | ||||
}, | }, | ||||
@@ -191,6 +203,37 @@ export default { | |||||
this.pageNum=1; | this.pageNum=1; | ||||
this.getinit() | 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){ | semantictap(index){ | ||||
this.keywordsId=this.semanticlist[index].keywordsId; | this.keywordsId=this.semanticlist[index].keywordsId; | ||||
@@ -219,7 +262,8 @@ export default { | |||||
name:this.name, | name:this.name, | ||||
agentName:this.agentName, | agentName:this.agentName, | ||||
type:0, | type:0, | ||||
keywordsId:this.keywordsId, | |||||
keywordIds:this.keywordIds, | |||||
// keywordsId:this.keywordsId, | |||||
projectId:this.houseId, | projectId:this.houseId, | ||||
} | } | ||||
} | } | ||||
@@ -236,7 +280,8 @@ export default { | |||||
name:this.name, | name:this.name, | ||||
agentName:this.agentName, | agentName:this.agentName, | ||||
type:0, | type:0, | ||||
keywordsId:this.keywordsId, | |||||
keywordIds:this.keywordIds, | |||||
// keywordsId:this.keywordsId, | |||||
projectId:this.houseId, | projectId:this.houseId, | ||||
} | } | ||||
} | } | ||||
@@ -278,6 +323,11 @@ export default { | |||||
if(item.isInterval==0){ | if(item.isInterval==0){ | ||||
item.name=item.name+item.unit+'-'+item.endName+item.unit | 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.semanticlist=data; | ||||
this.getinit(); | this.getinit(); | ||||
@@ -601,7 +651,7 @@ export default { | |||||
max-height: 500rpx; | max-height: 500rpx; | ||||
background: #FFFFFF; | background: #FFFFFF; | ||||
overflow-y: auto; | overflow-y: auto; | ||||
padding-bottom: 20rpx; | |||||
// padding-bottom: 20rpx; | |||||
position: absolute; | position: absolute; | ||||
top: 74rpx; | top: 74rpx; | ||||
left: 0; | left: 0; | ||||
@@ -621,4 +671,30 @@ export default { | |||||
margin-top: 26rpx; | 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; | |||||
} | |||||
} | |||||
</style> | </style> |
@@ -25,11 +25,13 @@ | |||||
<view class="content-sec-lab"> | <view class="content-sec-lab"> | ||||
手机号码:<view class="content-sec-lab1">{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}</view> | 手机号码:<view class="content-sec-lab1">{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}}</view> | ||||
</view> | </view> | ||||
<view class="content-sec-lab"> | |||||
<view class="content-sec-lab" @click.stop="tipupon"> | |||||
客户标签: | 客户标签: | ||||
<text v-if="customerInfo.demand.cusSemanticWordsList.length==0">暂无</text> | |||||
<view v-else class="content-sec-tips" v-for="(che,ind) in customerInfo.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view> | |||||
<text v-if="!customerInfo.demand.cusSemanticWordsList">暂无</text> | |||||
<view v-else class="content-sec-tips" v-for="(che,ind) in customerInfo.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view> | |||||
<view class="conmsg-msg-lab-img" v-if="customerInfo.demand.cusSemanticWordsList.length>0"> | |||||
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="content-sec-lab"> | <view class="content-sec-lab"> | ||||
顾问姓名:<view class="content-sec-lab1">{{customerInfo.agentName}}</view> | 顾问姓名:<view class="content-sec-lab1">{{customerInfo.agentName}}</view> | ||||
@@ -197,6 +199,17 @@ | |||||
<!-- <view class="foot-tab">拨打电话</view> --> | <!-- <view class="foot-tab">拨打电话</view> --> | ||||
<view class="foot-tab" @click="followRecordAdd()">写跟进</view> | <view class="foot-tab" @click="followRecordAdd()">写跟进</view> | ||||
</view> | </view> | ||||
<!-- closeable --> | |||||
<u-popup v-model="tipshow" mode="center" width="500rpx" height="500rpx" closeable> | |||||
<scroll-view scroll-y="true" style="height: 440rpx;"> | |||||
<view style="margin-top: 60rpx; display: flex; flex-wrap: wrap; padding-left: 20rpx;"> | |||||
<view class="upon-sec-tips" v-for="(item,index) in customerInfo.demand.cusSemanticWords" :key="index"> | |||||
{{item.name}} | |||||
</view> | |||||
</view> | |||||
</scroll-view> | |||||
</u-popup> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
@@ -207,6 +220,7 @@ | |||||
return{ | return{ | ||||
activeTotal: 0, | activeTotal: 0, | ||||
customerId:'', | customerId:'', | ||||
tipshow:false, | |||||
customerInfo:{ | customerInfo:{ | ||||
name:'', | name:'', | ||||
createTime:'', | createTime:'', | ||||
@@ -250,12 +264,16 @@ | |||||
res.fraction='0'; | res.fraction='0'; | ||||
} | } | ||||
if(res.demand.cusSemanticWordsList!=null){ | if(res.demand.cusSemanticWordsList!=null){ | ||||
res.demand.cusSemanticWords=res.demand.cusSemanticWordsList | |||||
res.demand.cusSemanticWordsList.forEach(che=>{ | res.demand.cusSemanticWordsList.forEach(che=>{ | ||||
if(che.isInterval==0){ | if(che.isInterval==0){ | ||||
che.name=che.name+che.unit+'-'+che.endName+che.unit; | 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; | this.customerInfo = res; | ||||
}) | }) | ||||
}, | }, | ||||
@@ -353,6 +371,10 @@ | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
tipupon(){ | |||||
if(!this.customerInfo.demand.cusSemanticWordsList)return | |||||
this.tipshow=true | |||||
}, | |||||
changeshow(item, type) { | changeshow(item, type) { | ||||
if (type == 1) { | if (type == 1) { | ||||
item.show = true | item.show = true | ||||
@@ -695,7 +717,7 @@ | |||||
font-weight: 400; | font-weight: 400; | ||||
color: #2671E2; | color: #2671E2; | ||||
line-height: 45rpx; | line-height: 45rpx; | ||||
bottom: 30rpx; | |||||
bottom: 15rpx; | |||||
right: 30rpx; | right: 30rpx; | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
@@ -916,4 +938,32 @@ | |||||
color: #FFFFFF; | 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%; | |||||
} | |||||
} | |||||
</style> | </style> |
@@ -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.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 = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | // const baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||