对接公告以及详情接口
This commit is contained in:
@@ -45,4 +45,6 @@ export const getNoticeList = (data) =>{
|
||||
return get('/api/resident/notice/list',data)
|
||||
}
|
||||
// 获取公告详情
|
||||
// export const getNoticeDetails =
|
||||
export const getNoticeDetails = (noticeId) =>{
|
||||
return get(`/api/resident/notice/${noticeId}`)
|
||||
}
|
||||
@@ -68,6 +68,7 @@ export default function request(url, data = {}, method = "GET") {
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.hideLoading(); // 关闭加载提示
|
||||
const errMsg = err.msg || '网络请求失败';
|
||||
uni.showToast({ title: errMsg, icon: "none", duration: 2000 });
|
||||
reject(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user