Browse Source

客户画像

dev
jyt 1 year ago
parent
commit
5ee9c44e5b
2 changed files with 61 additions and 2 deletions
  1. +59
    -1
      pages/center/Piabodata/Userinsightinto.vue
  2. +2
    -1
      utils/domain.js

+ 59
- 1
pages/center/Piabodata/Userinsightinto.vue View File

@@ -14,6 +14,20 @@
<view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view> <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
</view> </view>
</view> </view>
<view class="info">
<view class="item" @click="goTo(1)">
<text class="num">{{efficient}}</text>
<text class="tit">有效接待</text>
</view>
<view class="item" @click="goTo(2)">
<text class="num">{{markCount}}</text>
<text class="tit">已标顾问</text>
</view>
<view class="item" @click="goTo(3)">
<text class="num">{{noMarkCount}}</text>
<text class="tit">未标顾问</text>
</view>
</view>
<view class="boxzonglan"> <view class="boxzonglan">
<view class="zonglantit">客群特征总览</view> <view class="zonglantit">客群特征总览</view>
<view class="zonglanbox"> <view class="zonglanbox">
@@ -96,7 +110,10 @@
activeTab: 0, activeTab: 0,
numlist:[], numlist:[],
objlist:[], objlist:[],
Afolding:true
Afolding:true,
efficient:"",
markCount:"",
noMarkCount:""
}; };
}, },
onPageScroll(e) { onPageScroll(e) {
@@ -113,6 +130,21 @@
}, 1000); }, 1000);
}, },
methods: { methods: {
goTo(i){
if(i==1){
uni.navigateTo({
url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0'
});
}else if(i==2){
uni.navigateTo({
url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=1'
});
}else{
uni.navigateTo({
url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0'
});
}
},
anclick(i){ anclick(i){
console.log(i) console.log(i)
this.Afolding=!this.Afolding; this.Afolding=!this.Afolding;
@@ -147,6 +179,10 @@
name:"有效接待", name:"有效接待",
num:data.total num:data.total
}) })
this.efficient = data.total
this.markCount = data.markCount
this.noMarkCount = data.noMarkCount
data.list.forEach((item,index)=>{ data.list.forEach((item,index)=>{
this.numlist.push({ this.numlist.push({
name:item.name, name:item.name,
@@ -235,6 +271,28 @@
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.info{
display: flex;
justify-content: space-between;
background: #fff;
padding: 10px 20px;
.item{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text{
font-size: 32rpx;
}
.num{
font-weight: bold;
}
.tit{
margin-top: 20rpx;
}
}
}
.anclack{ .anclack{
width: 100%; width: 100%;
height: 78rpx; height: 78rpx;


+ 2
- 1
utils/domain.js View File

@@ -1,7 +1,8 @@
// http.js使用域名 // http.js使用域名
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试
// const baseUrl = 'http://localhost:8080/autoSR/api'; // 本地 // const baseUrl = 'http://localhost:8080/autoSR/api'; // 本地
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // cl本地
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式






Loading…
Cancel
Save