This commit is contained in:
2025-06-23 19:07:23 +08:00
parent 1ae5c75f5e
commit b98de4746d
5 changed files with 95 additions and 17 deletions

View File

@@ -18,6 +18,7 @@ const tabs = [
const po = reactive({
type: 1,
is_read: 99,
keyword: null,
});
const vo = reactive({
@@ -61,7 +62,11 @@ const changeTab = ({index}) => {
</view>
<view class="!px-[20rpx] !py-[16rpx] box-border !h-[80rpx] !flex items-center">
<checkbox>只看未读</checkbox>
<checkbox @click="() => {
po.is_read = po.is_read === 0 ? 99 : 0;
initFetchData();
}">只看未读
</checkbox>
</view>
<scroll-view
@@ -74,6 +79,7 @@ const changeTab = ({index}) => {
scroll-y>
<view class="!flex flex-col !px-[20rpx]">
<MessageCard
@success="initFetchData"
:context-row="po.type === 0 ? 'ellipsis-1': 'ellipsis-2'"
:type="po.type"
:data="item"