lancer 3 年前
父节点
当前提交
aeabdf878e
共有 4 个文件被更改,包括 142 次插入16 次删除
  1. +2
    -2
      config.js
  2. +82
    -6
      pages/center/Piabodata/Customerportrait/Receivingrecords.vue
  3. +56
    -6
      pages/center/consumer/consumerDetail.vue
  4. +2
    -2
      utils/http.js

+ 2
- 2
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'; // 数智正式


+ 82
- 6
pages/center/Piabodata/Customerportrait/Receivingrecords.vue 查看文件

@@ -115,9 +115,19 @@
<view v-if="screeningshow4==true" class="call_zhezhao" @click="allcancel()"></view>
<view v-if="screeningshow4==true" class="yuyipick">
<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>
</view>
<view class="screen-foot">
<view class="screen-foot-reset" @click="reset">
重置
</view>
<view class="screen-foot-sure" @click="screensure">
确定
</view>
</view>
</view>
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
</view>
@@ -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;
}
}
</style>

+ 56
- 6
pages/center/consumer/consumerDetail.vue 查看文件

@@ -25,11 +25,13 @@
<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>
<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 class="content-sec-lab">
顾问姓名:<view class="content-sec-lab1">{{customerInfo.agentName}}</view>
@@ -197,6 +199,17 @@
<!-- <view class="foot-tab">拨打电话</view> -->
<view class="foot-tab" @click="followRecordAdd()">写跟进</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>
</template>
@@ -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%;
}
}
</style>

+ 2
- 2
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'; // 数智正式


正在加载...
取消
保存