限制群名称长度14

This commit is contained in:
2022-02-23 15:46:02 +08:00
parent 18f0ee457c
commit c840e9ee6b
2 changed files with 13 additions and 16 deletions

View File

@@ -5,7 +5,7 @@
<view v-for="(item, index) in groups" :key="index" class="friend-flex" @click="toGroup(item.targetId)">
<u-avatar size="38" shape="square" :src="contact(item.targetId).portraitUrl" />
<view class="info">
<view class="name">{{ item.name }}</view>
<view class="name">{{item.name}} <span class="total">共10人</span></view>
</view>
</view>
<view class="group-count"> {{groups.length}}个群聊 </view>
@@ -49,7 +49,7 @@
onNavigationBarButtonTap() {
this.createModal = true
},
onLoad() {
onShow() {
this.initData()
uni.$on('onGroupDismiss', this.initData)
},
@@ -137,6 +137,11 @@
.name {
font-size: $title-size + 1;
color: #454545 !important;
}
.total{
color: $text-gray-m;
font-size: $title-size-m - 5;
padding-left: 10rpx;
}
.address {