feat: 对接部分接口
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
}
|
||||
</route>
|
||||
<template>
|
||||
<view class="hot-news-page p-15">
|
||||
<view class="hot-news-page min-h-screen p-15">
|
||||
<view class="bg-#fff rounded-10 px-15 py-15" v-if="newsList.length > 0">
|
||||
<view
|
||||
class="flex mb-15"
|
||||
@@ -17,7 +17,7 @@
|
||||
<image class="w-85 h-85 rounded-10" :src="item.image" mode="aspectFill" />
|
||||
<view class="ml-15 flex-1 flex flex-col justify-between">
|
||||
<view text-14>{{ item.name }}</view>
|
||||
<view class="text-12 text-#999">{{ item.source }}</view>
|
||||
<view class="text-12 text-#999">{{ formatTime(item.createtime) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getIntroductionAPI } from '@/service'
|
||||
import { formatTime } from '@/utils'
|
||||
|
||||
const { list: newsList } = useListPageRequest((params) =>
|
||||
getIntroductionAPI({ type: 1, ...params }),
|
||||
|
||||
Reference in New Issue
Block a user