Browse Source

细节优化

master
xsx 8 months ago
parent
commit
6dc2b3a4d2
  1. 3
      im-uniapp/components/chat-item/chat-item.vue
  2. 2
      im-uniapp/components/long-press-menu/long-press-menu.vue
  3. 2
      im-uniapp/pages/chat/chat-box.vue

3
im-uniapp/components/chat-item/chat-item.vue

@ -79,6 +79,9 @@ export default {
return "";
},
isTextMessage() {
if (this.chat.messages.length == 0) {
return false;
}
let idx = this.chat.messages.length - 1;
let messageType = this.chat.messages[idx].type;
return messageType == this.$enums.MESSAGE_TYPE.TEXT;

2
im-uniapp/components/long-press-menu/long-press-menu.vue

@ -57,7 +57,7 @@ export default {
}
})
},
onTouchMove() {
onTouchMove(e) {
this.isTouchMove = true;
let touches = e.touches[0];
// 50px

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

@ -646,7 +646,9 @@ export default {
// #endif
// #ifdef H5
// h5scroll-top
if (uni.getSystemInfoSync().platform == 'ios') {
this.holdingScrollBar(this.scrollViewHeight);
}
// #endif
// 20
this.showMinIdx = this.showMinIdx > 20 ? this.showMinIdx - 20 : 0;

Loading…
Cancel
Save