This commit is contained in:
cansnow
2025-12-24 04:12:56 +08:00
parent f49f1f1ad1
commit f289f79813
26 changed files with 636 additions and 484 deletions
+4 -3
View File
@@ -32,7 +32,7 @@ export const businessModify = (params) =>
// 用户信息
export const businessInfoUpdate = (params) =>
uni.$u?.http.post(
"/user/info",
"/user/profile",
JSON.stringify({...params}),
{
header: {
@@ -80,9 +80,10 @@ export const businessSearchUser = (keyword,searchtype) =>
},
}
);
export const getArticle = (id,type) => uni.$u?.http.post("/article/detail",JSON.stringify({id,type:(type? type : 'id')}));
export const getSpage = (name) => uni.$u?.http.get(`/article/singpage?name=${name}`);
export const getArticle = (id) => uni.$u?.http.get(`/article/detail?id=${id}`);
export const getFriendCircle = (page=1,limit=10) =>{
return uni.$u?.http.get("/friendcircle/list",JSON.stringify({limit:limit,page:page}));
return uni.$u?.http.get(`/friendcircle/list?limit=${limit}&page=${page}`);
}
export const getFriendCircleNewcount = () =>{
return uni.$u?.http.get("/friendcircle/newcount");