优化页面
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user