feat: 对接部分接口
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
</view>
|
||||
<view
|
||||
class="flex mt-15"
|
||||
v-for="item in newsList"
|
||||
v-for="item in hotNewsList"
|
||||
:key="item.id"
|
||||
@click="handleNewsDetail(item.id)"
|
||||
>
|
||||
@@ -74,9 +74,7 @@
|
||||
<text class="whitespace-nowrap text-14 font-bold text-gradient">
|
||||
公告{{ ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'][index] }}:
|
||||
</text>
|
||||
<text class="text-14 text-#333 flex-1">
|
||||
{{ item.content }}
|
||||
</text>
|
||||
<text class="text-14 text-#333 flex-1" v-html="item.content"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
@@ -99,7 +97,8 @@ defineOptions({
|
||||
name: 'Home',
|
||||
})
|
||||
|
||||
const { list: newsList } = useListPageRequest((params) =>
|
||||
// 热门咨询
|
||||
const { list: hotNewsList } = useListPageRequest((params) =>
|
||||
getIntroductionAPI({ type: 1, ...params }),
|
||||
)
|
||||
|
||||
@@ -149,6 +148,10 @@ const handleHotNews = () => {
|
||||
const { list: announcementList } = useListPageRequest((params) =>
|
||||
getIntroductionAPI({ type: 2, ...params }),
|
||||
)
|
||||
// 最新时讯
|
||||
const { list: newsList } = useListPageRequest((params) =>
|
||||
getIntroductionAPI({ type: 3, ...params }),
|
||||
)
|
||||
watch(
|
||||
() => announcementList.value.length,
|
||||
(newVal) => {
|
||||
|
||||
Reference in New Issue
Block a user