diff --git a/.env.development b/.env.development
index 8d53a6b2..c6ea9765 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@ ENV = 'development'
# VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786'
# DEV
-VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
+VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# app入口
#VITE_APP_BASE_API_Url = 'http://25.16.122.65:7002'
@@ -15,7 +15,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# h5专用地址
-VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002'
+VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
#VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# sit
#VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
@@ -23,8 +23,8 @@ VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002'
#VITE_APP_BASE_H5_API_Url = 'http://25.18.122.116:7001'
# 任东
-VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
-VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
+# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
+# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.130:9604'
# 张建成
# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
diff --git a/src/api/common.js b/src/api/common.js
index df3c82fa..0668c917 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -12,10 +12,11 @@ export const uploadFile = (file, data) => {
const base_url = get_base_url(url);
const token = getToken();
const header = {};
+ console.log('file', file);
if (token)
header['summary'] = token
return new Promise((resolve, reject) => {
- uni.uploadFile({
+ uni.uploadFile({
url: `${base_url}${url}`,
header: header,
filePath: file,
@@ -34,6 +35,7 @@ export const uploadFile = (file, data) => {
}
},
fail(error) {
+ console.log('error', error);
reject(new Error('Upload failed'));
}
});
diff --git a/src/api/examination.js b/src/api/examination.js
index cb4f6734..0e683358 100644
--- a/src/api/examination.js
+++ b/src/api/examination.js
@@ -22,7 +22,7 @@ export const commitPaperExam = (data) => {
});
};
-// 试卷考试查分
+// 考试中心考试查分
export const queryPaperExamScore = (data) => {
return request({
url: base_url + '/traExamPapers/queryPaperExamScore',
diff --git a/src/api/login.js b/src/api/login.js
index 9b9644e4..203be84b 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -61,7 +61,6 @@ export const useAccountLoginApp = (data) => request({
...userInfo,
'mascotInfo': mascotInfo
})
- console.log(mascotInfo);
return {
mascotState:!mascotInfo.mascotId
}
@@ -112,21 +111,21 @@ export const queryCurrentUser = (data) => request({
// userId: "USER001"
// userName: "ADMIN" / todo name
// userStatus: "01"
- const userInfo = getUserInfo()
+ const userInfo = getUserInfo() ?? {}
setUserInfo({
...userInfo,
...res.body
})
-
- console.log('预加载头像');
+ // console.log('预加载头像');
const base_url = get_base_url()
// 预加载头像
// #ifdef APP-PLUS
// 更新用户信息中的头像路径
const updateUserAvatar = (imagePath) => {
-
+ const _userInfo = getUserInfo() ?? {}
setUserInfo({
- ...userInfo,
+ ..._userInfo,
+ ...res.body,
'imagePath': imagePath
})
}
@@ -215,7 +214,7 @@ export const queryCurrentUser = (data) => request({
const exists = await checkFileExists(localFilePath)
if (exists) {
- console.log('头像已存在,无需下载')
+ // console.log('头像已存在,无需下载')
updateUserAvatar(localFilePath)
} else {
const savedPath = await downloadAndSaveAvatar(fileUrl, localFilePath)
diff --git a/src/api/socket.js b/src/api/socket.js
index 03bb31f0..0869f8d8 100644
--- a/src/api/socket.js
+++ b/src/api/socket.js
@@ -42,10 +42,10 @@ export default class WebSocketUtil {
header: this.options.header || {},
protocols: this.options.protocols || [],
success: () => {
- console.log('WebSocket连接创建成功');
+ // console.log('WebSocket连接创建成功');
},
fail: (err) => {
- console.error('WebSocket连接创建失败', err);
+ // console.error('WebSocket连接创建失败', err);
this.triggerEvent('error', err);
this.tryReconnect(); // 连接失败时尝试重连
}
@@ -53,7 +53,7 @@ export default class WebSocketUtil {
// 监听WebSocket连接打开事件
this.socketTask.onOpen(() => {
- console.log('WebSocket连接已打开');
+ // console.log('WebSocket连接已打开');
this.reconnectCount = 0; // 重置重连计数
clearInterval(this.reconnectTimer); // 清除重连计时器
// this.startHeartbeat(); // 启动心跳机制
@@ -83,7 +83,7 @@ export default class WebSocketUtil {
// 监听WebSocket连接关闭事件
this.socketTask.onClose((res) => {
- console.log('WebSocket连接已关闭', res);
+ // console.log('WebSocket连接已关闭', res);
clearInterval(this.heartbeatTimer); // 清除心跳计时器
this.triggerEvent('close', res); // 触发连接关闭事件
this.tryReconnect(); // 尝试重连
@@ -146,7 +146,7 @@ export default class WebSocketUtil {
this.socketTask.send({
data: typeof message === 'string' ? message : JSON.stringify(message),
success: () => {
- console.log('WebSocket消息发送成功');
+ // console.log('WebSocket消息发送成功');
},
fail: (err) => {
console.error('WebSocket消息发送失败', err);
diff --git a/src/components/avatar-cropper/avatar-cropper.vue b/src/components/avatar-cropper/avatar-cropper.vue
index c66776b9..920a424a 100644
--- a/src/components/avatar-cropper/avatar-cropper.vue
+++ b/src/components/avatar-cropper/avatar-cropper.vue
@@ -1,1300 +1,1238 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
- touchStart(e, 'body')"
- @touchmove="touchMove"
- @touchend="touchEnd"
- @touchcancel="touchCancel"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- touchStart(e, 'left-top')"
- >
- touchStart(e, 'left-bottom')"
- >
- touchStart(e, 'right-top')"
- >
- touchStart(e, 'right-bottom')"
- >
-
-
-
-
- 取消
-
-
-
- 确定
-
-
-
+
+
+
+
+
+ touchStart(e, 'body')"
+ @touchmove="touchMove"
+ @touchend="touchEnd"
+ @touchcancel="touchCancel"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ touchStart(e, 'left-top')">
+ touchStart(e, 'left-bottom')">
+ touchStart(e, 'right-top')">
+ touchStart(e, 'right-bottom')">
+
+
+
+
+ 取消
+
+
+
+ 确定
+
+
+
diff --git a/src/components/examination/radio-subject-item.vue b/src/components/examination/radio-subject-item.vue
index 260cd231..edd889ed 100644
--- a/src/components/examination/radio-subject-item.vue
+++ b/src/components/examination/radio-subject-item.vue
@@ -36,12 +36,11 @@
}
});
const select_status = computed(() => {
- // 只要是正确答案 就是绿色
- if (props.analysisVo.correctFlag === 'R') return 'success';
// 是错误答案但是被用户错误选中的为红
const my_answer_array = props.my_answer;
if(my_answer_array.includes(props.analysisVo.itemId) && props.analysisVo.correctFlag === 'E') return 'error';
-
+ // 是正确答案 被用户错误选中的为绿色
+ if(my_answer_array.includes(props.analysisVo.itemId) && props.analysisVo.correctFlag === 'R') return 'success';
// 只有被我选中,不知是正确还是错误的为蓝
if(my_answer_array.includes(props.analysisVo.itemId)) return 'primary';
// 什么都不是者为灰色
diff --git a/src/components/examination/subject.vue b/src/components/examination/subject.vue
index eb2c27cf..4d23ef20 100644
--- a/src/components/examination/subject.vue
+++ b/src/components/examination/subject.vue
@@ -99,8 +99,7 @@
参考答案:
{{ subject_data.itemVos[0]?.itemAnswer ?? '' }}
-
- 题目解析:{{ subject_data?.analyContent }}
+ 试题解析:{{ subject_data?.analyContent }}
diff --git a/src/pages/courseDetail/components/comment.vue b/src/pages/courseDetail/components/comment.vue
index befb52ba..68523f84 100644
--- a/src/pages/courseDetail/components/comment.vue
+++ b/src/pages/courseDetail/components/comment.vue
@@ -89,7 +89,7 @@
这里什么都没有
-
+