From 1ac8ebcd0a170be36457a313a017bd85b4222ca2 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Fri, 13 Oct 2023 00:19:26 +0800 Subject: [PATCH] =?UTF-8?q?uniapp=20=E6=B8=85=E7=90=86=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/App.vue | 2 -- im-uniapp/pages/chat/chat-box.vue | 16 ++-------------- im-uniapp/pages/common/user-info.vue | 1 - im-uniapp/pages/friend/friend-add.vue | 1 - im-uniapp/pages/group/group-edit.vue | 1 - im-uniapp/pages/group/group-invite.vue | 1 - im-uniapp/pages/login/login.vue | 1 - im-uniapp/pages/mine/mine-password.vue | 4 ---- 8 files changed, 2 insertions(+), 25 deletions(-) diff --git a/im-uniapp/App.vue b/im-uniapp/App.vue index bba8579..3c216ef 100644 --- a/im-uniapp/App.vue +++ b/im-uniapp/App.vue @@ -17,10 +17,8 @@ // 初始化websocket this.initWebSocket(loginInfo); }).catch((e) => { - console.log(e); this.exit(); }) - }, initWebSocket(loginInfo) { let userId = store.state.userStore.userInfo.id; diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index 7be53c4..4850439 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -17,7 +17,7 @@ @@ -167,7 +167,6 @@ }, switchChatTabBox(chatTabBox, hideKeyBoard) { - console.log("switchChatTabBox") this.chatTabBox = chatTabBox; this.scrollToBottom(); if (hideKeyBoard) { @@ -177,16 +176,7 @@ selectEmoji(emoText) { this.sendText += `#${emoText};`; }, - onSendTextFoucs(e) { - // 更新键盘高度 - // if (e && e.detail && e.detail.height) { - // this.switchChatTabBox('keyboard') - // this.keyboardHeight = this.rpxTopx(e.detail.height); - // console.log(this.keyboardHeight) - // } - }, - onKeyboardheightchange(e) { - console.log(e); + onKeyboardheightchange(e) {; if (e.detail.height > 0) { this.showKeyBoard = true; this.switchChatTabBox('none', false) @@ -333,9 +323,7 @@ } }, onUnload() { - console.log("onShow") this.$store.commit("activeChat", -1); - } } diff --git a/im-uniapp/pages/common/user-info.vue b/im-uniapp/pages/common/user-info.vue index 451feaa..8f04067 100644 --- a/im-uniapp/pages/common/user-info.vue +++ b/im-uniapp/pages/common/user-info.vue @@ -70,7 +70,6 @@ }) }, onDelFriend(){ - console.log(this.userInfo) uni.showModal({ title: "确认删除", content: `确认要删除与 '${this.userInfo.nickName}'的好友关系吗?`, diff --git a/im-uniapp/pages/friend/friend-add.vue b/im-uniapp/pages/friend/friend-add.vue index 46c406b..d8c27f8 100644 --- a/im-uniapp/pages/friend/friend-add.vue +++ b/im-uniapp/pages/friend/friend-add.vue @@ -34,7 +34,6 @@ uni.navigateBack(); }, onSearch() { - console.log("onSearch") this.$http({ url: "/user/findByName?name=" + this.searchText, method: "GET" diff --git a/im-uniapp/pages/group/group-edit.vue b/im-uniapp/pages/group/group-edit.vue index 91688c8..1b3e364 100644 --- a/im-uniapp/pages/group/group-edit.vue +++ b/im-uniapp/pages/group/group-edit.vue @@ -50,7 +50,6 @@ } }, onUnloadImageSuccess(file, res) { - console.log(res) this.group.headImage = res.data.originUrl; this.group.headImageThumb = res.data.thumbUrl; }, diff --git a/im-uniapp/pages/group/group-invite.vue b/im-uniapp/pages/group/group-invite.vue index 3096783..ce07666 100644 --- a/im-uniapp/pages/group/group-invite.vue +++ b/im-uniapp/pages/group/group-invite.vue @@ -69,7 +69,6 @@ }, onSwitchChecked(friend) { if (!friend.disabled) { - console.log(friend.disabled) friend.checked = !friend.checked; } }, diff --git a/im-uniapp/pages/login/login.vue b/im-uniapp/pages/login/login.vue index 0201f73..ad8c3cc 100644 --- a/im-uniapp/pages/login/login.vue +++ b/im-uniapp/pages/login/login.vue @@ -58,7 +58,6 @@ } }, onLoad() { - console.log("login onLoad") let loginInfo = uni.getStorageSync("loginInfo"); if (loginInfo) { // 跳转到聊天页面 diff --git a/im-uniapp/pages/mine/mine-password.vue b/im-uniapp/pages/mine/mine-password.vue index ca3b47e..c494396 100644 --- a/im-uniapp/pages/mine/mine-password.vue +++ b/im-uniapp/pages/mine/mine-password.vue @@ -38,7 +38,6 @@ errorMessage: '请输入新密码', }, { validateFunction: function(rule, value, data, callback) { - console.log(data) if (data.confirmPassword != data.newPassword) { callback("两次输入的密码不一致"); } @@ -55,7 +54,6 @@ errorMessage: '请输入确认密码', }, { validateFunction: function(rule, value, data, callback) { - console.log(data) if (data.confirmPassword != data.newPassword) { callback("两次输入的密码不一致"); } @@ -70,9 +68,7 @@ }, methods: { onSubmit() { - console.log(this.formData) this.$refs.form.validate().then(res => { - console.log('表单数据信息:', res); this.$http({ url: "/modifyPwd", method: "PUT",