You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
477 B

5 days ago
const http = uni.$u.http;
// 查询动态
export function topListTrend() {
return http.get('/iot/news/topList')
}
// 查询轮播广告图
export function bannerListTrend() {
return http.get('/iot/news/bannerList')
}
// 查询分类下动态
export function listTrend(params) {
return http.get('/iot/news/list',{params})
}
// 查询动态详情
export function getTrend(newsId) {
console.log("newsId")
console.log(newsId)
return http.get('/iot/news/' + newsId);
}