diff --git a/.env.development b/.env.development index 18be6449..d84f7c64 100644 --- a/.env.development +++ b/.env.development @@ -24,7 +24,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # 线上 # VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' -VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' +VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' @@ -37,4 +37,4 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # 于嘉文 # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604' # 孙宇 -VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.139:9604' +# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.139:9604' diff --git a/src/api/practice.js b/src/api/practice.js index 685afc9d..81cc6c19 100644 --- a/src/api/practice.js +++ b/src/api/practice.js @@ -41,7 +41,7 @@ export const queryPracticeRecordByExrId = (data) => { }); }; -// 5.联系时候查询问答题结果 +// 5.练习时候查询问答题结果 export const queryCrsPracticeAnswerResult = (data) => { return request({ url: base_url + '/traCrsPractice/queryCrsPracticeAnswerResult', diff --git a/src/common/common.js b/src/common/common.js index 06a08a74..7fd3b698 100644 --- a/src/common/common.js +++ b/src/common/common.js @@ -172,6 +172,25 @@ export const getUserInfo = (key = '') => { const userInfo = uni.getStorageSync('userInfo') return '' === key ? userInfo : userInfo[key]; } +// 数字转换,把传入的秒转换为HH:mm:ss格式 +export const formatSeconds = (seconds) => { + // 处理非数字或负数情况 + if (typeof seconds !== 'number' || isNaN(seconds) || seconds < 0) { + return '00:00:00'; + } + + // 计算小时、分钟和剩余秒数 + const hours = Math.floor(seconds / 3600); + const minutes = Math.floor((seconds % 3600) / 60); + const remainingSeconds = Math.floor(seconds % 60); + + // 补零函数:将数字转为两位数字符串 + const padZero = (num) => num.toString().padStart(2, '0'); + + // 拼接成00:00:00格式 + return `${padZero(hours)}:${padZero(minutes)}:${padZero(remainingSeconds)}`; + }; + /** * 判断当前运行平台是否匹配指定标识 * @param {string} flag - 平台标识:'IOS' 表示苹果iOS平台,'AND' 表示安卓平台 diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue index d6b175d4..2dfc9466 100644 --- a/src/components/examination/question.vue +++ b/src/components/examination/question.vue @@ -1,31 +1,33 @@ @@ -102,12 +66,11 @@ /* 状态栏 var(--status-bar-height) 标题高度88rpx - 搜索栏高度80rpx tab切换栏高度88rpx 下方滑动区域上下边距各10共20rpx **/ - height: calc(100vh - var(--status-bar-height) - 88rpx - 80rpx - 88rpx - 20rpx); + height: calc(100vh - var(--status-bar-height) - 88rpx - 88rpx - 30rpx); } .swiper-item { diff --git a/src/pages/favorites/components/favorites-task.vue b/src/pages/favorites/components/favorites-task.vue deleted file mode 100644 index 488a1478..00000000 --- a/src/pages/favorites/components/favorites-task.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pages/favorites/components/favorites-course.vue b/src/pages/favorites/components/favoritesCourse.vue similarity index 58% rename from src/pages/favorites/components/favorites-course.vue rename to src/pages/favorites/components/favoritesCourse.vue index 447b4643..7601d40d 100644 --- a/src/pages/favorites/components/favorites-course.vue +++ b/src/pages/favorites/components/favoritesCourse.vue @@ -2,127 +2,129 @@ - + - - {{item.evalGrade ?? 0}}分 - + {{ item.evalGrade ?? 0 }}分 - {{item.crsName}} + {{ item.crsName }} - {{tagItem?.tagName}} + {{ tagItem?.tagName }} - - 发布:{{item.issuTm?.substr(0, 10)}} - - - 已学:{{item.accmStdyCnt}}次 - + 发布:{{ item.issuTm?.substr(0, 10) }} + 已学:{{ item.accmStdyCnt }}次 - + \ No newline at end of file + diff --git a/src/pages/favorites/components/favoritesTask.vue b/src/pages/favorites/components/favoritesTask.vue new file mode 100644 index 00000000..7327291f --- /dev/null +++ b/src/pages/favorites/components/favoritesTask.vue @@ -0,0 +1,282 @@ + + + + diff --git a/src/pages/favorites/index.vue b/src/pages/favorites/index.vue index 6db71eef..ddb99c04 100644 --- a/src/pages/favorites/index.vue +++ b/src/pages/favorites/index.vue @@ -9,14 +9,26 @@ - + - + @@ -30,30 +42,25 @@ \ No newline at end of file + diff --git a/src/pages/learningTasks/details.vue b/src/pages/learningTasks/details.vue index fac17fd2..f0a4ee26 100644 --- a/src/pages/learningTasks/details.vue +++ b/src/pages/learningTasks/details.vue @@ -79,21 +79,35 @@ {{ item.crsName }} -