diff --git a/src/api/common.js b/src/api/common.js index a651a80b..8c15dcc5 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -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) { diff --git a/src/api/study.js b/src/api/study.js index e31246db..1967deba 100644 --- a/src/api/study.js +++ b/src/api/study.js @@ -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 + }); +}; \ No newline at end of file diff --git a/src/pages/course/components/chartFour.vue b/src/pages/course/components/chartFour.vue new file mode 100644 index 00000000..84e19347 --- /dev/null +++ b/src/pages/course/components/chartFour.vue @@ -0,0 +1,150 @@ + + + + + \ No newline at end of file diff --git a/src/pages/course/components/chartThree.vue b/src/pages/course/components/chartThree.vue new file mode 100644 index 00000000..f021985c --- /dev/null +++ b/src/pages/course/components/chartThree.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 0767cd92..deb88f81 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -2,39 +2,52 @@ - + - 梁安娜 - AI课程教练 + {{ dataInfo?.userInfo?.teacherName }} + {{dataInfo?.userInfo?.teacherDesc}} - + + + {{ dataInfo.pgrphContent }} + + + + + + - - - - 阿列克山大是快乐的你艾德卡省的mask安东拉森扣篮大赛了快递那里是啊克里斯蒂娜老师的阿萨是看, - - + --> - + - - + + - 继续学 - - - 继续 + + 继续 @@ -45,7 +58,7 @@ - 玛卡巴卡 + {{ '李想' }} @@ -53,7 +66,7 @@ - 阿列克山大是快乐的你艾德卡省的mask安东拉森扣篮大赛了快递那里是啊克里斯蒂娜老师的阿萨是看, + {{ dataInfo.talkingContent }} @@ -67,18 +80,103 @@ - + + + + + + + {{ '李想' }} + + + + + {{ dataInfo.talkingContent }} + + +