diff --git a/.env.development b/.env.development index bdea487e..fb24b9b4 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' # VITE_APP_BASE_API_Url = 'http://aitscdn.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = 'http://192.168.108.129' diff --git a/src/api/analytics.js b/src/api/analytics.js new file mode 100644 index 00000000..a2c4fbaa --- /dev/null +++ b/src/api/analytics.js @@ -0,0 +1,45 @@ +import request from '@/api/request' + + +// 1.本月/本年/累计 学习信息查询接口 +export const queryStudyStatistics = (data) => { + return request({ + url: '/traapp/traStudyAnalysis/queryStudyStatistics', + method: 'post', + data + }); +}; +// 课程推荐查询接口 +export const queryRecmdCrsInfo = (data) => { + return request({ + url: '/traapp/traStudyAnalysis/queryRecmdCrsInfo', + method: 'post', + data + }); +}; +// 4.维度分析查询接口 +export const queryDimesionInfo = (data) => { + return request({ + url: '/traapp/traStudyAnalysis/queryDimesionInfo', + method: 'post', + data + }); +}; + +// 5.学习习惯查询接口 +export const queryHabitInfo = (data) => { + return request({ + url: '/traapp/traStudyAnalysis/queryHabitInfo', + method: 'post', + data + }); +}; + +// 6.学习建议查询接口 +export const querySuggestInfo = (data) => { + return request({ + url: '/traapp/traStudyAnalysis/querySuggestInfo', + method: 'post', + data + }); +}; diff --git a/src/api/common.js b/src/api/common.js index e98d8ae2..4656ddad 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -157,6 +157,7 @@ export function downloadVoiceFile(url) { uni.downloadFile({ url: `${baseUrl}${url}`, header, + timeout: 180000, success(result) { console.log(result) resolve(result) diff --git a/src/pages.json b/src/pages.json index 6e4e53d5..1348a422 100644 --- a/src/pages.json +++ b/src/pages.json @@ -483,6 +483,33 @@ "titleNView": false } } + }, + { + "path": "pages/sparring/talk", + "style": { + "navigationBarTitleText": "AI陪练通话", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/sparring/result", + "style": { + "navigationBarTitleText": "AI陪练报告", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/analytics/study", + "style": { + "navigationBarTitleText": "学习分析", + "app-plus": { + "titleNView": false + } + } } ], "tabBar": { diff --git a/src/pages/analytics/study.vue b/src/pages/analytics/study.vue new file mode 100644 index 00000000..8097a27f --- /dev/null +++ b/src/pages/analytics/study.vue @@ -0,0 +1,598 @@ + + + + + \ No newline at end of file diff --git a/src/pages/course/components/chartFive.vue b/src/pages/course/components/chartFive.vue index b43d42ed..d0c8a0c9 100644 --- a/src/pages/course/components/chartFive.vue +++ b/src/pages/course/components/chartFive.vue @@ -9,11 +9,15 @@ - + 改进建议: - + + + 维度分析: + + {{ score }} @@ -37,6 +41,10 @@ size:{ default: 262, type: [Number,String] + }, + fromType:{ + default: 'crs', + type: String } }, data(){ @@ -96,7 +104,7 @@ return `polygon(${_tx}% ${_ty}%, ${_rx}% ${_ry}%, ${_bx}% ${_by}%, ${_lx}% ${_ly}%, ${_lxl}% ${_lyl}%)` }, styleFiveResult(){ - let score = this.dataList + let score = this.dataValue if(score.length >= 5){ let base = 50 let _tx = 50 @@ -253,9 +261,17 @@ line-height: 46rpx; font-size: 32rpx; color: #fff; - .title-icon{ + position: relative; + .title-icon { width: 27rpx; height: 27rpx; + + &.icon-tra{ + position: relative; + top: 4rpx; + width: 32rpx; + height: 32rpx; + } } } .total-score{ diff --git a/src/pages/course/components/chartFour.vue b/src/pages/course/components/chartFour.vue index 3b2130db..976ca8c3 100644 --- a/src/pages/course/components/chartFour.vue +++ b/src/pages/course/components/chartFour.vue @@ -4,19 +4,23 @@ - + - - + + 改进建议: - - {{props.score}}分 - + + + 维度分析: - + + {{ props.score }}分 + + + {{ item.gradeDimensName || item.gradeDimens }} {{ item.anlyGrade }} @@ -24,81 +28,90 @@ \ No newline at end of file diff --git a/src/pages/course/components/chartSix.vue b/src/pages/course/components/chartSix.vue new file mode 100644 index 00000000..871c6854 --- /dev/null +++ b/src/pages/course/components/chartSix.vue @@ -0,0 +1,342 @@ + + + \ No newline at end of file diff --git a/src/pages/course/components/chartThree.vue b/src/pages/course/components/chartThree.vue index d96b33ac..dda5f596 100644 --- a/src/pages/course/components/chartThree.vue +++ b/src/pages/course/components/chartThree.vue @@ -7,19 +7,23 @@ - + - - + + 改进建议: - - {{props.score}}分 - + + + 维度分析: - + + {{ props.score }}分 + + + {{ item.gradeDimensName || item.gradeDimens }} {{ item.anlyGrade }} @@ -27,130 +31,144 @@ \ No newline at end of file diff --git a/src/pages/sparring/components/feedback.vue b/src/pages/sparring/components/feedback.vue new file mode 100644 index 00000000..04838dc1 --- /dev/null +++ b/src/pages/sparring/components/feedback.vue @@ -0,0 +1,225 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/components/question.vue b/src/pages/sparring/components/question.vue new file mode 100644 index 00000000..96121d50 --- /dev/null +++ b/src/pages/sparring/components/question.vue @@ -0,0 +1,266 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/components/talking-item.vue b/src/pages/sparring/components/talking-item.vue new file mode 100644 index 00000000..b3161974 --- /dev/null +++ b/src/pages/sparring/components/talking-item.vue @@ -0,0 +1,128 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/detail.vue b/src/pages/sparring/detail.vue index 54655306..f0dd10e4 100644 --- a/src/pages/sparring/detail.vue +++ b/src/pages/sparring/detail.vue @@ -70,7 +70,8 @@ - AI陪练 + 去练习 + 去考试 @@ -126,7 +127,6 @@ }) } const previewFile = (info) => { - if (getPhoneEnvBool('AND')) { common.navigateTo('/pages/index/preview?fileId=' + info.docId); } else { @@ -182,8 +182,8 @@ throw error; } }; - const toChooseRole = () => { - common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value) + const toChooseRole = (type) => { + common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value + '&type=' + type) } onLoad((params) => { traId.value = params.traId; @@ -352,16 +352,22 @@ width: 100vw; bottom: 0; left: 0; + display: flex; &-btn { - width: 100%; + flex: 1; height: 92rpx; line-height: 92rpx; - background-color: #06f; text-align: center; - color: #fff; + background: #ddeafc; + color: #06f; font-size: 29rpx; border-radius: 23rpx; + &:last-child{ + margin-left: 36rpx; + background: #06f; + color: #fff; + } } } diff --git a/src/pages/sparring/result.vue b/src/pages/sparring/result.vue new file mode 100644 index 00000000..a5e69ae3 --- /dev/null +++ b/src/pages/sparring/result.vue @@ -0,0 +1,388 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/talk.vue b/src/pages/sparring/talk.vue new file mode 100644 index 00000000..c163da20 --- /dev/null +++ b/src/pages/sparring/talk.vue @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index 35dd02a9..98897a66 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -1,5 +1,9 @@