diff --git a/.env.development b/.env.development
index 4b7a4662..a427c2f9 100644
--- a/.env.development
+++ b/.env.development
@@ -9,14 +9,10 @@ ENV = 'development'
# VITE_APP_BASE_API_Url = 'http://25.64.16.133:9786'
-# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
app入口
-<<<<<<< HEAD
- VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
-=======
# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
# VITE_APP_BASE_API_Url = 'http://25.16.122.65:7001'
# VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786'
->>>>>>> f9ef91e5fe7dbec56a29867b9d2d9f7e3792f0f4
diff --git a/src/api/common.js b/src/api/common.js
index 8c15dcc5..f8bf7f6b 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -62,6 +62,31 @@ export function downloadFile(id) {
});
});
}
+// 上传音频 翻译文本
+export const uploadVoiceFile = (file) => {
+ const url = '/trastudy/traStdyInfo/audioTranscriptions';
+ const base_url = get_base_url(url);
+ const token = getToken();
+ const header = {
+ "Content-Type": "multipart/form-data; charset=UTF-8",
+ };
+ if (token)
+ header['summary'] = token
+ return new Promise((resolve, reject) => {
+ uni.uploadFile({
+ url: `${base_url}${url}`,
+ header: header,
+ filePath: file,
+ name: 'voice',
+ success(result) {
+ resolve(result)
+ },
+ fail(error) {
+ reject(new Error('Upload failed'));
+ }
+ });
+ });
+};
// 获取音频 通用
export function downloadVoiceFile(url) {
const token = getToken();
diff --git a/src/api/study.js b/src/api/study.js
index 1967deba..119cbe23 100644
--- a/src/api/study.js
+++ b/src/api/study.js
@@ -26,4 +26,12 @@ export const studyParagraphOverApi = (data) => {
method: 'post',
data
});
+};
+// 上传语音翻译i文本 /traStdyInfo/audioTranscriptions
+export const audioTranscriptionsApi = (data) => {
+ return request({
+ url: base_url + '/traStdyInfo/audioTranscriptions',
+ 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
index 84e19347..41bd8e4e 100644
--- a/src/pages/course/components/chartFour.vue
+++ b/src/pages/course/components/chartFour.vue
@@ -1,14 +1,26 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 改进建议:
+
+
+ 57分
+
+
+
+ 词命中率
+ 98
+
+
\ No newline at end of file
diff --git a/src/pages/course/components/chartThree.vue b/src/pages/course/components/chartThree.vue
index f021985c..426a16e4 100644
--- a/src/pages/course/components/chartThree.vue
+++ b/src/pages/course/components/chartThree.vue
@@ -1,17 +1,29 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 改进建议:
+
+
+ 57分
+
+
+
+ 词命中率
+ 98
+
+
\ No newline at end of file
diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue
index deb88f81..2f52b8f5 100644
--- a/src/pages/course/components/talkingItem.vue
+++ b/src/pages/course/components/talkingItem.vue
@@ -17,6 +17,8 @@
+
+
@@ -35,11 +37,11 @@
src="@/static/images/course/play.png"
style="width: 100%;height: 100%;"
@click="playVoice"
- v-show="activeVoiceId !== dataInfo.id"
+ v-show="props.activeVoiceId !== dataInfo.id"
>
-
+
+
- {{ '李想' }}
+ {{ userInfo.userName }}
@@ -83,10 +86,11 @@
-
+
+
- {{ '李想' }}
+ {{ userInfo.userName }}
@@ -95,16 +99,18 @@
+