优化首页公告排序规则

This commit is contained in:
weipengfei 2023-07-25 11:09:52 +08:00
parent e539c5da61
commit 4831a30c45

View File

@ -42,7 +42,7 @@
<view class="backlog" :class="!ApproveList.length>0?'backlog_no_data':''">
<view class="head_title flex_a_c_j_sb">
<view class="title">公告列表</view>
<view class="flex_a_c" @click="navTo('')">更多 <view class="iconfont icon-you">
<view class="flex_a_c" @click="navTo('/subpkg/noticeList/noticeList')">更多 <view class="iconfont icon-you">
<uni-icons type="forward"></uni-icons>
</view>
</view>
@ -201,8 +201,9 @@
},
async getApproveList() {
const res = await noticeList({
sort: 'new',
keyword: '',
page_no: 1,
page_size: 2
})
this.ApproveList = res.data.lists
},