From b66e5ece33ef31c6954548e580bf1f24c1d22fd7 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Sat, 28 Aug 2021 14:23:52 +0800 Subject: [PATCH] init --- config.js | 6 +++--- pages/center/Piabodata/TrendAnalysis.vue | 2 +- pages/center/consumer/consumerDetail.vue | 4 ++-- pages/center/consumer/edit.vue | 8 +++++++- pages/index/index.vue | 25 ++++++++++++++++-------- pages/mine/details2.vue | 3 ++- utils/http.js | 6 +++--- 7 files changed, 35 insertions(+), 19 deletions(-) diff --git a/config.js b/config.js index 68bcc72..d159b65 100644 --- a/config.js +++ b/config.js @@ -4,10 +4,10 @@ // 此处主机域名修改成腾讯云解决方案分配的域名 // 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'; // 数智正式 + // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 +// var host = 'https://hfju.com/api'; // 数智正式 var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index 6b7d758..d23f468 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -545,7 +545,7 @@ this.guwenshow = false; this.Selectlevel = false; this.Selecttuandui = false; - + this.tableDate=[] this.pamect.showStatus = 0; this.pamect.timeType = "4"; this.pamect.firstStartDate = ''; diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index ab30f57..34d13ad 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -22,8 +22,8 @@ --> - - 手机号码:{{customerInfo.phone || '--'}} + + 手机号码:{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}} 客户标签: diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 52c481a..42d9c0e 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -46,7 +46,7 @@ - + @@ -163,6 +163,7 @@ soure:'', }, + levelshow:false, customerId:'', // 等级 @@ -185,6 +186,7 @@ }, ], allList:[], + dataCode:'' // stagelist:[], // // 置业需求 // demandlist:[], @@ -199,6 +201,10 @@ } }, onLoad(e) { + const { + dataCode + } = uni.getStorageSync("weapp_session_userInfo_data"); + this.dataCode=dataCode console.log(e) // 先调用借口查询数据 this.customerId=e.id diff --git a/pages/index/index.vue b/pages/index/index.vue index 2052ff8..b6c9989 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -89,14 +89,16 @@ {{realtimeobj.receptionCount || 0}} 接待量 - - {{realtimeobj.sumCustomer|| 0}} - 接待客户 - {{realtimeobj.receivingCustomer || 0}} 正在接待 + + {{realtimeobj.tagCustomer || 0}} + 未标顾问 + + + @@ -106,13 +108,14 @@ 接待时长 - {{realtimeobj.fraction || 0}}% - 平均执行率 + {{realtimeobj.avgDuration|| 0}} + 平均接待时长 - {{realtimeobj.tagCustomer || 0}} - 未标顾问 + {{realtimeobj.fraction || 0}}% + 平均执行率 + @@ -134,6 +137,10 @@ {{Thisweekobj.sumDuration || 0}} 录音时长 + + {{Thisweekobj.avgDuration|| 0}} + 平均接待时长 + @@ -285,6 +292,7 @@ receivingCustomer: data.data.data.receivingCustomer, activeCustomer: data.data.data.activeCustomer, sumDuration: Math.floor(data.data.data.sumDuration/60) ||0, + avgDuration: Math.floor(data.data.data.avgDuration/60) ||0, tagCustomer: data.data.data.tagCustomer, fraction: data.data.data.fraction, receptionCount:data.data.data.receptionCount @@ -314,6 +322,7 @@ receivingCustomer: data.data.data.receivingCustomer, activeCustomer: data.data.data.activeCustomer, sumDuration:Math.floor(data.data.data.sumDuration/60) || 0, + avgDuration: Math.floor(data.data.data.avgDuration/60) ||0, tagCustomer: data.data.data.tagCustomer, fraction: data.data.data.fraction, receptionCount:data.data.data.receptionCount diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 42d805a..a7c1ade 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -418,10 +418,11 @@ var info =this.itemobj; }else{ var pages = getCurrentPages(); + console.log(pages,'当前页面栈信息') var currPage = pages[pages.length - 1]; //当前页面 var info = currPage.data.info; } - + // console.log(info) this.innerAudioContext = uni.createInnerAudioContext(); this.innerAudioContext.autoplay = false; this.innerAudioContext.title = '音频'; diff --git a/utils/http.js b/utils/http.js index de48e4c..b418c26 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,10 +1,10 @@ // 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'; // 数智正式 + // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 +// const baseUrl = 'https://hfju.com/api'; // 数智正式 const install = (Vue, vm) => { Vue.prototype.$u.http.setConfig({