Browse Source

uniapp 清理调试日志

master
xie.bx 3 years ago
parent
commit
1ac8ebcd0a
  1. 2
      im-uniapp/App.vue
  2. 16
      im-uniapp/pages/chat/chat-box.vue
  3. 1
      im-uniapp/pages/common/user-info.vue
  4. 1
      im-uniapp/pages/friend/friend-add.vue
  5. 1
      im-uniapp/pages/group/group-edit.vue
  6. 1
      im-uniapp/pages/group/group-invite.vue
  7. 1
      im-uniapp/pages/login/login.vue
  8. 4
      im-uniapp/pages/mine/mine-password.vue

2
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;

16
im-uniapp/pages/chat/chat-box.vue

@ -17,7 +17,7 @@
<view class="iconfont icon-voice-circle"></view>
<view class="send-text">
<textarea class="send-text-area" v-model="sendText" auto-height :show-confirm-bar="false"
:adjust-position="false" @focus="onSendTextFoucs" @confirm="sendTextMessage()"
:adjust-position="false" @confirm="sendTextMessage()"
@keyboardheightchange="onKeyboardheightchange" confirm-type="send" @blur="onSendTextBlur"
confirm-hold :hold-keyboard="true"></textarea>
</view>
@ -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);
}
}
</script>

1
im-uniapp/pages/common/user-info.vue

@ -70,7 +70,6 @@
})
},
onDelFriend(){
console.log(this.userInfo)
uni.showModal({
title: "确认删除",
content: `确认要删除与 '${this.userInfo.nickName}'的好友关系吗?`,

1
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"

1
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;
},

1
im-uniapp/pages/group/group-invite.vue

@ -69,7 +69,6 @@
},
onSwitchChecked(friend) {
if (!friend.disabled) {
console.log(friend.disabled)
friend.checked = !friend.checked;
}
},

1
im-uniapp/pages/login/login.vue

@ -58,7 +58,6 @@
}
},
onLoad() {
console.log("login onLoad")
let loginInfo = uni.getStorageSync("loginInfo");
if (loginInfo) {
//

4
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",

Loading…
Cancel
Save