联通内容看板信息

This commit is contained in:
WindowBird 2025-11-06 09:40:48 +08:00
parent d2a8851199
commit 465b68fbef

View File

@ -140,6 +140,41 @@ onMounted(() => {
}).catch(err => {
console.error('getInfo 接口请求失败:', err);
});
// dashboard/brief
const keys = [
'taskStatus',
'taskTodayCompleted',
'taskSoonExpire',
'taskOverdueUncompleted',
'projectStatus',
'projectDevSoonExpire',
'projectDevOverdue',
'customerTodayCreate',
'customerTodayFollowed',
'customerTodayWaitFollow',
'customerSoonFollow',
'customerMonthFollow',
'customerMonthFollowCount'
];
const params = ['joinUserId=23'];
keys.forEach((key) => {
params.push(`keys=${encodeURIComponent(key)}`);
});
const queryString = params.join('&');
uni.$uv.http.get(`dashboard/brief?${queryString}`, {
custom: {
auth: true // token
}
}).then(res => {
console.log('dashboard/brief 接口返回:', res);
}).catch(err => {
console.error('dashboard/brief 接口请求失败:', err);
});
});
//