diff --git a/.env.development b/.env.development
index e476c013..af51f93e 100644
--- a/.env.development
+++ b/.env.development
@@ -16,19 +16,14 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# h5专用地址
# 王洋洋
-<<<<<<< HEAD
-#VITE_APP_BASE_H5_API_Url = 'http://25.64.16.140:9604'
-VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
-#岳世凯
-#VITE_APP_BASE_H5_API_Url = 'http://25.64.16.141:9701'
-
-=======
# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.140:9604'
+# 岳世凯
+# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.141:9701'
# 任东
# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.130:9602'
# 线上
-VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
-# VITE_APP_BASE_H5_API_Url_TRAAPP = '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.140:9602'
VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
->>>>>>> 05085e8e3e537d6cc35d677431086afd747b4eee
diff --git a/src/App.vue b/src/App.vue
index 7a66718d..dce6f91d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,149 +1,149 @@
diff --git a/src/api/common.js b/src/api/common.js
index 845c484b..df3c82fa 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -72,7 +72,7 @@ export const commonUploadVoiceFile = (file, url, data = {}, fileKey='voice') =>
};
if (token)
header['summary'] = token
- console.log(`${base_url}${url}`)
+ // console.log(`${base_url}${url}`)
return new Promise((resolve, reject) => {
uni.uploadFile({
url: `${base_url}${url}`,
@@ -83,7 +83,7 @@ export const commonUploadVoiceFile = (file, url, data = {}, fileKey='voice') =>
success(result) {
try {
const res = JSON.parse(result.data);
- console.log(res)
+ // console.log(res)
if (res.rtnCode === '0000') {
resolve(result);
} else {
diff --git a/src/api/request.js b/src/api/request.js
index e8373f95..4a45d1d3 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -7,7 +7,6 @@ const ENV = import.meta.env
export const get_base_url = (url = '') => {
if (ENV.MODE === 'development') { // 开发环境
- // H5必须用非https,手机端必须用https
// #ifdef H5
if (url) {
let _str = (url.split('/')[0] || url.split('/')[1])?.toUpperCase()
diff --git a/src/components/examination/radio-subject-item.vue b/src/components/examination/radio-subject-item.vue
index 9d4149b9..66f5be7c 100644
--- a/src/components/examination/radio-subject-item.vue
+++ b/src/components/examination/radio-subject-item.vue
@@ -1,7 +1,7 @@
- {{props.analysisVo.itemContent}}
+ {{props.analysisVo.itemNo}}. {{props.analysisVo.itemContent}}
+
diff --git a/src/enum.js b/src/enum.js
index a883e2f6..117cf9cf 100644
--- a/src/enum.js
+++ b/src/enum.js
@@ -30,5 +30,5 @@ export const SUBJECT_TYPE = [{
{
value: "ES",
label: "问答题",
- },
+ }
]
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index 9c98f24b..5ca9f8a9 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -145,15 +145,6 @@
}
}
},
- {
- "path": "pages/charts/index",
- "style": {
- "navigationBarTitleText": "",
- "app-plus": {
- "titleNView": false
- }
- }
- },
{
"path": "pages/favorites/index",
"style": {
@@ -244,6 +235,15 @@
}
}
},
+ {
+ "path": "pages/examRanking/index",
+ "style": {
+ "navigationBarTitleText": "考试排行榜页",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ },
{
"path": "pages/course/index",
"style": {
diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue
index 737e9149..7b7b6e08 100644
--- a/src/pages/course/components/talkingItem.vue
+++ b/src/pages/course/components/talkingItem.vue
@@ -19,10 +19,11 @@
{{ showContent }}
-
+
{{ showContent }}
+
@@ -199,6 +200,8 @@ import { getUserInfo } from '@/common/common';
import { useStorageStore } from "@/store/storage.js"
import { onUnload } from '@dcloudio/uni-app'
+import RadioSubject from '@/components/examination/radio-subject.vue'
+
const storageStore = useStorageStore()
const audioCacheObj = computed(() => storageStore.audioObj)
const props = defineProps({
@@ -249,13 +252,15 @@ const audioCacheObj = computed(() => storageStore.audioObj)
})
const { type, dataInfo, activeVoiceId, isPlaying, isLast, lastQuestionInfo, teacherInfo} = toRefs(props)
- const emit = defineEmits(['changePlay', 'nextQuestion', 'withdraw', 'finishQuestion'])
+ const emit = defineEmits(['changePlay', 'nextQuestion', 'withdraw', 'finishQuestion', 'answerQuestion'])
// 声音播放初始化
const talkVoiceObj = ref(uni.createInnerAudioContext())
talkVoiceObj.value.playbackRate = Number(props.voiceRate)
const userInfo = computed(() => getUserInfo())
const itemVoice = ref('')
+ const mode = ref('study') // 考试 examination 练习practice 学习study
+
const showWithdraw = computed(()=>{
let _isMe = unref(lastQuestionInfo).qstLogId === unref(dataInfo).qstLogId
let _isQuestion = unref(lastQuestionInfo).isQuestion
@@ -316,6 +321,7 @@ const audioCacheObj = computed(() => storageStore.audioObj)
return str.replace(/\/n/g,"\n")
}
const voiceTime = ref('')
+ const itemInfo = ref({})
onMounted(()=>{
console.log()
initVoice()
@@ -504,6 +510,13 @@ const audioCacheObj = computed(() => storageStore.audioObj)
const finishQuestion = (data) => {
emit('finishQuestion',data)
}
+ // 答题 选择
+ const subject_click = (type,data) => {
+ if(type === 'answer'){
+ emit('answerQuestion', data)
+ }
+ }
+
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 92e0d127..b9791af6 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -89,7 +89,7 @@
AI问答
-
+
AI陪练
diff --git a/src/pages/learningTasks/components/list-item.vue b/src/pages/learningTasks/components/list-item.vue
index 111f74ef..d69875de 100644
--- a/src/pages/learningTasks/components/list-item.vue
+++ b/src/pages/learningTasks/components/list-item.vue
@@ -1,16 +1,16 @@
-
+
-
-
+
+
进行中
-
+
已完成
-
+
已超时
@@ -26,11 +26,12 @@
完成人数:{{item.taskFinishSums ?? 0}}/{{item.taskSums ?? 0}}
- 进度:2/4门课程
+ 进度:{{item.sumCrs ?? 0}}/{{item.sumCrs ?? 0}}门课程
+
@@ -47,11 +48,18 @@
onMounted,
nextTick
} from 'vue'
-
+
import {
queryAllTraTaskInfoByUserId,
} from '@/api/learningTasks.js';
- const getData = (from = '') => {
+ const props = defineProps({
+ state: {
+ type: String,
+ required: true,
+ },
+ });
+
+ const getData = (from = '', searchText='') => {
if (from == 'first') {
if (total.value !== -1) {
return
@@ -67,9 +75,10 @@
}
setTimeout(() => {
queryAllTraTaskInfoByUserId({
- state: '01',
+ state: props.state,
page: page.value,
- limit: limit
+ limit: limit,
+ taskName:searchText
}).then(res => {
total.value = res.total
data_list.push(...res.body)
@@ -83,17 +92,23 @@
})
}, 200)
}
- const getStatusClass = (index) => {
- const remainder = index % 3;
- if (remainder === 0) return 'in_progress';
- if (remainder === 1) return 'completed';
+ const getStatusClass = (isFinish) => {
+ // 00进行中、01已完成、02已超时
+ if (isFinish === '00') return 'in_progress';
+ if (isFinish === '01') return 'completed';
return 'expired';
};
const scrolltolower = (item) => {
getData()
+
};
+ const search = (value) => {
+ total.value = -1
+ console.log('value', value);
+ getData('first', value)
+ }
defineExpose({
- getData
+ getData, search
})
diff --git a/src/pages/learningTasks/details.vue b/src/pages/learningTasks/details.vue
index 02409e35..792a96f0 100644
--- a/src/pages/learningTasks/details.vue
+++ b/src/pages/learningTasks/details.vue
@@ -1,8 +1,272 @@
+
+
+
+
+
+
+ 任务详情
+
+
+ 未完成
+ 已完成
+
+
+
+
+
+
+ JBank银行服诉旦撒大银行服诉旦撒大银行服诉旦撒大银行服诉旦撒大银行服诉旦撒大银行服诉旦撒大
+
+
+
+ 起止时间:
+ 2025-05-13至2025-05-13
+
+
+
+ 完成人数:
+ 34/125
+
+
+ 进度:
+ 2/4门课程
+
+
+
+
+
+
-
-
\ No newline at end of file
+
diff --git a/src/pages/learningTasks/index.vue b/src/pages/learningTasks/index.vue
index 5165d05e..afe997d8 100644
--- a/src/pages/learningTasks/index.vue
+++ b/src/pages/learningTasks/index.vue
@@ -8,29 +8,32 @@
学习任务
-
-
+
-
+
-
+
-
+
-
+
@@ -39,44 +42,38 @@
\ No newline at end of file
+
diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue
index 357f3c86..92597e3d 100644
--- a/src/pages/me/index.vue
+++ b/src/pages/me/index.vue
@@ -365,10 +365,6 @@
diff --git a/src/pages/messageNotification/index.vue b/src/pages/messageNotification/index.vue
index e3a17740..be3eb074 100644
--- a/src/pages/messageNotification/index.vue
+++ b/src/pages/messageNotification/index.vue
@@ -1,256 +1,343 @@
-
+
消息
-
-
-
+
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.noticeTitle}}
-
-
- {{item.ctTime.substr(0, 16)}}
-
-
-
-
- {{item.noticeContent}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ item.noticeTitle }}
-
-
-
+
+ {{ item.ctTime?.substr(0, 16) }}
+
+
+
+
+ {{ item.noticeContent }}
+
+
+
+
+
-
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/pages/testingHall/components/content.vue b/src/pages/testingHall/components/content.vue
index b685dc5e..87288b26 100644
--- a/src/pages/testingHall/components/content.vue
+++ b/src/pages/testingHall/components/content.vue
@@ -51,12 +51,8 @@
const _freshing = ref(false)
const offset = ref(0)
const scrollRef = ref(null)
-
+
const props = defineProps({
- searchText: {
- type: String,
- default: ''
- },
index: {
type: Number,
default: 0
@@ -75,8 +71,8 @@
}, 1000)
}
- const getData = (from = '') => {
- console.log('getDatagetDatagetDatagetDatagetDatagetDatagetData');
+ const getData = (from = '', searchText='') => {
+
if (from == 'first') {
if (total.value !== -1) return;
status.value = 'loading'
@@ -91,7 +87,7 @@
setTimeout(() => {
let params = {
- papersName: props.searchText,
+ papersName: searchText,
page: page.value,
limit: limit,
}
@@ -119,9 +115,13 @@
const scrolltolower = () => {
getData()
};
-
+ const search = (value) => {
+ console.log('searchvalue', value);
+ total.value = -1
+ getData('first', value)
+ }
defineExpose({
- getData
+ getData, search
})
diff --git a/src/pages/testingHall/details.vue b/src/pages/testingHall/details.vue
index a9cbe84d..a5e51726 100644
--- a/src/pages/testingHall/details.vue
+++ b/src/pages/testingHall/details.vue
@@ -1,5 +1,6 @@
+
@@ -25,7 +26,7 @@
-
+
试卷信息
@@ -262,8 +263,6 @@
flex: 1;
.paper {
- // width: 100%;
- background-color: red;
height: 100%;
margin: 24rpx 30rpx 0 30rpx;
border-radius: 20rpx;
@@ -283,7 +282,8 @@
align-items: center;
.img {
- height: 32rpx;
+ width: 32rpx;
+ height: 28rpx;
}
.title {
@@ -359,24 +359,27 @@
display: flex;
flex-direction: column;
align-items: center;
- padding-top: var(--status-bar-height);
overflow: hidden;
+
+ }
+ .my-nav-bar{
+ width: 100%;
+ height: calc(var(--status-bar-height) - 40rpx);
+ background-color: #337FFF;
}
-
.body-title {
+
background-color: #337FFF;
width: 100%;
position: relative;
text-align: center;
- height: 140rpx;
- line-height: 140rpx;
+ height: 120rpx;
+ line-height: 100rpx;
font-family: PingFangSC;
font-weight: 500;
font-size: 38rpx;
color: #FFFFFF;
font-style: normal;
-
-
}
.detail_div {
@@ -485,7 +488,7 @@
position: absolute;
left: 26rpx;
height: 100%;
- top: 0;
+ top: -10rpx;
display: flex;
align-items: center;
diff --git a/src/pages/testingHall/index.vue b/src/pages/testingHall/index.vue
index 730312a3..9771a782 100644
--- a/src/pages/testingHall/index.vue
+++ b/src/pages/testingHall/index.vue
@@ -7,11 +7,8 @@
考试中心
-
-
-
+
+
-
-
-
@@ -72,7 +69,7 @@
} from '@/enum.js'
const contentRef = ref(null);
const tabAct = ref(0);
- const searchText = ref('');
+
const tabList = ref([{
name: '全 部'
}, {
@@ -96,16 +93,15 @@
const swiperChange = (item) => {
tabAct.value = item.detail.current;
};
- const search = () => {
- if (searchText.value === '') return;
- console.log('搜索', searchText.value);
+ const search = (value) => {
+ console.log('value', value);
+ contentRefs.value[tabAct.value]?.search(value);
}
const gotoDetails = (item) => {
setPageCache('testing_hall_details', item)
common.navigateTo('/pages/testingHall/details');
}
onMounted(() => {
-
triggered.value = true
watch(tabAct, (newValue, oldValue) => {
typeof contentRefs.value[newValue]?.getData === 'function' && contentRefs.value[newValue]
diff --git a/src/pagesA.json b/src/pagesA.json
index c51e8aeb..3b7ce420 100644
--- a/src/pagesA.json
+++ b/src/pagesA.json
@@ -171,5 +171,14 @@
}
}
},
+ {
+ "path": "pages/examRanking/index",
+ "style": {
+ "navigationBarTitleText": "考试排行榜页",
+ "app-plus": {
+ "titleNView": false
+ }
+ }
+ }
]
}
\ No newline at end of file
diff --git a/src/static/images/learningTasks/learningTasksBg.png b/src/static/images/learningTasks/learningTasksBg.png
new file mode 100644
index 00000000..0b477942
Binary files /dev/null and b/src/static/images/learningTasks/learningTasksBg.png differ
diff --git a/src/static/images/messageNotification/popup_bg.png b/src/static/images/messageNotification/popup_bg.png
new file mode 100644
index 00000000..7e3bfb81
Binary files /dev/null and b/src/static/images/messageNotification/popup_bg.png differ
diff --git a/src/static/images/messageNotification/type_01.png b/src/static/images/messageNotification/type_01.png
index 56d48606..88a3548a 100644
Binary files a/src/static/images/messageNotification/type_01.png and b/src/static/images/messageNotification/type_01.png differ
diff --git a/src/static/images/messageNotification/type_02.png b/src/static/images/messageNotification/type_02.png
index e3c460dd..57e04c49 100644
Binary files a/src/static/images/messageNotification/type_02.png and b/src/static/images/messageNotification/type_02.png differ
diff --git a/src/static/images/messageNotification/type_3.png b/src/static/images/messageNotification/type_3.png
deleted file mode 100644
index 93205675..00000000
Binary files a/src/static/images/messageNotification/type_3.png and /dev/null differ
diff --git a/src/static/images/messageNotification/type_4.png b/src/static/images/messageNotification/type_4.png
deleted file mode 100644
index ae7727df..00000000
Binary files a/src/static/images/messageNotification/type_4.png and /dev/null differ
diff --git a/src/static/images/messageNotification/任务时间备份@2x.png b/src/static/images/messageNotification/任务时间备份@2x.png
new file mode 100644
index 00000000..bc55191d
Binary files /dev/null and b/src/static/images/messageNotification/任务时间备份@2x.png differ
diff --git a/src/static/images/messageNotification/新任务备份@2x.png b/src/static/images/messageNotification/新任务备份@2x.png
new file mode 100644
index 00000000..19c00941
Binary files /dev/null and b/src/static/images/messageNotification/新任务备份@2x.png differ