@@ -467,6 +467,15 @@ | |||||
}; | }; | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
this.intention=false; | this.intention=false; | ||||
this.kehuyixiangcenterindex=0; | this.kehuyixiangcenterindex=0; | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
@@ -147,8 +147,8 @@ | |||||
<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" style="margin-top: 20rpx;"> | |||||
<view style="width: 100%;height: 300rpx;text-align: center;line-height: 300rpx;" v-if="newlisttabinfo.length==0">暂无数据</view> | |||||
<view v-else class="jindu" style="margin-top: 20rpx;"> | |||||
<scroll-view style="height: 300rpx;" scroll-y="true"> | <scroll-view style="height: 300rpx;" scroll-y="true"> | ||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index"> | <view class="jindu-box" v-for="(item,index) in newlisttabinfo" :key="index"> | ||||
<view class="jindu-boxche"> | <view class="jindu-boxche"> | ||||
@@ -175,7 +175,8 @@ | |||||
:is-scroll="true"> | :is-scroll="true"> | ||||
</u-tabs-swiper> | </u-tabs-swiper> | ||||
</view> | </view> | ||||
<view class="jindu"> | |||||
<view style="width: 100%;height: 300rpx;text-align: center;line-height: 300rpx;" v-if="newlisttabinfo1.length==0">暂无数据</view> | |||||
<view class="jindu" v-else> | |||||
<scroll-view style="height: 300rpx;" scroll-y="true"> | <scroll-view style="height: 300rpx;" scroll-y="true"> | ||||
<view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index"> | <view class="jindu-box" v-for="(item,index) in newlisttabinfo1" :key="index"> | ||||
<view class="jindu-boxche"> | <view class="jindu-boxche"> | ||||
@@ -308,19 +309,7 @@ | |||||
zxl: '80' | zxl: '80' | ||||
}, | }, | ||||
], | ], | ||||
newlisttabinfo1: [{ | |||||
name: '接待量', | |||||
zxl: '10' | |||||
}, | |||||
{ | |||||
name: '平均执行率', | |||||
zxl: '50' | |||||
}, | |||||
{ | |||||
name: '接待客户', | |||||
zxl: '80' | |||||
}, | |||||
], | |||||
newlisttabinfo1: [], | |||||
Theteamcomparedisshow: false, | Theteamcomparedisshow: false, | ||||
Groupcontrastisshow: false, | Groupcontrastisshow: false, | ||||
allechar: [], | allechar: [], | ||||
@@ -302,7 +302,15 @@ | |||||
} | } | ||||
}, | }, | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
console.log("11111111111111") | |||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
if(item.yon!=0){ | if(item.yon!=0){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon:'none', | icon:'none', | ||||
title: '暂无录音', | title: '暂无录音', | ||||
@@ -325,14 +333,16 @@ | |||||
uni.setStorageSync("entrance", 1); //写入缓存 | uni.setStorageSync("entrance", 1); //写入缓存 | ||||
uni.setStorageSync("searchobj", item); //写入缓存 | uni.setStorageSync("searchobj", item); //写入缓存 | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
if(res==null){ | if(res==null){ | ||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "暂无音频" | title: "暂无音频" | ||||
}) | }) | ||||
return | return | ||||
} | |||||
if(res[0].merge==0){ | |||||
}if(res[0].merge==0){ | |||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | ||||
@@ -312,7 +312,14 @@ | |||||
this.getMyCustom(); | this.getMyCustom(); | ||||
}, | }, | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
if(item.status==0){ | if(item.status==0){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "排队中" | title: "排队中" | ||||
@@ -334,12 +341,18 @@ | |||||
uni.setStorageSync("entrance", 1); //写入缓存 | uni.setStorageSync("entrance", 1); //写入缓存 | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
if(res==null){ | if(res==null){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "暂无音频" | title: "暂无音频" | ||||
}) | }) | ||||
return | return | ||||
}else{ | }else{ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
let newobj = res[0]; | let newobj = res[0]; | ||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -85,7 +85,16 @@ | |||||
}, | }, | ||||
methods:{ | methods:{ | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
console.log("11111111111111") | |||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
if(item.status==0){ | if(item.status==0){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "排队中" | title: "排队中" | ||||
@@ -107,12 +116,18 @@ | |||||
uni.setStorageSync("searchobj", item); //写入缓存 | uni.setStorageSync("searchobj", item); //写入缓存 | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
if(res==null){ | if(res==null){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "暂无音频" | title: "暂无音频" | ||||
}) | }) | ||||
return | return | ||||
}else{ | }else{ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
let newobj = res[0]; | let newobj = res[0]; | ||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -84,7 +84,14 @@ | |||||
this.init() | this.init() | ||||
}, | }, | ||||
tapThevisiting(item) { | tapThevisiting(item) { | ||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
if(item.status==0){ | if(item.status==0){ | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
uni.showToast({ | uni.showToast({ | ||||
icon: "none", | icon: "none", | ||||
title: "排队中" | title: "排队中" | ||||
@@ -105,6 +112,9 @@ | |||||
onebest:'' | onebest:'' | ||||
} | } | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
if(res){ | if(res){ | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -79,6 +79,10 @@ | |||||
methods: { | methods: { | ||||
//全部学习跳转 | //全部学习跳转 | ||||
quclick(item){ | quclick(item){ | ||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
const parames = { | const parames = { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 100, | pageSize: 100, | ||||
@@ -92,6 +96,9 @@ | |||||
id:'' | id:'' | ||||
} | } | ||||
this.$u.post("/corpus/findByPage", parames).then(res => { | this.$u.post("/corpus/findByPage", parames).then(res => { | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
var newobj = res[0]; | var newobj = res[0]; | ||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -40,6 +40,12 @@ | |||||
}, | }, | ||||
methods: { | methods: { | ||||
quclick(item) { | quclick(item) { | ||||
uni.showLoading({ | |||||
title: '加载中', | |||||
mask:true | |||||
}); | |||||
const parames = { | const parames = { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 100, | pageSize: 100, | ||||
@@ -56,6 +62,9 @@ | |||||
} | } | ||||
this.$u.post("/corpus/fendianFindByPage", parames).then(res => { | this.$u.post("/corpus/fendianFindByPage", parames).then(res => { | ||||
var newobj = res[0]; | var newobj = res[0]; | ||||
setTimeout(function () { | |||||
uni.hideLoading(); | |||||
}, 2000); | |||||
if(res[0].merge==0){ | if(res[0].merge==0){ | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/learning/Equinoctial/index2?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}` | url: `/pages/learning/Equinoctial/index2?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}` | ||||
@@ -212,6 +212,15 @@ | |||||
},30000) | },30000) | ||||
}, | }, | ||||
onShow: function() { | onShow: function() { | ||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
this.initRecord(); | this.initRecord(); | ||||
let pages = getCurrentPages(); | let pages = getCurrentPages(); | ||||
@@ -242,6 +242,15 @@ | |||||
},30000) | },30000) | ||||
}, | }, | ||||
onShow: function() { | onShow: function() { | ||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
this.initRecord(); | this.initRecord(); | ||||
if(this.stateisshow==2){ | if(this.stateisshow==2){ | ||||
@@ -268,6 +268,15 @@ | |||||
this.stateisshow=options.stateisshow; | this.stateisshow=options.stateisshow; | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); | this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); | ||||
this.Menulist.forEach(item=>{ | this.Menulist.forEach(item=>{ | ||||
if(item.name=='标记有效无效接待'){ | if(item.name=='标记有效无效接待'){ | ||||
@@ -516,6 +516,15 @@ | |||||
this.stateisshow=options.stateisshow; | this.stateisshow=options.stateisshow; | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
wx.enableAlertBeforeUnload({ | |||||
message: "是否确认退出详情页面?", | |||||
success: function (res) { | |||||
console.log("方法注册成功:", res); | |||||
}, | |||||
fail: function (errMsg) { | |||||
console.log("方法注册失败:", errMsg); | |||||
}, | |||||
}); | |||||
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); | this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); | ||||
this.Menulist.forEach(item=>{ | this.Menulist.forEach(item=>{ | ||||
if(item.name=='标记有效无效接待'){ | if(item.name=='标记有效无效接待'){ | ||||