雷达图绘制,继续联调

This commit is contained in:
yanghang
2025-06-26 19:22:43 +08:00
parent f1bedb2340
commit 2830d02d50
6 changed files with 590 additions and 102 deletions
+9 -10
View File
@@ -64,20 +64,19 @@ export function downloadFile(id) {
}
// 获取音频 通用
export function downloadVoiceFile(url) {
const token = getToken();
const header = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
};
if (token)
header['summary'] = token
let baseUrl = get_base_url();
let _params = new FormData()
const token = getToken();
const header = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
};
if (token)
header['summary'] = token
let baseUrl = get_base_url();
let _params = new FormData()
return new Promise((resolve, reject) => {
uni.downloadFile({
url: `${baseUrl}${url}`,
header,
success(result) {
console.log(result)
success(result) {
resolve(result)
},
fail(error) {
+16
View File
@@ -11,3 +11,19 @@ export const getCourseStudyInfoApi = (data) => {
});
};
// 获取课程学习 知识点 接口
export const queryTraStdyBatchWaitParagraphInfoApi = (data) => {
return request({
url: base_url + '/traStdyInfo/queryTraStdyBatchWaitParagraphInfo',
method: 'post',
data
});
};
// 学习段落完成
export const studyParagraphOverApi = (data) => {
return request({
url: base_url + '/traStdyInfo/studyParagraphOver',
method: 'post',
data
});
};