From 64798bdccf5405697ff0602c99eec50f8dc381dc Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Thu, 1 Sep 2022 19:34:51 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=A4=9A=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 6 +
components/uniapp-zaudio/zaudio.vue | 2 -
env/prod_xjzs.js | 4 +-
.../center/Piabodata/Employeesstatistics.vue | 286 +++++-----
pages/index/customer.vue | 76 ++-
pages/index/learning.vue | 259 +++++----
pages/learning/Equinoctial/index.vue | 203 ++++---
pages/mine/details.vue | 174 +++---
pages/mine/details2.vue | 540 +++++++++++-------
pages/mine/reception/addreception.vue | 52 +-
pages/mine/reception/consultant.vue | 262 +++++++--
static/images/detail/icon1.png | Bin 0 -> 1115 bytes
static/images/detail/icon2.png | Bin 0 -> 1612 bytes
static/images/detail/icon3.png | Bin 0 -> 1646 bytes
static/images/detail/icon4.png | Bin 0 -> 1798 bytes
utils/domain.js | 3 +-
16 files changed, 1136 insertions(+), 731 deletions(-)
create mode 100644 static/images/detail/icon1.png
create mode 100644 static/images/detail/icon2.png
create mode 100644 static/images/detail/icon3.png
create mode 100644 static/images/detail/icon4.png
diff --git a/App.vue b/App.vue
index bb97bb3..43ab1d3 100644
--- a/App.vue
+++ b/App.vue
@@ -79,6 +79,12 @@
}
return obj
},
+
+ // 检测权限 返回 Boolean类型
+ CHECKAUTHORITY(name = '') {
+ let menu = uni.getStorageSync('weapp_session_Menu_data')
+ return menu[name] === undefined ? false : menu[name]
+ },
},
filters: {
diff --git a/components/uniapp-zaudio/zaudio.vue b/components/uniapp-zaudio/zaudio.vue
index c7656af..e8a2028 100644
--- a/components/uniapp-zaudio/zaudio.vue
+++ b/components/uniapp-zaudio/zaudio.vue
@@ -197,7 +197,6 @@
this.renderIsPlay = renderIsPlay;
this.audio = renderinfo;
this.loading = loading;
- console.log(this.playinfo)
});
this.$zaudio.syncRender()
});
@@ -226,7 +225,6 @@
//进度拖到
change(event) {
if (this.renderIsPlay) {
- console.log(event)
this.$zaudio.seek(event.detail.value);
}
},
diff --git a/env/prod_xjzs.js b/env/prod_xjzs.js
index 0fe266e..2cdf2c4 100644
--- a/env/prod_xjzs.js
+++ b/env/prod_xjzs.js
@@ -1,6 +1,6 @@
const ENV_PATH = {
- // baseUrl: 'https://www.aihxz.com/', // 销讲助手
- baseUrl: 'https://hxz.quhouse.com', // 销讲助手
+ baseUrl: 'https://www.aihxz.com', // 销讲助手
+ // baseUrl: 'https://hxz.quhouse.com', // 销讲助手
}
module.exports = ENV_PATH
\ No newline at end of file
diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue
index 1186c59..b864ec6 100644
--- a/pages/center/Piabodata/Employeesstatistics.vue
+++ b/pages/center/Piabodata/Employeesstatistics.vue
@@ -19,36 +19,38 @@
接待量排名(TOP10)
-
+
{{newlisttabinfo1.total}}
合计接待次数
-
+
{{newlisttabinfo1.count}}
顾问人数
-
+
{{newlisttabinfo1.avg}}
人均接待次数
-
+
-
+
{{index+1}}
- {{item.name.substring(0,4)}}
+ {{item.name.substring(0,4)}}
+
-
-
-
-
+
+
+
+
- {{item.zxl==null?0:item.zxl}}次
+ {{item.zxl==null?0:item.zxl}}次
@@ -59,36 +61,38 @@
- 平均执行率排行(TOP10)
+ 平均执行率排行(TOP10)
-
+
{{newlisttabinfo3.count}}
顾问人数
-
+
{{newlisttabinfo3.avg}}%
人均执行率
-
+
{{index+1}}
- {{item.name.substring(0,4)}}
+ {{item.name.substring(0,4)}}
+
-
-
-
-
-
+
+
+
+
+
{{item.zxl==null?0:item.zxl}}%
@@ -103,33 +107,35 @@
录音时长(TOP10)
-
+
{{newlisttabinfo2.total}}
合计时长/分钟
-
+
{{newlisttabinfo2.count}}
顾问人数
-
+
{{newlisttabinfo2.avg}}
人均录音时长/分钟
-
+
{{index+1}}
- {{item.name.substring(0,4)}}
+ {{item.name.substring(0,4)}}
+
-
-
-
-
+
+
+
+
{{item.zxl==null?0:item.zxl}}分钟
@@ -149,31 +155,34 @@
{{newlisttabinfo4.total}}
合计次数
-
+
{{newlisttabinfo4.count}}人
顾问人数
-
+
{{newlisttabinfo4.avg}}
人均违禁次数
-
+
{{index+1}}
- {{item.name.substring(0,4)}}
+ {{item.name.substring(0,4)}}
+
+
-
-
-
-
+
+
+
+
- {{item.zxl==null?0:item.zxl}}次
+ {{item.zxl==null?0:item.zxl}}次
@@ -191,11 +200,11 @@
{{newlisttabinfo5.total||0}}
合计
-
+
{{newlisttabinfo5.count||0}}人
顾问
-
+
{{newlisttabinfo5.avg||0}}
均值
@@ -203,20 +212,21 @@
-
+
{{index+1}}
- {{item.name.substring(0,4)}}
+ {{item.name.substring(0,4)}}
+
-
-
-
-
+
+
+
+
- {{item.zxl==null?0:item.zxl}}次
+ {{item.zxl==null?0:item.zxl}}次
@@ -225,10 +235,10 @@
-
+
-
+
@@ -284,73 +294,66 @@
this.init()
},
computed: {
-
+
},
- onPullDownRefresh(){
+ onPullDownRefresh() {
this.init()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
methods: {
- getPercent(num,type) {
- if(this.newlisttabinfo1.result&&this.newlisttabinfo1.result.length&&type==1){
- console.log(this.newlisttabinfo1.result)
+ getPercent(num, type) {
+ if (this.newlisttabinfo1.result && this.newlisttabinfo1.result.length && type == 1) {
let index0 = this.newlisttabinfo1.result[0]
- let percent = num/(index0.zxl) * 100
- // console.log(index0.zxl)
- // console.log(index0)
- // console.log('num',num)
- // console.log(percent)
- // console.log(percent.toFixed(2))
+ let percent = num / (index0.zxl == 0 ? 1 : index0.zxl) * 100
return percent.toFixed(2)
- }else if(this.newlisttabinfo2.result&&this.newlisttabinfo2.result.length&&type==2){
+ } else if (this.newlisttabinfo2.result && this.newlisttabinfo2.result.length && type == 2) {
let index0 = this.newlisttabinfo2.result[0]
- let percent = num/(index0.zxl) * 100
+ let percent = num / (index0.zxl == 0 ? 1 : index0.zxl) * 100
return percent.toFixed(2)
-
- }else if(this.newlisttabinfo4.result&&this.newlisttabinfo4.result.length&&type==4){
+
+ } else if (this.newlisttabinfo4.result && this.newlisttabinfo4.result.length && type == 4) {
let index0 = this.newlisttabinfo4.result[0]
- let percent = num/(index0.zxl) * 100
+ let percent = num / (index0.zxl == 0 ? 1 : index0.zxl) * 100
return percent.toFixed(2)
- }else if(this.newlisttabinfo5.result&&this.newlisttabinfo5.result.length&&type==5){
+ } else if (this.newlisttabinfo5.result && this.newlisttabinfo5.result.length && type == 5) {
let index0 = this.newlisttabinfo5.result[0]
- let percent = num/(index0.zxl) * 100
+ let percent = num / (index0.zxl == 0 ? 1 : index0.zxl) * 100
return percent.toFixed(2)
- }else{
+ } else {
return 0
}
},
- getPercent1(num){
- console.log(num)
- return num||0
+ getPercent1(num) {
+ return num || 0
},
- 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: [],
+ },
+ this.newlisttabinfo3 = {
+ avg: '',
+ count: '',
+ total: '',
+ result: [],
+ },
+ this.newlisttabinfo4 = {
+ avg: '',
+ count: '',
+ total: '',
+ result: [],
+ }
this.newlisttabinfo2 = {
avg: '',
count: '',
@@ -458,7 +461,6 @@
//自定义时间
totalTimeChange(e) {
- console.log(e.startDate, e.endDate)
this.activeTotal = 3;
this.lastEndDate = e.endDate
this.lastStartDate = e.startDate
@@ -470,8 +472,8 @@
if (index == 3) {
this.totalTimeShow = true;
} else {
- this.lastEndDate='';
- this.lastStartDate='';
+ this.lastEndDate = '';
+ this.lastStartDate = '';
this.init()
}
},
@@ -481,22 +483,6 @@
let num = Math.max.apply(Math, arr.map(function(o) {
return o.zxl
})) //结果:3
- // console.log(num)
- // if(num>100){
- // // 获取最大值的下标
- // // let idx=arr.findIndex(item=>item.zxl==num)
- // // console.log(idx,123)
- // arr.map(item=>{
- // item.zxl1=Math.floor(item.zxl/num*100)
- // })
- // // console.log(arr)
- // return arr
- // }else{
- // arr.map(item=>{
- // item.zxl1=item.zxl
- // })
- // return arr
- // }
arr.map(item => {
item.zxl1 = Math.floor(item.zxl / num * 100)
})
@@ -513,10 +499,11 @@
background: #FAFAFA;
}
-.single{
- padding-bottom: 20rpx;
- margin-top: 20rpx;
-}
+ .single {
+ padding-bottom: 20rpx;
+ margin-top: 20rpx;
+ }
+
.boxtittab {
position: sticky;
top: var(--window-top);
@@ -529,15 +516,17 @@
display: flex;
padding-top: 20rpx;
- padding-bottom:20rpx;
- .sanbox1{
+ padding-bottom: 20rpx;
+
+ .sanbox1 {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
- &::after{
+
+ &::after {
position: absolute;
content: '';
width: 1rpx;
@@ -546,6 +535,7 @@
right: 0;
top: 0;
}
+
&:last-child::after {
position: absolute;
content: '';
@@ -556,7 +546,8 @@
background: #fff;
}
}
- .text1-1{
+
+ .text1-1 {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
@@ -572,26 +563,29 @@
margin-bottom: 10rpx;
}
}
- .jindu-name{
- width: 180rpx;
- margin-left: 15rpx;
- }
- .sort-img{
- width: 44rpx;
- height: 44rpx;
- margin-right: 15rpx;
- }
- .sort-number{
- width: 40rpx;
- height: 40rpx;
- background: #E5F0FF;
- border-radius: 50%;
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- text-align: center;
- line-height: 40rpx;
- margin-right: 15rpx;
- }
+
+ .jindu-name {
+ width: 180rpx;
+ margin-left: 15rpx;
+ }
+
+ .sort-img {
+ width: 44rpx;
+ height: 44rpx;
+ margin-right: 15rpx;
+ }
+
+ .sort-number {
+ width: 40rpx;
+ height: 40rpx;
+ background: #E5F0FF;
+ border-radius: 50%;
+ font-size: 24rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #333333;
+ text-align: center;
+ line-height: 40rpx;
+ margin-right: 15rpx;
+ }
diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index c9cea5f..5483395 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -136,15 +136,16 @@
-
-
+
@@ -152,7 +153,7 @@