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 // websocket
this.initWebSocket(loginInfo); this.initWebSocket(loginInfo);
}).catch((e) => { }).catch((e) => {
console.log(e);
this.exit(); this.exit();
}) })
}, },
initWebSocket(loginInfo) { initWebSocket(loginInfo) {
let userId = store.state.userStore.userInfo.id; 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="iconfont icon-voice-circle"></view>
<view class="send-text"> <view class="send-text">
<textarea class="send-text-area" v-model="sendText" auto-height :show-confirm-bar="false" <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" @keyboardheightchange="onKeyboardheightchange" confirm-type="send" @blur="onSendTextBlur"
confirm-hold :hold-keyboard="true"></textarea> confirm-hold :hold-keyboard="true"></textarea>
</view> </view>
@ -167,7 +167,6 @@
}, },
switchChatTabBox(chatTabBox, hideKeyBoard) { switchChatTabBox(chatTabBox, hideKeyBoard) {
console.log("switchChatTabBox")
this.chatTabBox = chatTabBox; this.chatTabBox = chatTabBox;
this.scrollToBottom(); this.scrollToBottom();
if (hideKeyBoard) { if (hideKeyBoard) {
@ -177,16 +176,7 @@
selectEmoji(emoText) { selectEmoji(emoText) {
this.sendText += `#${emoText};`; this.sendText += `#${emoText};`;
}, },
onSendTextFoucs(e) { onKeyboardheightchange(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);
if (e.detail.height > 0) { if (e.detail.height > 0) {
this.showKeyBoard = true; this.showKeyBoard = true;
this.switchChatTabBox('none', false) this.switchChatTabBox('none', false)
@ -333,9 +323,7 @@
} }
}, },
onUnload() { onUnload() {
console.log("onShow")
this.$store.commit("activeChat", -1); this.$store.commit("activeChat", -1);
} }
} }
</script> </script>

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

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

1
im-uniapp/pages/friend/friend-add.vue

@ -34,7 +34,6 @@
uni.navigateBack(); uni.navigateBack();
}, },
onSearch() { onSearch() {
console.log("onSearch")
this.$http({ this.$http({
url: "/user/findByName?name=" + this.searchText, url: "/user/findByName?name=" + this.searchText,
method: "GET" method: "GET"

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

@ -50,7 +50,6 @@
} }
}, },
onUnloadImageSuccess(file, res) { onUnloadImageSuccess(file, res) {
console.log(res)
this.group.headImage = res.data.originUrl; this.group.headImage = res.data.originUrl;
this.group.headImageThumb = res.data.thumbUrl; this.group.headImageThumb = res.data.thumbUrl;
}, },

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

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

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

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

4
im-uniapp/pages/mine/mine-password.vue

@ -38,7 +38,6 @@
errorMessage: '请输入新密码', errorMessage: '请输入新密码',
}, { }, {
validateFunction: function(rule, value, data, callback) { validateFunction: function(rule, value, data, callback) {
console.log(data)
if (data.confirmPassword != data.newPassword) { if (data.confirmPassword != data.newPassword) {
callback("两次输入的密码不一致"); callback("两次输入的密码不一致");
} }
@ -55,7 +54,6 @@
errorMessage: '请输入确认密码', errorMessage: '请输入确认密码',
}, { }, {
validateFunction: function(rule, value, data, callback) { validateFunction: function(rule, value, data, callback) {
console.log(data)
if (data.confirmPassword != data.newPassword) { if (data.confirmPassword != data.newPassword) {
callback("两次输入的密码不一致"); callback("两次输入的密码不一致");
} }
@ -70,9 +68,7 @@
}, },
methods: { methods: {
onSubmit() { onSubmit() {
console.log(this.formData)
this.$refs.form.validate().then(res => { this.$refs.form.validate().then(res => {
console.log('表单数据信息:', res);
this.$http({ this.$http({
url: "/modifyPwd", url: "/modifyPwd",
method: "PUT", method: "PUT",

Loading…
Cancel
Save