From c5a62e7647c38176097c671f3f6299e93d9dd414 Mon Sep 17 00:00:00 2001
From: jyt <1592211625@qq.com>
Date: Mon, 21 Feb 2022 11:52:08 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=AE=BE=E7=BD=AE=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.vue | 32 ++++++++++++++++++++++++++------
utils/domain.js | 4 ++--
2 files changed, 28 insertions(+), 8 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4ab285d..813d624 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -70,15 +70,15 @@
待处理
-
+
{{operation.receptionCount || 0}}
接待即将结束
-
+
{{operation.accountCount || 0}}
未标顾问
-
+
{{operation.forbiddenCount || 0}}
违禁提醒
@@ -103,10 +103,10 @@
{{equipmentobj.activeNum || 0}}
活跃
-
+
@@ -401,6 +401,9 @@
};
},
components: {},
+ onLoad() {
+ this.sendLog()
+ },
onShow() {
this.getMenu()
@@ -436,9 +439,26 @@
}
this.initworkThisWeek()
this.initrealTimeStatistics()
- this.sendLog()
+ // this.sendLog()
},
methods: {
+ indexStatus(i){
+ if (this.permissions.commonly5 == true) {
+ if(i==0){
+ uni.switchTab({
+ url:"/pages/index/customer"
+ })
+ }else if(i==1){
+ uni.navigateTo({
+ url: '/pages/center/records/index?refresh=refresh&markAdvisor=0'
+ });
+ }else if(i==3){
+ uni.navigateTo({
+ url: '/pages/center/prohibited/index?refresh=refresh'
+ });
+ }
+ }
+ },
sendLog(){
uni.request({
url: config.service.addLog,
diff --git a/utils/domain.js b/utils/domain.js
index e78e51b..2f8fb4a 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -1,8 +1,8 @@
// const base = 'http://39.97.167.65' ;// 测试站
// const base = 'http://8kdmng.natappfree.cc' ;// 佳豪
// const base = 'http://192.168.31.134:9999' ;// 佳豪
-const base = 'http://192.168.31.167:9999' // 长龙
-// const base = 'https://zanyong.hfju.com';// 正式
+// const base = 'http://192.168.31.167:9999' // 长龙
+const base = 'https://zanyong.hfju.com';// 正式
// http.js使用
const baseUrl = `${base}/autoSR/api`;