diff --git a/config.js b/config.js index 1e4502e..80ee131 100644 --- a/config.js +++ b/config.js @@ -76,6 +76,9 @@ var config = { updateList: `${host}/zkMessage/messageList`, // 升级公告更新阅读 updateRead: `${host}/zkMessage/updateFlag`, + + // 隐私协议 + privacyAgr: `${host}/zkPrivate/findById`, } }; module.exports = config; \ No newline at end of file diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue index 47f981a..eaa0635 100644 --- a/pages/center/Piabodata/Employeesstatistics.vue +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -17,142 +17,150 @@ - 接待量排名(TOP10) + 接待量排名(TOP10) 合计 {{newlisttabinfo1.total}}次 - + 顾问 {{newlisttabinfo1.count}}人 - + 人均接待量 {{newlisttabinfo1.avg}}次 - + - + {{item.name.substring(0,4)}} - + {{item.zxl==null?0:item.zxl}}次 - + 暂无数据 - + - 销讲执行率排行(TOP10) + 销讲执行率排行(TOP10) - + 顾问 {{newlisttabinfo3.count}}人 - + 人均执行率 {{newlisttabinfo3.avg}}% - + {{item.name.substring(0,4)}} - + {{item.zxl==null?0:item.zxl}}% - + 暂无数据 - - + + - 录音时长(TOP10) + 录音时长(TOP10) 合计 {{newlisttabinfo2.total}}分钟 - + 顾问 {{newlisttabinfo2.count}}人 - + 人均录音时长 {{newlisttabinfo2.avg}}分钟 - + {{item.name.substring(0,4)}} - + {{item.zxl==null?0:item.zxl}}分钟 - + 暂无数据 - + - 违禁次数排名(TOP10) + 违禁次数排名(TOP10) 合计 {{newlisttabinfo4.total}}次 - + 顾问 {{newlisttabinfo4.count}}人 - + 人均违禁次数 {{newlisttabinfo4.avg}}次 - + {{item.name.substring(0,4)}} - + {{item.zxl==null?0:item.zxl}}次 - + 暂无数据 - - + + @@ -167,32 +175,32 @@ activeTotal: 4, totalTimeShow: false, // 项目id - houseId:'', - lastEndDate:'', - lastStartDate:'', - newlisttabinfo1:{ - avg:'', - count:'', - total:'', - result:[], + houseId: '', + lastEndDate: '', + lastStartDate: '', + newlisttabinfo1: { + avg: '', + count: '', + total: '', + result: [], }, - newlisttabinfo2:{ - avg:'', - count:'', - total:'', - result:[], + newlisttabinfo2: { + avg: '', + count: '', + total: '', + result: [], }, - newlisttabinfo3:{ - avg:'', - count:'', - total:'', - result:[], + newlisttabinfo3: { + avg: '', + count: '', + total: '', + result: [], }, - newlisttabinfo4:{ - avg:'', - count:'', - total:'', - result:[], + newlisttabinfo4: { + avg: '', + count: '', + total: '', + result: [], }, }; }, @@ -201,52 +209,52 @@ this.houseId = uni.getStorageSync('buildingID').id; this.init() }, - onPullDownRefresh(){ + onPullDownRefresh() { this.init() - setTimeout(function () { - uni.stopPullDownRefresh(); + setTimeout(function() { + uni.stopPullDownRefresh(); }, 1000); }, methods: { - init(){ - this.newlisttabinfo1={ - avg:'', - count:'', - total:'', - result:[], - }, - this.newlisttabinfo2={ - avg:'', - count:'', - total:'', - result:[], - }, - this.newlisttabinfo3={ - avg:'', - count:'', - total:'', - result:[], - }, - this.newlisttabinfo4={ - avg:'', - count:'', - total:'', - result:[], + init() { + this.newlisttabinfo1 = { + avg: '', + count: '', + total: '', + result: [], + } + this.newlisttabinfo2 = { + avg: '', + count: '', + total: '', + result: [], } - - var activeTotal=0; - if(this.activeTotal==3){ - activeTotal=null; - }else{ - activeTotal=this.activeTotal; - this.lastEndDate=''; - this.lastStartDate=''; + this.newlisttabinfo3 = { + avg: '', + count: '', + total: '', + result: [], } - var promse={ - timeType:activeTotal, - lastStartDate:this.lastStartDate, - lastEndDate:this.lastEndDate, - houseId:this.houseId + this.newlisttabinfo4 = { + avg: '', + count: '', + total: '', + result: [], + } + + var activeTotal = 0; + if (this.activeTotal == 3) { + activeTotal = null; + } else { + activeTotal = this.activeTotal; + this.lastEndDate = ''; + this.lastStartDate = ''; + } + var promse = { + timeType: activeTotal, + lastStartDate: this.lastStartDate, + lastEndDate: this.lastEndDate, + houseId: this.houseId } this.staffStatisticsReceptionTop10(promse) this.staffStatisticsRecordingTimTop10(promse) @@ -254,57 +262,57 @@ this.staffStatisticsProhibitedTop10(promse) }, //接待量排名 - staffStatisticsReceptionTop10(promse){ - - this.$u.post('/cusLvStatistics/staffStatisticsReceptionTop10',promse).then(res=>{ - res.result.forEach(item=>{ - item.zxl=item.data - item.name=item.accountName + staffStatisticsReceptionTop10(promse) { + + this.$u.post('/cusLvStatistics/staffStatisticsReceptionTop10', promse).then(res => { + res.result.forEach(item => { + item.zxl = item.data + item.name = item.accountName }) - res.result=this.dealData(res.result) - this.newlisttabinfo1=res; + res.result = this.dealData(res.result) + this.newlisttabinfo1 = res; }) }, //录音时长 - staffStatisticsRecordingTimTop10(promse){ - this.$u.post('/cusLvStatistics/staffStatisticsRecordingTimTop10',promse).then(res=>{ - res.result.forEach(item=>{ - item.zxl=item.data - item.name=item.accountName + staffStatisticsRecordingTimTop10(promse) { + this.$u.post('/cusLvStatistics/staffStatisticsRecordingTimTop10', promse).then(res => { + res.result.forEach(item => { + item.zxl = item.data + item.name = item.accountName }) - res.result=this.dealData(res.result) - this.newlisttabinfo2=res; + res.result = this.dealData(res.result) + this.newlisttabinfo2 = res; }) }, //销讲 - staffStatisticsExecutionRateTop10(promse){ - this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10',promse).then(res=>{ - res.result.forEach(item=>{ - item.zxl=item.data; - item.zxl1=item.data; - item.name=item.accountName + staffStatisticsExecutionRateTop10(promse) { + this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10', promse).then(res => { + res.result.forEach(item => { + item.zxl = item.data; + item.zxl1 = item.data; + item.name = item.accountName }) - this.newlisttabinfo3=res; + this.newlisttabinfo3 = res; }) }, //j禁忌 - staffStatisticsProhibitedTop10(promse){ - this.$u.post('/cusLvStatistics/staffStatisticsProhibitedTop10',promse).then(res=>{ - res.result.forEach(item=>{ - item.zxl=item.data - item.name=item.accountName + staffStatisticsProhibitedTop10(promse) { + this.$u.post('/cusLvStatistics/staffStatisticsProhibitedTop10', promse).then(res => { + res.result.forEach(item => { + item.zxl = item.data + item.name = item.accountName }) - res.result=this.dealData(res.result) - this.newlisttabinfo4=res; + res.result = this.dealData(res.result) + this.newlisttabinfo4 = res; }) }, - + //自定义时间 totalTimeChange(e) { console.log(e.startDate, e.endDate) - this.activeTotal=3; - this.lastEndDate=e.endDate - this.lastStartDate=e.startDate + this.activeTotal = 3; + this.lastEndDate = e.endDate + this.lastStartDate = e.startDate this.init() }, //时间切换 @@ -313,15 +321,17 @@ this.totalTimeShow = true; } else { this.activeTotal = index; - this.lastEndDate=''; - this.lastStartDate=''; + this.lastEndDate = ''; + this.lastStartDate = ''; this.init() } }, // 定义一个公共方法对数据进行处理 - dealData(arr){ + dealData(arr) { // 获取最大值 - let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 + let num = Math.max.apply(Math, arr.map(function(o) { + return o.zxl + })) //结果:3 // console.log(num) // if(num>100){ // // 获取最大值的下标 @@ -338,11 +348,11 @@ // }) // return arr // } - arr.map(item=>{ - item.zxl1=Math.floor(item.zxl/num*100) + arr.map(item => { + item.zxl1 = Math.floor(item.zxl / num * 100) }) return arr - + }, } }; @@ -354,23 +364,25 @@ background: #FAFAFA; padding-bottom: 60rpx; } - + .boxtittab { position: sticky; top: var(--window-top); z-index: 999; } - - .hejisan{ + + .hejisan { width: 92%; margin: 0 auto; display: flex; padding-top: 20rpx; - padding-bottom:20rpx; - .text1-1{ + padding-bottom: 20rpx; + + .text1-1 { color: #666666; } - .text1-2{ + + .text1-2 { color: #333333; margin-top: 10rpx; } diff --git a/pages/index/personal.vue b/pages/index/personal.vue index d4065cc..a040610 100644 --- a/pages/index/personal.vue +++ b/pages/index/personal.vue @@ -15,7 +15,7 @@ - + diff --git a/pages/mine/registerCode.vue b/pages/mine/registerCode.vue index 5094457..5f9eb36 100644 --- a/pages/mine/registerCode.vue +++ b/pages/mine/registerCode.vue @@ -24,7 +24,7 @@ this.appid = uni.getAccountInfoSync().miniProgram.appId; this.qrCodeUrl = domain.baseUrl; }, - methods: { + methods: { down() { let url = this.qrCodeUrl+'/customer/getQrCode?appid='+this.appid+'&page=pages/mine/registerForm&scene='+this.projectId console.log(url) @@ -37,7 +37,7 @@ success: () => { uni.showToast({ title: "保存成功", - icon: "none", + icon: "none" }) }, fail: () => { diff --git a/pages/mine/registerForm.vue b/pages/mine/registerForm.vue index 81dd73f..576f8cc 100644 --- a/pages/mine/registerForm.vue +++ b/pages/mine/registerForm.vue @@ -1,327 +1,554 @@ - - - - diff --git a/pages/mine/registerResult.vue b/pages/mine/registerResult.vue index b7aafaa..8d38082 100644 --- a/pages/mine/registerResult.vue +++ b/pages/mine/registerResult.vue @@ -13,33 +13,35 @@ export default { data() { return { - + }; } }