完善投票编辑模式及收藏/历史列表兜底展示

This commit is contained in:
2026-08-06 00:12:23 +08:00
parent 315bc474d6
commit 7257f09df0
4 changed files with 48 additions and 25 deletions
@@ -33,6 +33,13 @@
<three-cover v-else-if="item.thumbnail && item.thumbnail.length === 3" :ctype="'historyList'"
:data="getNewItem(item)"></three-cover>
</view>
<view class="" v-else>
<view class="main">
<view>
<text class="title">该文章已被下架或删除</text>
</view>
</view>
</view>
</template>
<!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 -->
@@ -130,9 +137,6 @@
async function listLoad(data) {
if (data.length !== 0) {
const tempListData = data.map(item => {
if (typeof item.article_id.thumbnail === 'string') {
item.article_id[0].thumbnail = [item.article_id[0].thumbnail]
}
item.article_id[0].user_id = item.user_id[0]
item.article_id[0].last_view_time = new Date(item.last_view_time).getTime()
return item.article_id[0]
@@ -309,4 +313,20 @@
.pages .uni-list ::v-deep .uni-list--border:after {
background-color: #f5f5f5;
}
.main {
display: flex;
justify-content: space-between;
flex-direction: column;
flex: 1;
padding-left: 30rpx;
padding-right: 30rpx;
padding-top: 24rpx;
padding-bottom: 24rpx;
.title {
font-size: 30rpx;
color: #bbb;
}
}
</style>