From b7d59880975d3aa75760e764c20c2c4217039c78 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: 星期五, 04 八月 2023 09:17:25 +0800
Subject: [PATCH] 叫应率修改

---
 pages/index/index.vue |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index e05bcab..f5ae232 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -47,26 +47,25 @@
 			uni.clearStorage();
 		},
 		onLoad() {
-			this.connect()
+			// this.connect()
 		},
 		methods: {
 			Login(){
 				this.isLogining = true;
 				login(this.form).then(res => {
-					console.log("res",res)
 					if (res.code === 100) {
 						this.isLogining = false;
 						 //登录成功后
 						 //设置别名
-						jpushModule.setAlias({
-							'alias': this.phone,
-							'sequence': 1
-						})
+						// jpushModule.setAlias({
+						// 	'alias': this.phone,
+						// 	'sequence': 1
+						// })
 						uni.setStorageSync("tk", res.data.tk);
 						uni.setStorageSync("uid",res.data.uid);
 						uni.setStorageSync('user', res.data);
+						uni.setStorageSync('unittype',res.data.unittype);
 						uni.setStorageSync('roleName', res.data.role.roleName);
-						console.log("登录--------",res.data.tk)
 						if(res.data.role.roleName == '工作人员'){
 							this.$store.commit('setRoleId', 'user_other');
 							uni.switchTab({
@@ -81,7 +80,7 @@
 						}else{
 							this.$store.commit('setRoleId', 'user_leader');
 							uni.switchTab({
-		                        url: '/pages/tabBar/examine/examine'
+		                        url: '/pages/tabBar/firstPage/firstPage'
 		                    });
 						}
 					}
@@ -93,7 +92,6 @@
 			},
 			connect() {
 				uni.$on('connectStatusChange', (connectStatus) => {
-					console.log('进入连接')
 					var connectStr = ''
 					if (connectStatus == true) {
 						connectStr = '已连接'

--
Gitblit v1.9.2