客服:重构消息列表(引入 z-paging)

pull/56/head
puhui999 2024-07-17 16:45:03 +08:00
parent 4c6a8077aa
commit d221f277a1
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,10 @@
safe-area-inset-bottom bottom-bg-color="#f8f8f8" :back-to-top-style="backToTopStyle"
:auto-show-back-to-top="showNewMessageTip" @backToTopClick="onBackToTopClick"
@scrolltoupper="onScrollToUpper" @query="queryList">
<template #top>
<!-- 撑一下顶部导航 -->
<view style="height: 45px"></view>
</template>
<!-- style="transform: scaleY(-1)"必须写否则会导致列表倒置 -->
<!-- 注意不要直接在chat-item组件标签上设置style因为在微信小程序中是无效的请包一层view -->
<template #cell="{item,index}">

View File

@ -166,8 +166,7 @@
position: absolute;
top: 0;
left: 0;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
background-size: 750rpx 100%;
background-color: var(--ui-BG-Main);
z-index: 1;
}