Browse Source

Merge branch '2025北京诚祥App' of https://gogs.mtavip.com/wangguoyu/uniProject into 2025北京诚祥App

tanxue 4 days ago
parent
commit
cf9a654e5b

+ 2 - 2
pages/admin/Kaoshi/exam.vue

@@ -46,7 +46,7 @@
 		<template v-if="activeSt">
 		<template v-if="activeSt">
 			<button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-prev" @click="handlePrev" v-if="!isFistStId">上一题</button>
 			<button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-prev" @click="handlePrev" v-if="!isFistStId">上一题</button>
 			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleNext" v-if="!isLastStId">下一题</button>
 			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleNext" v-if="!isLastStId">下一题</button>
-			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleBack" v-if="isLastStId">交卷</button>
+			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleBack" v-if="isLastStId">退出</button>
 		</template>
 		</template>
 
 
 		<!-- 答题卡 -->
 		<!-- 答题卡 -->
@@ -247,7 +247,7 @@
 	}
 	}
 
 
 	function handlePopupBack() {
 	function handlePopupBack() {
-		popupRef.value.close()
+		popupRef.value && popupRef.value.close()
 	}
 	}
 
 
 	function handlePrev() {
 	function handlePrev() {

+ 3 - 1
pages/admin/Kecheng/study.vue

@@ -116,6 +116,7 @@
 				return data;
 				return data;
 			},
 			},
 			handlePlay(data) {
 			handlePlay(data) {
+				console.log('data',data,this.curPlayData)
 				if (!this.kechengFlag) {
 				if (!this.kechengFlag) {
 					uni.showToast({
 					uni.showToast({
 						icon: 'none',
 						icon: 'none',
@@ -124,10 +125,11 @@
 					return;
 					return;
 				}
 				}
 				this.showVideo = true;
 				this.showVideo = true;
-				if (this.curPlayData && this.curPlayData.videoId == data.videoId) {
+				if (this.curPlayData && this.curPlayData.url == data.url) {
 					return;
 					return;
 				}
 				}
 				this.curPlayData = data;
 				this.curPlayData = data;
+
 				kechengApi.getVideoAuth({
 				kechengApi.getVideoAuth({
 					videoId: data.url
 					videoId: data.url
 				}).then(res => {
 				}).then(res => {

+ 3 - 3
pages/admin/Lianxi/lianxi.vue

@@ -47,7 +47,7 @@
 		<template v-if="activeSt">
 		<template v-if="activeSt">
 			<button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-prev" @click="handlePrev" v-if="!isFistStId">上一题</button>
 			<button type="default" size="mini" hover-class="none" class="phone-green-btn ks-btn-prev" @click="handlePrev" v-if="!isFistStId">上一题</button>
 			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleNext" v-if="!isLastStId">下一题</button>
 			<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleNext" v-if="!isLastStId">下一题</button>
-					<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleBack" v-if="isLastStId">交卷</button>
+					<button type="default" size="mini" hover-class="none"class="phone-green-btn ks-btn-next" @click="handleBack" v-if="isLastStId">退出</button>
 		</template>
 		</template>
 
 
 		<!-- 答题卡 -->
 		<!-- 答题卡 -->
@@ -149,7 +149,7 @@
 	
 	
 	const dlName = computed(() => {
 	const dlName = computed(() => {
 		if (data.StListForSearch && activeSt.value) {
 		if (data.StListForSearch && activeSt.value) {
-			return data.StListForSearch[activeSt.value.onlyNum].paragraphName
+			return data.StListForSearch[activeSt.value.onlyNum-1].paragraphName
 		} else {
 		} else {
 			return ''
 			return ''
 		}
 		}
@@ -248,7 +248,7 @@
 	}
 	}
 
 
 	function handlePopupBack() {
 	function handlePopupBack() {
-		popupRef.value.close()
+		popupRef.value && popupRef.value.close()
 	}
 	}
 
 
 	function handlePrev() {
 	function handlePrev() {

+ 1 - 1
pages/client/Kaoshi/exam.vue

@@ -529,7 +529,7 @@
 	}
 	}
 
 
 	function handlePopupBack() {
 	function handlePopupBack() {
-		popupRef.value.close()
+		popupRef.value && popupRef.value.close()
 	}
 	}
 
 
 	function handlePrev() {
 	function handlePrev() {

+ 1 - 1
pages/client/Lianxi/exam.vue

@@ -380,7 +380,7 @@
 	}
 	}
 
 
 	function handlePopupBack() {
 	function handlePopupBack() {
-		popupRef.value.close()
+		popupRef.value && popupRef.value.close()
 	}
 	}
 
 
 	function handlePrev() {
 	function handlePrev() {