Browse Source

fix: 好友列表最后一条无法显示的bug

master
xsx 8 months ago
parent
commit
f0ce3a163a
  1. 3
      im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java
  2. 1
      im-uniapp/main.js
  3. 1
      im-uniapp/package.json
  4. 11
      im-uniapp/pages/friend/friend.vue

3
im-platform/src/main/java/com/bx/implatform/service/impl/UserServiceImpl.java

@ -151,9 +151,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
if(!vo.getNickName().equals(sensitiveFilterUtil.filter(vo.getNickName()))){
throw new GlobalException("昵称包含敏感字符");
}
if(!vo.getSignature().equals(sensitiveFilterUtil.filter(vo.getSignature()))){
throw new GlobalException("签名内容包含敏感字符");
}
if (!session.getUserId().equals(vo.getId())) {
throw new GlobalException("不允许修改其他用户的信息");
}

1
im-uniapp/main.js

@ -23,6 +23,7 @@ import switchBar from '@/components/bar/switch-bar'
import * as recorder from './common/recorder-h5';
import ImageResize from "quill-image-resize-mp";
import Quill from "quill";
import 'default-passive-events';
// 以下组件用于兼容部分手机聊天边框无法输入的问题
window.Quill = Quill;
window.ImageResize = { default: ImageResize };

1
im-uniapp/package.json

@ -4,6 +4,7 @@
"scripts": {}
},
"dependencies": {
"default-passive-events": "^4.0.0",
"pinyin-pro": "^3.23.1",
"quill": "^1.3.7",
"quill-image-resize-mp": "^3.0.1",

11
im-uniapp/pages/friend/friend.vue

@ -12,7 +12,7 @@
温馨提示您现在还没有任何好友快点击右上方'+'按钮添加好友吧~
</view>
<view class="friend-items" v-else>
<up-index-list :index-list="friendIdx">
<up-index-list :index-list="friendIdx" :sticky="false" :custom-nav-height="50">
<template v-for="(friends, i) in friendGroups">
<up-index-item>
<up-index-anchor :text="friendIdx[i] == '*' ? '在线' : friendIdx[i]"></up-index-anchor>
@ -118,15 +118,6 @@ export default {
color: $im-text-color !important;
}
:deep(.u-index-list__letter__item) {
width: 40rpx !important;
height: 40rpx !important;
}
:deep(.u-index-list__letter__item__index) {
font-size: $im-font-size-small !important;
}
.friend-tip {
position: absolute;
top: 400rpx;

Loading…
Cancel
Save