From 4469171b568b5c69ad07097bae1c35364926174f Mon Sep 17 00:00:00 2001
From: wangxiaohua <1214073490@qq.com>
Date: Mon, 29 Nov 2021 18:19:16 +0800
Subject: [PATCH] init
---
.../Customerportrait/Receivedetailabout.vue | 9 ++++++++
pages/center/Piabodata/index.vue | 21 +++++--------------
pages/center/consumer/consumerDetail.vue | 14 +++++++++++--
pages/center/records/index.vue | 13 ++++++++++++
pages/center/records/recordSearch.vue | 15 +++++++++++++
pages/index/customer.vue | 10 +++++++++
pages/index/learning.vue | 7 +++++++
pages/learning/Equinoctiallearning.vue | 9 ++++++++
pages/learning/Thefulltext/index.vue | 9 ++++++++
pages/learning/Thefulltext/index2.vue | 9 ++++++++
pages/mine/details.vue | 9 ++++++++
pages/mine/details2.vue | 9 ++++++++
12 files changed, 116 insertions(+), 18 deletions(-)
diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
index ab28549..fec7b39 100644
--- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
+++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
@@ -467,6 +467,15 @@
};
},
onShow() {
+ wx.enableAlertBeforeUnload({
+ message: "是否确认退出详情页面?",
+ success: function (res) {
+ console.log("方法注册成功:", res);
+ },
+ fail: function (errMsg) {
+ console.log("方法注册失败:", errMsg);
+ },
+ });
this.intention=false;
this.kehuyixiangcenterindex=0;
this.buildingID = uni.getStorageSync('buildingID').id;
diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue
index 5d6e3d7..9242147 100644
--- a/pages/center/Piabodata/index.vue
+++ b/pages/center/Piabodata/index.vue
@@ -147,8 +147,8 @@
合计:50
均值:25
-->
-
-
+ 暂无数据
+
@@ -175,7 +175,8 @@
:is-scroll="true">
-
+ 暂无数据
+
@@ -308,19 +309,7 @@
zxl: '80'
},
],
- newlisttabinfo1: [{
- name: '接待量',
- zxl: '10'
- },
- {
- name: '平均执行率',
- zxl: '50'
- },
- {
- name: '接待客户',
- zxl: '80'
- },
- ],
+ newlisttabinfo1: [],
Theteamcomparedisshow: false,
Groupcontrastisshow: false,
allechar: [],
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index c9d44db..e08f992 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -302,7 +302,15 @@
}
},
tapThevisiting(item) {
+ console.log("11111111111111")
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
if(item.yon!=0){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon:'none',
title: '暂无录音',
@@ -325,14 +333,16 @@
uni.setStorageSync("entrance", 1); //写入缓存
uni.setStorageSync("searchobj", item); //写入缓存
this.$u.post("/corpus/findByPage", parames).then(res => {
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
if(res==null){
uni.showToast({
icon: "none",
title: "暂无音频"
})
return
- }
- if(res[0].merge==0){
+ }if(res[0].merge==0){
let newobj = res[0];
uni.navigateTo({
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 11ecef2..890757b 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -312,7 +312,14 @@
this.getMyCustom();
},
tapThevisiting(item) {
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
if(item.status==0){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon: "none",
title: "排队中"
@@ -334,12 +341,18 @@
uni.setStorageSync("entrance", 1); //写入缓存
this.$u.post("/corpus/findByPage", parames).then(res => {
if(res==null){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon: "none",
title: "暂无音频"
})
return
}else{
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
let newobj = res[0];
if(res[0].merge==0){
uni.navigateTo({
diff --git a/pages/center/records/recordSearch.vue b/pages/center/records/recordSearch.vue
index 68a0b14..219e1a1 100644
--- a/pages/center/records/recordSearch.vue
+++ b/pages/center/records/recordSearch.vue
@@ -85,7 +85,16 @@
},
methods:{
tapThevisiting(item) {
+ console.log("11111111111111")
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
+
if(item.status==0){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon: "none",
title: "排队中"
@@ -107,12 +116,18 @@
uni.setStorageSync("searchobj", item); //写入缓存
this.$u.post("/corpus/findByPage", parames).then(res => {
if(res==null){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon: "none",
title: "暂无音频"
})
return
}else{
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
let newobj = res[0];
if(res[0].merge==0){
uni.navigateTo({
diff --git a/pages/index/customer.vue b/pages/index/customer.vue
index 1b5b858..2a1cbf3 100644
--- a/pages/index/customer.vue
+++ b/pages/index/customer.vue
@@ -84,7 +84,14 @@
this.init()
},
tapThevisiting(item) {
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
if(item.status==0){
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
uni.showToast({
icon: "none",
title: "排队中"
@@ -105,6 +112,9 @@
onebest:''
}
this.$u.post("/corpus/findByPage", parames).then(res => {
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
if(res){
let newobj = res[0];
uni.navigateTo({
diff --git a/pages/index/learning.vue b/pages/index/learning.vue
index bd70c05..02989d5 100644
--- a/pages/index/learning.vue
+++ b/pages/index/learning.vue
@@ -79,6 +79,10 @@
methods: {
//全部学习跳转
quclick(item){
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
const parames = {
pageNum: 1,
pageSize: 100,
@@ -92,6 +96,9 @@
id:''
}
this.$u.post("/corpus/findByPage", parames).then(res => {
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
var newobj = res[0];
if(res[0].merge==0){
uni.navigateTo({
diff --git a/pages/learning/Equinoctiallearning.vue b/pages/learning/Equinoctiallearning.vue
index 75ebd23..04ccbc2 100644
--- a/pages/learning/Equinoctiallearning.vue
+++ b/pages/learning/Equinoctiallearning.vue
@@ -40,6 +40,12 @@
},
methods: {
quclick(item) {
+ uni.showLoading({
+ title: '加载中',
+ mask:true
+ });
+
+
const parames = {
pageNum: 1,
pageSize: 100,
@@ -56,6 +62,9 @@
}
this.$u.post("/corpus/fendianFindByPage", parames).then(res => {
var newobj = res[0];
+ setTimeout(function () {
+ uni.hideLoading();
+ }, 2000);
if(res[0].merge==0){
uni.navigateTo({
url: `/pages/learning/Equinoctial/index2?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}`
diff --git a/pages/learning/Thefulltext/index.vue b/pages/learning/Thefulltext/index.vue
index 66d5d87..b110568 100644
--- a/pages/learning/Thefulltext/index.vue
+++ b/pages/learning/Thefulltext/index.vue
@@ -212,6 +212,15 @@
},30000)
},
onShow: function() {
+ wx.enableAlertBeforeUnload({
+ message: "是否确认退出详情页面?",
+ success: function (res) {
+ console.log("方法注册成功:", res);
+ },
+ fail: function (errMsg) {
+ console.log("方法注册失败:", errMsg);
+ },
+ });
this.initRecord();
let pages = getCurrentPages();
diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue
index eae2151..de416a3 100644
--- a/pages/learning/Thefulltext/index2.vue
+++ b/pages/learning/Thefulltext/index2.vue
@@ -242,6 +242,15 @@
},30000)
},
onShow: function() {
+ wx.enableAlertBeforeUnload({
+ message: "是否确认退出详情页面?",
+ success: function (res) {
+ console.log("方法注册成功:", res);
+ },
+ fail: function (errMsg) {
+ console.log("方法注册失败:", errMsg);
+ },
+ });
this.initRecord();
if(this.stateisshow==2){
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index 95f94e7..0088085 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -268,6 +268,15 @@
this.stateisshow=options.stateisshow;
},
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.forEach(item=>{
if(item.name=='标记有效无效接待'){
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 99a4a8d..932962d 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -516,6 +516,15 @@
this.stateisshow=options.stateisshow;
},
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.forEach(item=>{
if(item.name=='标记有效无效接待'){