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 @@ + 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 @@ \ 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 @@ \ 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 @@