From ad7f7134df05095d2409132b81899705b7e4b34e Mon Sep 17 00:00:00 2001 From: yanghang Date: Thu, 10 Jul 2025 10:05:38 +0800 Subject: [PATCH 1/3] fix :bug --- src/components/course-item/course-item.vue | 31 +++++++++++++++++----- src/pages/course/index.vue | 6 ++--- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index 8a1afc60..b37f2105 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -8,7 +8,7 @@ {{itemInfo.crsName}} - {{item.tagName}} + {{item.tagName}} 发布:{{itemInfo.issuTm}} @@ -26,13 +26,17 @@ }, props:{ itemInfo:{ - type:Object, + type: Object, default:()=>({ - crsName: '银行核心业务全流程实践哒哒哒哒', - tagsList:[{tagName:'公斤业务'},{tagName:'初级'}], - publicTime:"2025-01-03", - learnedNum:'2222222' + crsName: '', + tagCataList:[], + publicTime:"", + learnedNum:'' }) + }, + activeTag:{ + default: '', + type: String } }, data() { @@ -40,6 +44,21 @@ }; }, + watch:{ + activeTag:{ + handler(){}, + deep: true, + immediate: true + } + }, + computed:{ + tagsShowList(){ + if(!this.activeTag) return this.itemInfo.tagCataList + let _arr = this.itemInfo.tagCataList.filter(t=> t.tagId === this.activeTag) + let _arr1 = this.itemInfo.tagCataList.filter(t=> t.tagId !== this.activeTag) + return _arr.concat(_arr1) + } + }, methods:{ clickItem(){ this.$emit('clickItem', this.itemInfo) diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index a8019f2c..6cc5f62b 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -48,7 +48,7 @@ :type="activeTag === ''?'primary':'info'" @click="chooseTag({value:''})" > - {{item.label}} - + {{itemT.label}} - + From 991ace03dc6f749c7ef68e927a43e7741e6939a2 Mon Sep 17 00:00:00 2001 From: yanghang Date: Thu, 10 Jul 2025 11:32:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/components/talkingItem.vue | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 3e0a8b89..56b63e2b 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -73,11 +73,12 @@ 重新答 - - + 重新学 + 继续 @@ -228,6 +229,7 @@ const audioCacheObj = computed(() => storageStore.audioObj) type: Object }, }) + const { type, dataInfo, activeVoiceId, isPlaying, isLast, lastQuestionInfo} = toRefs(props) const emit = defineEmits(['changePlay', 'nextQuestion', 'withdraw', 'finishQuestion']) // 声音播放初始化 @@ -547,6 +549,9 @@ const audioCacheObj = computed(() => storageStore.audioObj) margin-top: 16rpx; margin-right: 16rpx; position: relative; + &.replay-study-btn{ + float: right; + } &.restart{ background-color: #eaf2ff; color: #06f; @@ -581,18 +586,6 @@ const audioCacheObj = computed(() => storageStore.audioObj) margin-top: -12rpx; } } - .replay-study-btn{ - width: 162rpx; - height: 62rpx; - border-radius: 8rpx; - float: right; - margin-top: 16rpx; - .icon-iamge{ - width: 100%; - height: 100%; - margin:0; - } - } .next-btn{ float: right; padding: 0 60rpx 0 20rpx; From 1cd8914074c48a6ebbe5aee9fed0f4029e40ca65 Mon Sep 17 00:00:00 2001 From: yanghang Date: Thu, 10 Jul 2025 14:29:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/images/course/refresh-white.png | Bin 0 -> 1096 bytes src/store/socket.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/static/images/course/refresh-white.png diff --git a/src/static/images/course/refresh-white.png b/src/static/images/course/refresh-white.png new file mode 100644 index 0000000000000000000000000000000000000000..554a24c3bca738a92e6d4241d1b26204ef506470 GIT binary patch literal 1096 zcmeAS@N?(olHy`uVBq!ia0vp^G9b*s1|*Ak?@wW1V3f`bi71Ki^|4CM&(%vz$xlkv ztH>-n*TA>HIW;5GqpB!1xXLdi zxhgx^GDXSWj?1RP3TQxXYDuC(MQ%=Bu~mhw64+cTAR8pCucQE0Qj%?}6yY17;GAES zs$iyPpl6_D$E9FXl#*r@k>g7FXt#Bv$C=6)S^`fSBQuTAW;zSx}OhpQivaGchT@w8U0PNgrg1KGYVVbM@iw z1#;j%PR#>)vk2&)>CrDi;m24U#Q9HHlqRT6AD;x5A;hTX*U%Qc=!UoT;Mt zvvBJ!+w%|4e5{gr@8qvP1Pr8RZjM z&OJLW{f)DNBl@HfbMsG@8#>F@IEfxxp!;6@?c*D>*)CrB_iOSg{af!Z%;P^|HvL!2 zu|0oeeTS8{@Kx2Vt+&b;UxdW z>uk$)t$vgqHh#gW_u^SK_q*rwL*nP#v{@%8a{uxuYk%-|+mj5|@9~D^_0zijENH@}+#2KjKx=BJifotu?%AvN+)nJ}efT81G2nvp)pvGZ8{Z1qG#pwIqxWCsX7Uf- z&>dL|FK^(#bEQxtDsEDNMaF%o5)RO;$P;GE<~a`62WmOZ;F5H!}S?o(_0h{&*d#)33b?KtVm-hPY@rqfxOFvubh3x~;E3!GgQGfol zg&jD3;B6J}yy>L}3m8iR_Sm>9?p&6U?yz!=`w`QczC+a<;)j@ib*?aHZZ7S!`|bIn z$u!{EqQ;dIKWZEBJ`~v1@VYn2X6s>rwCAldVZBoN9eai28ikGB&Ro2`AwuFvp#txU zOV>^>6E&(3|5E(_vr(sFjl1)&itc3Tp2m}hlxLl*HWvFA<#1PJUTg8s8Ev&pRtYS2 r2hQ#>-exzW>BfHc^Bb!*Q$F!0B)_ZLQs|`*DgZoP{an^LB{Ts59(m0% literal 0 HcmV?d00001 diff --git a/src/store/socket.js b/src/store/socket.js index 1438823a..c0aeb905 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -14,7 +14,7 @@ export const useSocketStore = defineStore('socketStore',{ } }, actions:{ - creatSocket(){ + creatSocket(url = '/trastudy/trasoket/open?summary='){ if(this.SocketObj && this.SocketObj?.close && !this.SocketObj?.isClose) { return } @@ -22,7 +22,7 @@ export const useSocketStore = defineStore('socketStore',{ this.SocketObj.isClose = false } let _baseUrl = get_base_url().split('http').join('ws') - this.SocketObj = new SocketClass(_baseUrl + '/trastudy/trasoket/open?summary=' + getToken()); + this.SocketObj = new SocketClass(_baseUrl + url + getToken()); }, closeSocket() { if(!(this.SocketObj && this.SocketObj?.close)) return