wangguoyu 3 weeks ago
parent
commit
927497719c
6 changed files with 0 additions and 1136 deletions
  1. 0 6
      pages.json
  2. 0 124
      pages/exam/indexBf.vue
  3. 0 40
      pages/lianxi/indexBf.vue
  4. 0 171
      pages/my/indexBf.vue
  5. 0 67
      pages/score/indexBf.vue
  6. 0 728
      pages/score/kaoshiChengjiInfo copy.vue

+ 0 - 6
pages.json

@@ -156,12 +156,6 @@
 				"selectedIconPath": "static/images/tabbar/select/exam-sj.png",
 				"selectedIconPath": "static/images/tabbar/select/exam-sj.png",
 				"text": "考试"
 				"text": "考试"
 			}, 
 			}, 
-			// {
-			// 	"pagePath": "pages/course/index",
-			// 	"iconPath": "static/images/tabbar/unselect/kecheng-sj.png",
-			// 	"selectedIconPath": "static/images/tabbar/select/kecheng-sj.png",
-			// 	"text": "课程"
-			// }, 
 			{
 			{
 				"pagePath": "pages/score/index",
 				"pagePath": "pages/score/index",
 				"iconPath": "static/images/tabbar/unselect/score-sj.png",
 				"iconPath": "static/images/tabbar/unselect/score-sj.png",

+ 0 - 124
pages/exam/indexBf.vue

@@ -1,124 +0,0 @@
-<template>
-	<custom-scroll-list :refreshFn="getExamList" :tabList="tabData" :defaultTab="1" ref="scrollRef">
-		<template #default="{list}">
-			<scroll-list-card v-for="(item,index) in list" :key="item.ksId" :data="item"
-				@btnClick="handleClick"></scroll-list-card>
-		</template>
-	</custom-scroll-list>
-	<!-- 考试须知 -->
-	<kaoshixuzhi ref="ksxzRef" @confirm="handleConfirm"></kaoshixuzhi>
-</template>
-
-<script setup>
-	import {
-		getExamList,
-		kaoShiApply,
-		getClientKaoshiInfo
-	} from "@/api/exam.js";
-	import {
-		onReady,
-	} from "@dcloudio/uni-app"
-	import {
-		reactive,
-		ref
-	} from "vue";
-	import kaoshixuzhi from "@/components/kaoshixuzhi/kaoshixuzhi.vue"
-
-	const activeKs = ref(null);
-	const scrollRef = ref(null);
-	const examNoticeInfo = ref(null);
-	const ksxzRef = ref(null);
-
-	const tabData = [{
-			label: "可以考试",
-			value: 1,
-		},
-		{
-			label: "已结束",
-			value: 4,
-		}
-	]
-
-	function goKaoshiPage(data) {
-		/* uni.redirectTo({
-			url: `/pages/exam/exam?ksId=${data.ksId}&zhuapai=${data.zhuapai}`
-		}) */
-		uni.navigateTo({
-			url: `/pages/exam/exam?ksId=${data.ksId}&zhuapai=${data.zhuapai}`
-		})
-	}
-	
-	function handleConfirm() {
-		goKaoshiPage(activeKs.value)
-	}
-
-	function showKaoshiXuzhi() {
-		const option = {
-			ksId: activeKs.value.ksId
-		}
-		getClientKaoshiInfo(option).then(res => {
-			examNoticeInfo.value = res.data;
-			// 校验抓拍
-			doCheckZhuapai()
-		})
-
-	}
-
-	function doCheckZhuapai() {
-		if (examNoticeInfo.value.zhuapai) {
-			// 存在抓拍
-		} else {
-			// 不存在抓拍
-			ksxzRef.value.showDialog(examNoticeInfo.value)
-		}
-	}
-
-	function handleClick(data) {
-		activeKs.value = data;
-		if (data.status == 0) {
-			// 未开始
-			// goKaoshiPage(data);
-			showKaoshiXuzhi()
-		}
-		if (data.status == 1) {
-			// 可以考试
-			// goKaoshiPage(data);
-			showKaoshiXuzhi()
-		}
-		if (data.status == 2) {
-			// 再次考试
-			// goKaoshiPage(data);
-			showKaoshiXuzhi()
-		}
-		if (data.status == 3) {
-			// 考试中
-			// goKaoshiPage(data);
-			showKaoshiXuzhi()
-		}
-		if (data.status == 4) {
-			// 已结束
-			uni.showToast({
-				title: '考试已结束',
-				icon: 'none'
-			})
-		}
-		if (data.status == 5) {
-			// 未报名
-			kaoShiApply({
-				ksId: data.ksId
-			}).then(res => {
-				uni.showToast({
-					title: '报名成功',
-					icon: 'none'
-				})
-				scrollRef.value.onRefresh()
-			})
-		}
-
-	}
-
-</script>
-
-<style lang="scss">
-
-</style>

+ 0 - 40
pages/lianxi/indexBf.vue

@@ -1,40 +0,0 @@
-<template>
-	<custom-scroll-list :refreshFn="getLianxiList" :tabList="tabData" :defaultTab="1" ref="scrollRef"
-		placeholder="请输入练习名称">
-		<template #default="{list}">
-			<scroll-list-card-lianxi v-for="(item,index) in list" :key="item.lxId" :data="item"
-				@btnClick="handleClick"></scroll-list-card-lianxi>
-		</template>
-	</custom-scroll-list>
-</template>
-
-<script setup>
-	import scrollListCardLianxi from "@/components/score-lianxi-card-lianxi/score-lianxi-card-lianxi.vue"
-	import {
-		getLianxiList,
-	} from "@/api/lianxi.js";
-	import {
-		ref
-	} from "vue";
-
-
-	const tabData = [{
-			label: "开始练习",
-			value: 1,
-		},
-		{
-			label: "已结束",
-			value: 2,
-		}
-	]
-
-	function handleClick(data) {
-		uni.redirectTo({
-			url: `/pages/lianxi/lianxi?lxId=${data.lxId}`
-		})
-	}
-</script>
-
-<style lang="scss">
-
-</style>

+ 0 - 171
pages/my/indexBf.vue

@@ -1,171 +0,0 @@
-<template>
-	<view class="mobile-my-page">
-		<view class="user-info-box">
-		    <view class="user-img-box">
-		        <img class="head-img" :src="myInfoData.userImg" v-if="myInfoData.userImg">
-		        <icon class="phone-default-userImg" v-else></icon>
-		    </view>
-		    <view class="user-content-box">
-		        <view class="user-name">{{myInfoData.userName}}</view>
-		        <view class="user-info">
-		            <view>{{myInfoData.realName}}</view><text v-if="myInfoData.realName && myInfoData.orgName"></text>
-		            <view>{{myInfoData.orgName}}</view><text v-if="myInfoData.orgName && myInfoData.positionName"></text>
-		            <view>{{myInfoData.positionName}}</view>
-		        </view>
-		    </view>
-		</view>
-		
-		<view class="my-list-box">
-			<view class="list-row" @click="goToPage('xuefen')">
-				<icon class="list-icon xuefen-icon"></icon>
-				<text>学分</text>
-				<text class="row-content">{{myInfoData.credit}}分</text>
-			</view>
-			<view class="list-row" @click="goToPage('xiaoxi')">
-				<icon class="list-icon xiaoxi-icon"></icon>
-				<text>消息</text>
-				<text class="row-content">{{myInfoData.countNotice}}条</text>
-			</view>
-			<view class="list-row" @click="goToPage('zhengshu')">
-				<icon class="list-icon zhengshu-icon"></icon>
-				<text>证书</text>
-				<text class="row-content">{{myInfoData.countCert}}个</text>
-			</view>
-		</view>
-		<view class="my-list-box">
-			<view class="list-row" @click="goToPage('cuoti')">
-				<icon class="list-icon cuoti-icon"></icon>
-				<text>错题</text>
-			</view>
-			<view class="list-row" @click="goToPage('baoming')">
-				<icon class="list-icon baoming-icon"></icon>
-				<text>报名</text>
-			</view>
-			<view class="list-row" @click="goToPage('sxtcs')">
-				<icon class="list-icon sxtcs-icon"></icon>
-				<text>摄像头测试</text>
-			</view>
-			<view class="list-row" @click="goToPage('sxtsm')">
-				<icon class="list-icon sxtsm-icon"></icon>
-				<text>摄像头说明</text>
-			</view>
-			<view class="list-row" @click="goToPage('shezhi')">
-				<icon class="list-icon shezhi-icon"></icon>
-				<text>设置</text>
-			</view>
-		</view>
-		
-		<view>
-			<cameraCommon ref="cameraCommonRef"></cameraCommon>
-		</view>
-		<view>
-			<shexiangtoushuoming ref="shexiangtoushuomingRef" :content="messageContent"  title="注意" okBtn="知道了"></shexiangtoushuoming>
-		</view>
-	</view>
-</template>
-
-<script setup>
-	import {reactive,ref} from "vue";
-	import {toast} from "@/utils/common";
-	import {getMineInfo} from '@/api/my.js'
-	import {onLoad,onShow} from '@dcloudio/uni-app';
-	import cameraCommon from "@/components/dialog/cameraCommon.vue";
-	import shexiangtoushuoming from "@/components/dialog/shexiangtoushuoming.vue";
-	let myInfoData = reactive({
-		userImg: '',
-		realName: '',
-		orgName: '',
-		userName: '',
-		positionName:'',
-		credit:'',
-		countCert:'',
-		countNotice:'',
-
-	});
-	const cameraCommonRef = ref(null)
-	const shexiangtoushuomingRef = ref(null)
-	const messageContent = ref('请在考试前使用摄像头测试功能,测试摄像头是否可以正常工作,在测试前请先确保摄像头设备可以正常使用.')
-	onLoad(() => {})
-	
-	onShow(() => {getMyInit()})
-	
-	function getMyInit() {
-		getUserInfo();
-	}
-	
-	function getUserInfo(){
-		getMineInfo({}).then(res => {
-			myInfoData.userImg= res.data.icon;
-			myInfoData.realName = res.data.realName;
-			myInfoData.orgName = res.data.orgName;
-			myInfoData.userName = res.data.userName;
-			myInfoData.positionName = res.data.positionName;
-			myInfoData.credit = res.data.credit;
-			myInfoData.countCert = res.data.countCert;
-			myInfoData.countNotice = res.data.countNotice;
-		})
-	}
-	
-	function goToPage(data){
-		switch (data) {
-			// 学分
-			case 'xuefen':
-			    uni.navigateTo({
-			    	url:'/pages/my/credit'
-			    })
-			break;
-			
-			// 消息
-			case 'xiaoxi':
-			    uni.navigateTo({
-			    	url:'/pages/my/mesList?from=my'
-			    })
-			break;
-			
-			// 证书
-			case 'zhengshu':
-			    uni.navigateTo({
-			    	url:'/pages/my/zhengshu'
-			    })
-			break;
-			
-			// 错题
-			case 'cuoti':
-			    uni.navigateTo({
-			    	url:'/pages/cuoti/index'
-			    })
-			break;
-			
-			// 报名
-			case 'baoming':
-			    uni.navigateTo({
-			    	url:'/pages/baoming/index'
-			    })
-			break;
-			
-			// 摄像头测试
-			case 'sxtcs':
-			cameraCommonRef.value.handleShow()
-			    // uni.navigateTo({
-			    // 	url:'/pages/admin/my/myInfo?from=my'
-			    // })
-			break;
-			
-			// 摄像头说明
-			case 'sxtsm':
-			  shexiangtoushuomingRef.value.handleShow()
-			break;
-			
-			// 设置
-			case 'shezhi':
-			    uni.navigateTo({
-			    	url:'/pages/my/setting'
-			    })
-			break;
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 0 - 67
pages/score/indexBf.vue

@@ -1,67 +0,0 @@
-<template>
-	<custom-scroll-list-chengji ref="customChengjiRef" :refreshFn="currentRefreshFn" @tabChange="tabChange"
-		:searchBarKey="searchBarKeyName" :tabList="tabData" :defaultTab="1">
-		<template #default="{list}">
-			<scroll-list-card-chengji v-show="currentTab =='1'" @lookShijuan="lookShijuan" @lookPaiming="lookPaiming"   v-for="(item,index) in list"
-				:key="item.ksId" :data="item"></scroll-list-card-chengji>
-			<scroll-list-card-kechengji v-show="currentTab =='2'" @click="kechengChengjiClick(item)"
-				v-for="(item,index) in list" :key="item.ksId" :data="item"></scroll-list-card-kechengji>
-		</template>
-	</custom-scroll-list-chengji>
-</template>
-
-<script setup>
-	import {
-		getKaoshichengjiList,
-		getKcchengjiList
-	} from "@/api/chengji.js";
-	import customScrollListChengji from "@/components/custom-scroll-list/custom-scroll-list-chengji.vue";
-	import {
-		onLoad,
-		onReady,
-
-	} from "@dcloudio/uni-app"
-	import {
-		reactive,
-		ref,
-		computed
-	} from "vue";
-	let currentTab = ref('1')
-	let searchBarKeyName = ref('ksName')
-	let customChengjiRef = ref(null)
-	const tabData = [{
-		label: "考试成绩",
-		value: 1,
-	}, {
-		label: "课程成绩",
-		value: 2
-	}]
-const currentRefreshFn = computed(() => 
-  currentTab.value == '1' ? getKaoshichengjiList : getKcchengjiList
-)
-	function tabChange(data) {
-		currentTab.value = data.value
-		if (currentTab.value == 1) {
-			searchBarKeyName.value = 'ksName'
-		} else {
-			searchBarKeyName.value = 'kcName'
-		}
-	//	customChengjiRef.value.tabChangeSearch(data)
-	}
-	const lookShijuan = (data) => {
-		console.log('data',data);
-		uni.navigateTo({
-			url: '/pages/score/kaoshiChengjiInfo?lxId=' + data.lxId + '&name=' + data.name
-		});
-	}
-	const lookPaiming = (data) => {
-		console.log('datalookPaiming',data);
-		// uni.navigateTo({
-		// 	url: '/pages/score/kaoshiChengjiInfo?kcId=' + data.kcId + '&name=' + data.name
-		// });
-	}
-</script>
-
-<style lang="scss">
-
-</style>

+ 0 - 728
pages/score/kaoshiChengjiInfo copy.vue

@@ -1,728 +0,0 @@
-<template>
-	<view class="phone-kaoshi-page">
-		<!-- 导航区域 -->
-		<view class="icon-title-navBar-box">
-			<view @click="handleBack" class="nav-bar-icon"></view>
-			<text class="nav-bar-title">{{data.lxName}}</text>
-		</view>
-		<!-- 第一行 -->
-		<view class="kaoshi-page-title">
-			<view v-if="activeSt" class="title-types">{{dlName}}</view>
-			<view>100分钟</view>
-		</view>
-
-
-		<view class="kaoshi-shiti-content">
-			<!-- 内容区域 -->
-			<!-- 试题区域 -->
-			<view v-if="activeSt">
-				<template v-if="activeSt.stTypeId == 1">
-					<!-- 单选 -->
-					<danxuan :question="activeSt" :key="activeSt.stId"></danxuan>
-				</template>
-				<template v-if="activeSt.stTypeId == 2">
-					<!-- 多选 -->
-					<duoxuan :question="activeSt" :key="activeSt.stId"></duoxuan>
-				</template>
-				<template v-if="activeSt.stTypeId == 3">
-					<!-- 判断 -->
-					<panduan :question="activeSt" :key="activeSt.stId"></panduan>
-				</template>
-				<template v-if="activeSt.stTypeId == 4">
-					<!-- 填空 -->
-					<tiankong :question="activeSt" :key="activeSt.stId"></tiankong>
-				</template>
-				<template v-if="activeSt.stTypeId == 5">
-					<!-- 简答 -->
-					<jianda :question="activeSt" :key="activeSt.stId"></jianda>
-				</template>
-				<template v-if="activeSt.stTypeId == 6">
-					<!-- 阅读 -->
-					<yuedu :question="activeSt" :key="activeSt.stId" @yudu-change="onYueduChange"></yuedu>
-				</template>
-			</view>
-
-		</view>
-
-		<view class="kaoshi-bottom-box">
-			<button class="phone-green-btn bj-btn" hover-class="none" type="default" size="mini"
-				@click="handleBiaoji">{{activeSt && activeSt.marked ? '取标':'标记'}}</button>
-			<view @click="showAnswerCard" class="shiti-num-box">
-				<icon class="shiti-num-icon"></icon>
-				<text
-					class="active-num">{{activeSt ? activeSt.onlyNum: 0}}</text>/<text>{{data.StListForSearch.length}}</text>
-			</view>
-			<button class="phone-white-btn jx-btn" hover-class="none" type="default" size="mini"
-				@click="handleCheckJiexi">解析</button>
-		</view>
-		<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-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>
-		</template>
-
-		<!-- 答题卡 -->
-		<uni-popup ref="popupRef" background-color="#fff" :animation="false" :is-mask-click="false" :mask-click="false">
-			<view class="answer-card-popup">
-				<view class="icon-title-navBar-box">
-					<view @click="handlePopupBack" class="nav-bar-icon"> </view>
-					<text class="nav-bar-title">答题卡</text>
-				</view>
-				<view class="card-content-box">
-					<view class="answer-card-content" v-for="(paragraph,paragraphIndex) in questionData"
-						:key="paragraphIndex">
-						<view class="paragraph-title">
-							{{paragraph.name}}
-						</view>
-						<view class="paragraph-qa" v-for="(qa,qaIndex) in paragraph.qas" :key="qaIndex"
-							:class="getQaClass(qa)" @click="answerCardItemClick(qa)">{{qa.onlyNum}}
-						</view>
-					</view>
-				</view>
-			</view>
-		</uni-popup>
-		<!--
-		// 倒计时
-		<view v-if="!!data.endSecond">
-			<text>考试倒计时:</text>
-			<uni-countdown :show-day="false" :second="1000" @timeup="onTimeUp" :start="startCountDown"></uni-countdown>
-		</view>
-		-->
-		<!-- 答案解析 -->
-		<scoreAndAnswerVue ref="scoreAnswerRef"></scoreAndAnswerVue>
-		<scoreAndAnswerAdminTiankong ref="scoreAnswerTkRef"></scoreAndAnswerAdminTiankong>
-		<scoreAndAnswerAdminJianda ref="scoreAnswerJdRef"></scoreAndAnswerAdminJianda>
-	</view>
-
-
-
-</template>
-
-<script setup>
-	import {
-		ref,
-		reactive,
-		computed,
-		watch
-	} from "vue";
-	import {
-		onLoad
-	} from "@dcloudio/uni-app";
-	import * as lxApi from "@/api/lianxi.js"
-	import danxuan from "@/components/questions/danxuan.vue";
-	import duoxuan from "@/components/questions/duoxuan.vue";
-	import tiankong from "@/components/questions/tiankong.vue";
-	import panduan from "@/components/questions/panduan.vue";
-	import jianda from "@/components/questions/jianda.vue";
-	import yuedu from "@/components/questions/yuedu.vue";
-	import scoreAndAnswerVue from "@/components/scoreAndAnswer/scoreAndAnswerAdmin.vue";
-	import scoreAndAnswerAdminTiankong from "@/components/scoreAndAnswer/scoreAndAnswerAdminTiankong.vue";
-	import scoreAndAnswerAdminJianda from "@/components/scoreAndAnswer/scoreAndAnswerJianda.vue";
-	import {
-		useQuestionTools
-	} from "@/components/questions/useQuestionTools.js";
-
-	const {
-		checkDanxuanReply,
-		checkDuoxuanReply,
-		checkPanduanReply,
-		checkTiankongReply,
-		getLetterByIndex,
-		checkJiandaReply,
-		checkYueduReply
-	} = useQuestionTools();
-
-	const stTypes = {
-		1: '单选题',
-		2: '多选题',
-		3: '判断题',
-		4: '填空题',
-	}
-
-	const popupRef = ref(null)
-	const scoreAnswerRef = ref(null)
-	const scoreAnswerTkRef = ref(null)
-	const startCountDown = ref(false);
-	const scoreAnswerJdRef = ref(null);
-
-	const data = reactive({
-		lxId: null,
-		lxName: '',
-		stTotal: 0,
-		stScore: 0,
-		biaoji: null,
-		endSecond: 0,
-		pageSize: 0,
-		toggleScreenFlag: 0,
-		toggleScreenSecond: 0,
-		zhuapai: 0,
-		duanluo: [],
-		markDB: [],
-		StListForSearch: [],
-	})
-
-	const yuduIndexQa = ref(null);
-
-	const questionData = ref([]);
-
-	const progress = reactive({
-		dlIndex: 0,
-		dtIndex: 0
-	})
-
-	const dlName = computed(() => {
-		if (data.StListForSearch && activeSt.value) {
-			return data.StListForSearch[activeSt.value.onlyNum - 1].paragraphName
-		} else {
-			return ''
-		}
-	})
-
-	watch(() => data.duanluo, (newVal) => {
-		// 计算已答试题数量
-	}, {
-		deep: true
-	})
-
-	const activeSt = computed(() => {
-		if (questionData.value.length) {
-			return questionData.value.length && questionData.value[progress.dlIndex].qas[progress.dtIndex];
-		} else {
-			return null
-		}
-	})
-
-	const isFistStId = computed(() => {
-		if (data.StListForSearch.length) {
-			return data.StListForSearch[0].stId == activeSt.value.stId
-		} else {
-			return false
-		}
-	});
-	const isLastStId = computed(() => {
-		if (data.StListForSearch.length) {
-			return data.StListForSearch[data.StListForSearch.length - 1].stId == activeSt.value.stId
-		} else {
-			return false
-		}
-	});
-
-	onLoad((option) => {
-	//	data.lxId = option.lxId;
-		data.lxId =6;
-		initKaoshi();
-	})
-
-	function getQaClass(qa) {
-		if (qa.marked && qa.marked === true) {
-			return 'paragraph-qa-block-mark';
-		} else {
-			if (qa.stTypeId == 1) {
-				if (checkDanxuanReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			} else if (qa.stTypeId == 2) {
-				if (checkDuoxuanReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			} else if (qa.stTypeId == 3) {
-				if (checkPanduanReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			} else if (qa.stTypeId == 4) {
-				if (checkTiankongReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			} else if (qa.stTypeId == 5) {
-				if (checkJiandaReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			} else if (qa.stTypeId == 6) {
-				if (checkYueduReply(qa)) {
-					return 'paragraph-qa-block-done';
-				} else {
-					return 'paragraph-qa-block-init';
-				}
-			}
-		}
-	}
-
-	function skipQuestion(dlIndex, dtIndex) {
-		progress.dlIndex = dlIndex;
-		progress.dtIndex = dtIndex;
-		handlePopupBack()
-		// 切换试题时清空阅读提解析
-		yuduIndexQa.value = null;
-	}
-
-	function answerCardItemClick(qa) {
-		const actQa = data.StListForSearch.find(item => item.stId == qa.stId);
-		skipQuestion(actQa.dlIndex, actQa.dtIndex)
-
-	}
-
-	function handleBack() {
-		uni.redirectTo({
-			url: "/pages/admin/Lianxi/list"
-		})
-	}
-
-	function onTimeUp() {
-		console.log('end')
-	}
-
-	function showAnswerCard() {
-		popupRef.value.open('top')
-	}
-
-	function handlePopupBack() {
-		popupRef.value.close()
-	}
-
-	function handlePrev() {
-		const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
-		const index = qa.num - 1;
-		if (index > 0) {
-			const result = data.StListForSearch[index - 1];
-			progress.dlIndex = result.dlIndex;
-			progress.dtIndex = result.dtIndex
-		}
-		// 切换试题时清空阅读提解析
-		yuduIndexQa.value = null;
-	}
-
-	function handleNext() {
-		const qa = data.StListForSearch.find(item => item.stId == activeSt.value.stId);
-		const index = qa.num - 1;
-		if (index < data.StListForSearch.length) {
-			const result = data.StListForSearch[index + 1];
-			progress.dlIndex = result.dlIndex;
-			progress.dtIndex = result.dtIndex
-		}
-		// 切换试题时清空阅读提解析
-		yuduIndexQa.value = null
-	}
-
-	function formatDuanluoList(dlData) {
-		let uIndex = 0; // 试题num
-		let iDuanluo = 0; // 段落num
-		let result = [];
-		for (const duanluo of data.duanluo) {
-			let paragraph = {
-				qas: [],
-			};
-			paragraph.name = duanluo.name;
-
-			let iQa = 0; // 当前试题序号
-			let order = 0; // 当前题型中第几题
-			for (const iDanxuan of duanluo.danxuan) {
-				iDanxuan.type = 'danxuan';
-				iDanxuan.marked = false;
-				iDanxuan.onlyNum = uIndex + 1;
-				iDanxuan.order = order;
-				iDanxuan.iQa = iQa;
-				iDanxuan.reply = iDanxuan.result;
-				paragraph.qas.push(iDanxuan);
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iDanxuan.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iDanxuan.iQa,
-					num: iDanxuan.onlyNum
-				})
-			}
-			order = 0;
-			for (const iDuoxuan of duanluo.duoxuan) {
-				iDuoxuan.type = 'duoxuan';
-				iDuoxuan.marked = false;
-				iDuoxuan.onlyNum = uIndex + 1;
-				iDuoxuan.order = order;
-				paragraph.qas.push(iDuoxuan);
-				iDuoxuan.reply = iDuoxuan.result;
-				iDuoxuan.iQa = iQa;
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iDuoxuan.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iDuoxuan.iQa,
-					num: iDuoxuan.onlyNum
-				})
-			}
-			order = 0;
-			for (const iPanduan of duanluo.panduan) {
-				iPanduan.type = 'panduan';
-				iPanduan.marked = false;
-				iPanduan.onlyNum = uIndex + 1;
-				iPanduan.order = order;
-				paragraph.qas.push(iPanduan);
-				iPanduan.reply = iPanduan.result;
-				iPanduan.iQa = iQa;
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iPanduan.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iPanduan.iQa,
-					num: iPanduan.onlyNum
-				})
-			}
-			order = 0;
-			for (const iTiankong of duanluo.tiankong) {
-				iTiankong.type = 'tiankong';
-				iTiankong.marked = false;
-				iTiankong.onlyNum = uIndex + 1;
-				iTiankong.order = order;
-				paragraph.qas.push(iTiankong);
-				iTiankong.reply = iTiankong.result.map(item => item[0]);
-				iTiankong.iQa = iQa;
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iTiankong.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iTiankong.iQa,
-					num: iTiankong.onlyNum
-				})
-			}
-			order = 0;
-			for (const iJianda of duanluo.jianda) {
-				iJianda.marked = false;
-				iJianda.type = 'jianda';
-				iJianda.onlyNum = uIndex + 1;
-				iJianda.order = order;
-				iJianda.iQa = iQa;
-				paragraph.qas.push(iJianda);
-				iJianda.reply = '';
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iJianda.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iJianda.iQa,
-					num: iJianda.onlyNum
-				})
-			}
-			order = 0;
-			for (const iYuedu of duanluo.yuedu) {
-				iYuedu.marked = false;
-				iYuedu.type = 'yuedu';
-				iYuedu.onlyNum = uIndex + 1;
-				iYuedu.order = order;
-				iYuedu.iQa = iQa;
-
-				if (iYuedu.duoxuan && iYuedu.duoxuan.length) {
-					iYuedu.duoxuan.map((qIt) => {
-						qIt.reply = qIt.reply || [];
-						return qIt
-					})
-				}
-
-				if (iYuedu.tiankong && iYuedu.tiankong.length) {
-					iYuedu.tiankong.map((qIt) => {
-						qIt.reply = new Array(qIt.count).fill('');
-						return qIt;
-					});
-				}
-
-				paragraph.qas.push(iYuedu);
-				iYuedu.reply = [];
-				uIndex++;
-				order++;
-				iQa++;
-
-				data.StListForSearch.push({
-					stId: iYuedu.stId,
-					paragraphName: paragraph.name,
-					dlIndex: iDuanluo,
-					dtIndex: iYuedu.iQa,
-					num: iYuedu.onlyNum
-				})
-			}
-
-			iDuanluo++;
-			questionData.value.push(paragraph)
-
-			console.log(questionData.value)
-		}
-	}
-
-	function handleBiaoji() {
-		activeSt.value.marked = !activeSt.value.marked;
-	}
-	// 切换阅读小题时更新当前试题解析
-	function onYueduChange(qa) {
-		yuduIndexQa.value = qa;
-	}
-
-	// 校验阅读解析
-	function checkYueduJiexi() {
-		let qa = yuduIndexQa.value;
-		let score = qa.userScore;
-		let reply = '';
-		let result = '';
-		let answer = qa.answer;
-		if (qa.stTypeId == 1) {
-			// 单选题
-			if (qa.reply && qa.reply.trim() !== '') {
-				reply = getLetterByIndex(qa.reply)
-			} else {
-				reply = '未答'
-			}
-
-			if (qa.result) {
-				result = getLetterByIndex(qa.result)
-			} else {
-				result = '无答案'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 2) {
-			// 多选题
-
-			if (qa.reply && qa.reply.length) {
-				reply = qa.reply.map(item => {
-					if (item.trim()) {
-						return getLetterByIndex(item.trim())
-					}
-				}).join(',')
-			} else {
-				reply = '未答'
-			}
-			if (qa.result) {
-				result = qa.result.map(item => {
-					if (item.trim()) {
-						return getLetterByIndex(item.trim())
-					}
-				}).join(',')
-			} else {
-				result = '无答案'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 3) {
-			// 判断题
-			if (qa.reply === '') {
-				reply = '未答'
-			} else if (qa.reply == 0) {
-				reply = '错误'
-			} else if (qa.reply == 1) {
-				reply = '正确'
-			}
-			if (qa.result == 0) {
-				result = '错误'
-			} else if (qa.result == 1) {
-				result = '正确'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 4) {
-			let reply = qa.reply || [];
-			let result = qa.result || [];
-			// 填空题
-			scoreAnswerTkRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 5) {
-			// 简单题
-			let reply = qa.reply ? '未答' : qa.reply;
-			let result = qa.result;
-			scoreAnswerJdRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-
-	}
-
-	// 获取解析
-	function handleCheckJiexi() {
-		const qa = activeSt.value;
-		let score = qa.userScore;
-		let reply = '';
-		let result = '';
-		let answer = qa.answer;
-		if (qa.stTypeId == 1) {
-			// 单选题
-			if (qa.reply && qa.reply.trim() !== '') {
-				reply = getLetterByIndex(qa.reply)
-			} else {
-				reply = '未答'
-			}
-
-			if (qa.result) {
-				result = getLetterByIndex(qa.result)
-			} else {
-				result = '无答案'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 2) {
-			// 多选题
-
-			if (qa.reply && qa.reply.length) {
-				reply = qa.reply.map(item => {
-					if (item.trim()) {
-						return getLetterByIndex(item.trim())
-					}
-				}).join(',')
-			} else {
-				reply = '未答'
-			}
-			if (qa.result) {
-				result = qa.result.map(item => {
-					if (item.trim()) {
-						return getLetterByIndex(item.trim())
-					}
-				}).join(',')
-			} else {
-				result = '无答案'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 3) {
-			// 判断题
-			if (qa.reply === '') {
-				reply = '未答'
-			} else if (qa.reply == 0) {
-				reply = '错误'
-			} else if (qa.reply == 1) {
-				reply = '正确'
-			}
-			if (qa.result == 0) {
-				result = '错误'
-			} else if (qa.result == 1) {
-				result = '正确'
-			}
-			scoreAnswerRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 4) {
-			let reply = qa.reply || [];
-			let result = qa.result || [];
-			// 填空题
-			scoreAnswerTkRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 5) {
-			// 简单题
-			let reply = qa.reply;
-			let result = qa.result;
-			scoreAnswerJdRef.value.showPopup({
-				score,
-				reply,
-				result,
-				answer
-			})
-		}
-		if (qa.stTypeId == 6) {
-			// 简单题
-			checkYueduJiexi()
-		}
-
-	}
-
-	function initKaoshi() {
-		lxApi.getLianxiInfo({
-			lxId: data.lxId
-		}).then(res => {
-			const {
-				lxId,
-				lxName,
-				stTotal,
-				stScore,
-				biaoji,
-				endSecond,
-				pageSize,
-				toggleScreenFlag,
-				toggleScreenSecond,
-				zhuapai,
-				duanluoList
-			} = res.data;
-			data.lxId = lxId;
-			data.lxName = lxName;
-			data.stTotal = stTotal;
-			data.stScore = stScore;
-			data.biaoji = biaoji;
-			data.endSecond = endSecond;
-			data.pageSize = pageSize;
-			data.toggleScreenFlag = toggleScreenFlag;
-			data.toggleScreenSecond = toggleScreenSecond;
-			data.zhuapai = zhuapai;
-			data.duanluo = duanluoList;
-			formatDuanluoList(data.duanluo);
-			startCountDown.value = true;
-			uni.setNavigationBarTitle({
-				title: data.lxName
-			});
-		})
-	}
-</script>