From b1fc04036f964163c128586810fec8b5e9da7e2c Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 24 七月 2023 09:58:10 +0800 Subject: [PATCH] 样式修改 --- pages/index/index.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index e05bcab..8946186 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -47,21 +47,20 @@ 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); @@ -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