@@ -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.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 = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// var host = 'https://hfju.com/api'; // 数智正式 | // var host = 'https://hfju.com/api'; // 数智正式 | ||||
@@ -135,7 +135,7 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title" style="padding-right: 30rpx;"> | <view class="title" style="padding-right: 30rpx;"> | ||||
<view class="title1" style="flex: 1;">销奖能力(TOP10)</view> | |||||
<view class="title1" style="flex: 1;">销讲能力(TOP10)</view> | |||||
<view class="title2" style="flex: 1;justify-content: flex-end;" @click="Groupcontrast"> | <view class="title2" style="flex: 1;justify-content: flex-end;" @click="Groupcontrast"> | ||||
<view class="title2-che">楼盘 | <view class="title2-che">楼盘 | ||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | ||||
@@ -42,8 +42,8 @@ | |||||
<view class="title1" style="flex: 1;">接待量</view> | <view class="title1" style="flex: 1;">接待量</view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{ newAvg1||0}}</view> | |||||
<view class="heji">{{staff1.label}}:{{newTeam1||0}}</view> | <view class="heji">{{staff1.label}}:{{newTeam1||0}}</view> | ||||
<view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{newAvg1||0}}</view> | |||||
</view> | </view> | ||||
<view class="danwei">来访(人)</view> | <view class="danwei">来访(人)</view> | ||||
<view class="uchaserbox"> | <view class="uchaserbox"> | ||||
@@ -61,7 +61,7 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="title1" style="flex: 1;">接待客户</view> | |||||
<view class="title1" style="flex: 1;">录音时长</view> | |||||
<view class="title3" style="flex: 1;"> | <view class="title3" style="flex: 1;"> | ||||
<!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)"> | <!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)"> | ||||
<view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view> | <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view> | ||||
@@ -72,8 +72,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji">{{staff1.label}}:{{newTeam2||0}}</view> | |||||
<view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{newAvg2||0}}</view> | <view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{newAvg2||0}}</view> | ||||
<view class="heji">{{staff1.label}}:{{ newTeam2||0}}</view> | |||||
</view> | </view> | ||||
<view class="danwei">录音时长</view> | <view class="danwei">录音时长</view> | ||||
<view class="uchaserbox"> | <view class="uchaserbox"> | ||||
@@ -91,7 +91,7 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="title1" style="flex: 1;">销奖趋势</view> | |||||
<view class="title1" style="flex: 1;">销讲执行率</view> | |||||
<view class="title3" style="flex: 1;"> | <view class="title3" style="flex: 1;"> | ||||
<!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)"> | <!-- <view class="title3-box" style="width: 40%;" @click="tabtimetap1(0)"> | ||||
<view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view> | <view style="height: 42rpx;" :class="{ activecltab: activeTotal2 == 0 }">有效录音</view> | ||||
@@ -102,10 +102,10 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{newAvg3||0}}</view> | |||||
<view class="heji">{{staff1.label}}:{{newTeam3||0}}</view> | <view class="heji">{{staff1.label}}:{{newTeam3||0}}</view> | ||||
<view class="heji" v-if="timepickpickisshow">{{staff2.label}}:{{newAvg3||0}}</view> | |||||
</view> | </view> | ||||
<view class="danwei">录音时长</view> | |||||
<!-- <view class="danwei">录音时长</view> --> | |||||
<view class="uchaserbox"> | <view class="uchaserbox"> | ||||
<qiun-data-charts | <qiun-data-charts | ||||
type="line" | type="line" | ||||
@@ -146,7 +146,7 @@ | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
timepickpickisshow:false, | |||||
timepickpickisshow:true, | |||||
totalTimeShow: false, | totalTimeShow: false, | ||||
activeTotal:4, | activeTotal:4, | ||||
activeTotal2:1, | activeTotal2:1, | ||||
@@ -476,7 +476,7 @@ | |||||
] | ] | ||||
first.map(item=>{ | first.map(item=>{ | ||||
this.chartData.categories.push(item.name) | this.chartData.categories.push(item.name) | ||||
this.chartData.series[0].data.push(item.sumCustomer) | |||||
this.chartData.series[0].data.push(item.avgExecutionRate) | |||||
}) | }) | ||||
}else{ | }else{ | ||||
this.chartData.series=[ | this.chartData.series=[ | ||||
@@ -491,10 +491,10 @@ | |||||
] | ] | ||||
first.map(item=>{ | first.map(item=>{ | ||||
this.chartData.categories.push(item.name) | this.chartData.categories.push(item.name) | ||||
this.chartData.series[0].data.push(item.sumCustomer) | |||||
this.chartData.series[0].data.push(item.avgExecutionRate) | |||||
}) | }) | ||||
second.map(item=>{ | second.map(item=>{ | ||||
this.chartData.series[1].data.push(item.sumCustomer) | |||||
this.chartData.series[1].data.push(item.avgExecutionRate) | |||||
}) | }) | ||||
} | } | ||||
@@ -53,8 +53,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji">{{!staff1.value?'团队':staff1.label}}:{{newTeam1||0}}</view> | |||||
<view class="heji">{{!staff2.value?'均值':staff2.label}}:{{newAvg1||0}}</view> | |||||
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam1||0}}</view> | |||||
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg1||0}}</view> | |||||
</view> | </view> | ||||
<view class="" v-if=" eharTab.active1 == 1 "> | <view class="" v-if=" eharTab.active1 == 1 "> | ||||
<view class="danwei">接待量</view> | <view class="danwei">接待量</view> | ||||
@@ -99,8 +99,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji">{{!staff1.value?'团队':staff1.label}}:{{newTeam2||0}}</view> | |||||
<view class="heji">{{!staff2.value?'均值':staff2.label}}:{{newAvg2||0}}</view> | |||||
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam2||0}}</view> | |||||
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg2||0}}</view> | |||||
</view> | </view> | ||||
<view class="" v-if=" eharTab.active2 == 1 "> | <view class="" v-if=" eharTab.active2 == 1 "> | ||||
<view class="danwei">录音时长</view> | <view class="danwei">录音时长</view> | ||||
@@ -131,7 +131,7 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="title1" style="flex: 1;">销奖执行率</view> | |||||
<view class="title1" style="flex: 1;">销讲执行率</view> | |||||
<view class="title3" style="flex: 1;"> | <view class="title3" style="flex: 1;"> | ||||
<view class="title3-box" @click="tabtimetap3(0)"> | <view class="title3-box" @click="tabtimetap3(0)"> | ||||
<view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 0 }">排名</view> | <view style="height: 42rpx;" :class="{ activecltab: eharTab.active3 == 0 }">排名</view> | ||||
@@ -145,8 +145,8 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="hejibox"> | <view class="hejibox"> | ||||
<view class="heji">{{!staff1.value?'团队':staff1.label}}:{{newTeam3||0}}</view> | |||||
<view class="heji">{{!staff2.value?'均值':staff2.label}}:{{newAvg3||0}}</view> | |||||
<view class="heji">{{!staff1.value?'团队总数':staff1.label}}:{{newTeam3||0}}</view> | |||||
<view class="heji">{{!staff2.value?'团队平均':staff2.label}}:{{newAvg3||0}}</view> | |||||
</view> | </view> | ||||
<view class="" v-if=" eharTab.active3 == 1 "> | <view class="" v-if=" eharTab.active3 == 1 "> | ||||
<view class="danwei">执行率</view> | <view class="danwei">执行率</view> | ||||
@@ -208,9 +208,9 @@ | |||||
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | <view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | ||||
<view class="single"> | <view class="single"> | ||||
<view class="title" style="padding-right: 30rpx;"> | <view class="title" style="padding-right: 30rpx;"> | ||||
<view class="title1" style="flex: 1;">销奖能力</view> | |||||
<view class="title1" style="flex: 1;">销讲能力</view> | |||||
<view class="title2" style="flex: 1;justify-content: flex-end;" @click="goTeam"> | <view class="title2" style="flex: 1;justify-content: flex-end;" @click="goTeam"> | ||||
<view class="title2-che">楼盘 | |||||
<view class="title2-che">团队 | |||||
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | <image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -801,7 +801,7 @@ | |||||
result[0].map(item=>{ | result[0].map(item=>{ | ||||
let obj={} | let obj={} | ||||
obj.name=item.deptName | obj.name=item.deptName | ||||
obj.zxl=item.receptionCount | |||||
obj.zxl=item.data | |||||
this['newlisttabinfo'+index].push(obj) | this['newlisttabinfo'+index].push(obj) | ||||
}) | }) | ||||
} | } | ||||
@@ -811,7 +811,7 @@ | |||||
result[0].map(item=>{ | result[0].map(item=>{ | ||||
let obj={} | let obj={} | ||||
obj.name=item.deptName | obj.name=item.deptName | ||||
obj.zxl=item.receptionCount | |||||
obj.zxl=item.data | |||||
this['newlisttabinfo'+index].push(obj) | this['newlisttabinfo'+index].push(obj) | ||||
}) | }) | ||||
// 判断是否显示平均 | // 判断是否显示平均 | ||||
@@ -820,7 +820,7 @@ | |||||
result[1].map(item=>{ | result[1].map(item=>{ | ||||
let obj={} | let obj={} | ||||
obj.name='平均' | obj.name='平均' | ||||
obj.zxl=item.receptionCount | |||||
obj.zxl=item.data | |||||
this['newlisttabinfo'+index].push(obj) | this['newlisttabinfo'+index].push(obj) | ||||
}) | }) | ||||
} | } | ||||
@@ -830,13 +830,13 @@ | |||||
result[0].map(item=>{ | result[0].map(item=>{ | ||||
let obj={} | let obj={} | ||||
obj.name=item.deptName | obj.name=item.deptName | ||||
obj.zxl=item.receptionCount | |||||
obj.zxl=item.data | |||||
this['newlisttabinfo'+index].push(obj) | this['newlisttabinfo'+index].push(obj) | ||||
}) | }) | ||||
result[1].map(item=>{ | result[1].map(item=>{ | ||||
let obj={} | let obj={} | ||||
obj.name=item.deptName | obj.name=item.deptName | ||||
obj.zxl=item.receptionCount | |||||
obj.zxl=item.data | |||||
this['newlisttabinfo'+index].push(obj) | this['newlisttabinfo'+index].push(obj) | ||||
}) | }) | ||||
} | } | ||||
@@ -171,11 +171,11 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="table" v-if="guwenFlag"> | |||||
<scroll-view style="" scroll-x="true"> | |||||
<view class="table" v-if="guwenFlag" style="width: 100%;"> | |||||
<scroll-view style="width:750rpx;" scroll-x="true"> | |||||
<view v-for="(item,index) in tableDate" :key="index"> | <view v-for="(item,index) in tableDate" :key="index"> | ||||
<view class="tr"> | <view class="tr"> | ||||
<view v-for="(item1,index1) in item" :key="index1" style="width: 100%;"> | |||||
<view v-for="(item1,index1) in item" :key="index1" class="trd"> | |||||
<view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}" | <view v-if="index==1&&index1>0" class="td" :style="{color:item1*1>0?'red':'green'}" | ||||
style="border-right:1px solid #E0E0E0;">{{item1==0?'--':item1+'%'}}</view> | style="border-right:1px solid #E0E0E0;">{{item1==0?'--':item1+'%'}}</view> | ||||
<view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;"> | <view v-else-if="index>1&&index1>0" class="td" style="border-right:1px solid #E0E0E0;"> | ||||
@@ -1117,12 +1117,13 @@ | |||||
.tr { | .tr { | ||||
display: flex; | display: flex; | ||||
width: 100%; | |||||
// width: 100%; | |||||
justify-content: center; | justify-content: center; | ||||
height: 64rpx; | height: 64rpx; | ||||
align-items: center; | align-items: center; | ||||
border-bottom: 1px solid #E0E0E0; | border-bottom: 1px solid #E0E0E0; | ||||
flex-wrap: nowrap; | |||||
.td { | .td { | ||||
text-align: center; | text-align: center; | ||||
font-size: 24rpx; | font-size: 24rpx; | ||||
@@ -1130,8 +1131,13 @@ | |||||
color: #333333; | color: #333333; | ||||
height: 64rpx; | height: 64rpx; | ||||
line-height: 64rpx; | line-height: 64rpx; | ||||
// flex-shrink: 0; | |||||
} | |||||
.trd{ | |||||
flex-shrink: 0; | |||||
width: 200rpx; | |||||
} | } | ||||
.th { | .th { | ||||
height: 64rpx; | height: 64rpx; | ||||
text-align: center; | text-align: center; | ||||
@@ -75,7 +75,7 @@ | |||||
<view class="heji">合计:50</view> | <view class="heji">合计:50</view> | ||||
<view class="heji">均值:25</view> | <view class="heji">均值:25</view> | ||||
</view> --> | </view> --> | ||||
<view class="danwei">来访(人)</view> | |||||
<!-- <view class="danwei">来访(人)</view> --> | |||||
<view class="uchaserbox"> | <view class="uchaserbox"> | ||||
<qiun-data-charts | <qiun-data-charts | ||||
type="line" | type="line" | ||||
@@ -170,16 +170,19 @@ | |||||
<view class="heji">合计:50</view> | <view class="heji">合计:50</view> | ||||
<view class="heji">均值:25</view> | <view class="heji">均值:25</view> | ||||
</view> --> | </view> --> | ||||
<view class="jindu"> | <view class="jindu"> | ||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index"> | |||||
<view class="jindu-boxche"> | |||||
<view class="jindu-name">{{item.name.substring(0, 4)}}</view> | |||||
<view style="width: 440rpx;margin-left: 10rpx;"> | |||||
<u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress> | |||||
<scroll-view style="height: 300rpx;" scroll-y="true" > | |||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index"> | |||||
<view class="jindu-boxche"> | |||||
<view class="jindu-name">{{item.name.substring(0, 4)}}</view> | |||||
<view style="width: 440rpx;margin-left: 10rpx;"> | |||||
<u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress> | |||||
</view> | |||||
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view> | |||||
</view> | </view> | ||||
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view> | |||||
</view> | </view> | ||||
</view> | |||||
</scroll-view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -194,15 +197,18 @@ | |||||
</u-tabs-swiper> | </u-tabs-swiper> | ||||
</view> | </view> | ||||
<view class="jindu"> | <view class="jindu"> | ||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index"> | |||||
<view class="jindu-boxche"> | |||||
<view class="jindu-name">{{item.name.substring(0, 4)}}</view> | |||||
<view style="width: 440rpx;margin-left: 10rpx;"> | |||||
<u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress> | |||||
<scroll-view style="height: 300rpx;" scroll-y="true" > | |||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index"> | |||||
<view class="jindu-boxche"> | |||||
<view class="jindu-name">{{item.name.substring(0, 4)}}</view> | |||||
<view style="width: 440rpx;margin-left: 10rpx;"> | |||||
<u-line-progress height="24" :show-percent="false" active-color="#4FC78F" :percent="item.zxl"></u-line-progress> | |||||
</view> | |||||
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view> | |||||
</view> | </view> | ||||
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}%</view> | |||||
</view> | </view> | ||||
</view> | |||||
</scroll-view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -268,13 +274,8 @@ | |||||
] | ] | ||||
}, | }, | ||||
lineOptsect1:{ | lineOptsect1:{ | ||||
"categories": ["2016","2017","2018","2019","2020","2021"], | |||||
"series": [ | |||||
{ | |||||
"name": "成交量", | |||||
"data": [35,8,25,37,4,20] | |||||
} | |||||
] | |||||
"categories": [], | |||||
"series": [] | |||||
}, | }, | ||||
lineOptsect2:{ | lineOptsect2:{ | ||||
"categories": ["2016","2017","2018","2019","2020","2021"], | "categories": ["2016","2017","2018","2019","2020","2021"], | ||||
@@ -449,8 +450,9 @@ | |||||
}, | }, | ||||
// 员工销奖趋势 | // 员工销奖趋势 | ||||
getAward(){ | getAward(){ | ||||
if(!this.staff.value){ | |||||
if(this.staffList.length==0){ | |||||
this.staffFlag=false | this.staffFlag=false | ||||
this.$forceUpdate() | |||||
return | return | ||||
} | } | ||||
this.$u.post('/cusLvStatistics/employeeAnalysisExacutiveRate',{ | this.$u.post('/cusLvStatistics/employeeAnalysisExacutiveRate',{ | ||||
@@ -482,8 +484,9 @@ | |||||
}, | }, | ||||
// 团队接待趋势 | // 团队接待趋势 | ||||
receptionCountList(){ | receptionCountList(){ | ||||
if(!this.team.value){ | |||||
if(this.teamList.length==0){ | |||||
this.teamFlag=false | this.teamFlag=false | ||||
this.$forceUpdate() | |||||
return | return | ||||
} | } | ||||
this.$u.post('/cusLvStatistics/teamAnalysisExecutionRate',{ | this.$u.post('/cusLvStatistics/teamAnalysisExecutionRate',{ | ||||
@@ -621,6 +624,13 @@ | |||||
}, | }, | ||||
//团队对比 | //团队对比 | ||||
Theteamcompared(){ | Theteamcompared(){ | ||||
if(this.teamList.length==0){ | |||||
uni.showToast({ | |||||
title:'没有团队呢', | |||||
icon:'none' | |||||
}) | |||||
return | |||||
} | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/center/Piabodata/Theteamcompared' | url: '/pages/center/Piabodata/Theteamcompared' | ||||
}); | }); | ||||
@@ -639,6 +649,13 @@ | |||||
}, | }, | ||||
//员工分析 | //员工分析 | ||||
toStaffAnalysis(){ | toStaffAnalysis(){ | ||||
if(this.staffList.length==0){ | |||||
uni.showToast({ | |||||
title:'没有团队呢', | |||||
icon:'none' | |||||
}) | |||||
return | |||||
} | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: '/pages/center/Piabodata/StaffAnalysis' | url: '/pages/center/Piabodata/StaffAnalysis' | ||||
}); | }); | ||||
@@ -197,6 +197,7 @@ | |||||
num: 0, //上拉 转写文件下标 | num: 0, //上拉 转写文件下标 | ||||
Bnum: 0, //下拉 转写文件下标 | Bnum: 0, //下拉 转写文件下标 | ||||
status:0, | status:0, | ||||
timer:null | |||||
}; | }; | ||||
}, | }, | ||||
onLoad: function(options) { | onLoad: function(options) { | ||||
@@ -206,7 +207,7 @@ | |||||
// 当进入页面时调一次接口添加浏览量 | // 当进入页面时调一次接口添加浏览量 | ||||
this.getView() | this.getView() | ||||
let that=this | let that=this | ||||
setTimeout(function(){ | |||||
this.timer=setTimeout(function(){ | |||||
that.addHot() | that.addHot() | ||||
},30000) | },30000) | ||||
}, | }, | ||||
@@ -232,6 +233,7 @@ | |||||
}, | }, | ||||
// 在组件实例被从页面节点树移除时执行 | // 在组件实例被从页面节点树移除时执行 | ||||
destroyed: function() { | destroyed: function() { | ||||
clearTimeout(this.timer) | |||||
if (this.innerAudioContext) { | if (this.innerAudioContext) { | ||||
this.innerAudioContext.destroy(); | this.innerAudioContext.destroy(); | ||||
} | } | ||||
@@ -223,6 +223,7 @@ | |||||
itemobj:{}, | itemobj:{}, | ||||
textindex:0,//下拉 转写文件下标 | textindex:0,//下拉 转写文件下标 | ||||
toptextindex:0,//上拉 转写文件下标 | toptextindex:0,//上拉 转写文件下标 | ||||
timer:null | |||||
}; | }; | ||||
}, | }, | ||||
onLoad: function(options) { | onLoad: function(options) { | ||||
@@ -236,7 +237,7 @@ | |||||
// 当进入页面时调一次接口添加浏览量 | // 当进入页面时调一次接口添加浏览量 | ||||
this.getView() | this.getView() | ||||
let that=this | let that=this | ||||
setTimeout(function(){ | |||||
this.timer=setTimeout(function(){ | |||||
that.addHot() | that.addHot() | ||||
},30000) | },30000) | ||||
}, | }, | ||||
@@ -267,6 +268,7 @@ | |||||
}, | }, | ||||
// 在组件实例被从页面节点树移除时执行 | // 在组件实例被从页面节点树移除时执行 | ||||
destroyed: function() { | destroyed: function() { | ||||
clearTimeout(this.timer) | |||||
if (this.innerAudioContext) { | if (this.innerAudioContext) { | ||||
this.innerAudioContext.destroy(); | this.innerAudioContext.destroy(); | ||||
} | } | ||||
@@ -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.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 = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | ||||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | // const baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||