优化页面

This commit is contained in:
pengxiaolong
2025-06-18 22:04:59 +08:00
parent ec9dcb486f
commit b73ddb0370
52 changed files with 268 additions and 140 deletions

View File

@@ -25,7 +25,7 @@
</li>
</ul>
<view @touchmove.stop.prevent="disabledScroll"> </view>
<NewAddedPk class="createModule" ref="createModule"></NewAddedPk>
<NewAddedPk class="createModule" ref="createModule" @publishSuccess="publishSuccesss"></NewAddedPk>
</view>
</template>
@@ -57,6 +57,10 @@ function onConversationListUpdated(list) {
Unread.value = calculateUnreadCount(list);
}
const emit = defineEmits(['publishSucces']);
function publishSuccesss() {
emit('publishSucces');
}
// 计算未读消息总数
function calculateUnreadCount(arr) {
let total = 0;
@@ -290,6 +294,7 @@ function handlePush(item, index) {
}
}
.Unreadcss{
position: absolute;
background-color: #ff0000;
margin-top: -65rpx;
width: 30rpx;