Commit 57abcfd9 authored by 罗超's avatar 罗超

1

parent f5f6467f
<template> <template>
<!-- 听力题 --> <!-- 听力题 -->
<view class="listen"> <view class="listen">
<view class="item" style="padding: 0 20px"> <view class="item" style="padding: 0 20px">
<view class="name"> <view class="name">
<view> <view>
{{ changeNumToHan(sortIndex) }}{{ data.GroupName }} {{ changeNumToHan(sortIndex) }}{{ data.GroupName }}
<text class="Exam_Score">(共{{ data.DetailsList.length }}道,{{ data.GScore }}分)</text> <text class="Exam_Score"
</view> >(共{{ data.DetailsList.length }}道,{{ data.GScore }}分)</text
<view class="ExamIndex_Box"> >
<text class="Single_Before">{{ ExamIndex }}</text>/<text </view>
class="Exam_Total">{{ data.DetailsList.length }}</text> <view class="ExamIndex_Box">
</view> <text class="Single_Before">{{ ExamIndex }}</text
</view> >/<text class="Exam_Total">{{ data.DetailsList.length }}</text>
<swiper class="swiper-box" :style="{ </view>
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`, height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}" :autoplay="autoplay" :current="current" @change="onchange" :skip-hidden-item-layout="true"> }"
<swiper-item v-if="sortIndex != 1"></swiper-item> :autoplay="autoplay"
<swiper-item v-for="(item1, index1) in data.DetailsList" :key="index1"> :current="current"
<audio style="text-align: left" @change="onchange"
poster="https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/7fbf26a0-4f4a-11eb-b680-7980c8a877b8.png" :skip-hidden-item-layout="true"
:src="item1.Src" name="日语听力" :action="audioAction" controls></audio> >
<view class="item1" :style="{height: `calc(100vh - 540rpx - ${statusBarHeight}px)`}"> <swiper-item v-if="sortIndex != 1"></swiper-item>
<view class="flex flex_start_center"> <swiper-item v-for="(item1, index1) in data.DetailsList" :key="index1">
<!-- <view <audio
style="text-align: left"
poster="https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/7fbf26a0-4f4a-11eb-b680-7980c8a877b8.png"
:src="item1.Src"
name="日语听力"
:action="audioAction"
controls
></audio>
<view
class="item1"
:style="{ height: `calc(100vh - 540rpx - ${statusBarHeight}px)` }"
>
<view class="flex flex_start_center">
<!-- <view
class="audioBox flex flex_center_center" class="audioBox flex flex_center_center"
@click="audioManage(item1.Src)" @click="audioManage(item1.Src)"
> >
...@@ -39,528 +56,620 @@ ...@@ -39,528 +56,620 @@
format="mm:ss" format="mm:ss"
/> />
</view> --> </view> -->
</view> </view>
<view class="questionView"> <view class="questionView">
<view v-for="(item2, index2) in item1.QuestionContentObj" :key="index2" class="item2"> <view
<view class="flex questionTitle"> v-for="(item2, index2) in item1.QuestionContentObj"
<view>{{ index2 + 1 }}、({{ :key="index2"
class="item2"
>
<view class="flex questionTitle">
<view
>{{ index2 + 1 }}、({{
item2.QuestionName.slice(0, 2) item2.QuestionName.slice(0, 2)
}})</view> }})</view
<view v-html="item2.SubTitle"></view> >
<text class=".Exam_Score">{{item1.Score}}</text> <view v-html="item2.SubTitle"></view>
</view> <text class=".Exam_Score">{{ item1.Score }}</text>
<view v-for="(item3, index3) in item2.SubAnwser" :key="index3"> </view>
<!-- 单选 、判断--> <view v-for="(item3, index3) in item2.SubAnwser" :key="index3">
<view class="flex flex_start_center item3" v-if=" <!-- 单选 、判断-->
<view
class="flex flex_start_center item3"
v-if="
item2.QuestionKey === 'single' || item2.QuestionKey === 'single' ||
item2.QuestionKey === 'judge' item2.QuestionKey === 'judge'
"> "
<template v-if="isOperate"> >
<view class="chooseNum" :class="{ myAnswer: item3.IsAnswer }" <template v-if="isOperate">
@click="singerChange(item2, item3)">{{ item3.Name }} <view
</view> class="chooseNum"
<view class="chooseName" @click="singerChange(item2, item3)" :class="{ myAnswer: item3.IsAnswer }"
v-html="item3.Content"></view> @click="singerChange(item2, item3)"
</template> >{{ item3.Name }}
<template v-else> </view>
<view class="chooseNum" :class="{ isTrueAnswer: item3.IsAnswer }"> <view
{{ item3.Name }} class="chooseName"
</view> @click="singerChange(item2, item3)"
<view class="chooseName" :class="{ isTrueAnswer: item3.IsAnswer }" v-html="item3.Content"
v-html="item3.Content"></view> ></view>
</template> </template>
</view> <template v-else>
<!-- 多选 --> <view
<view class="flex flex_start_center item3" v-if="item2.QuestionKey === 'multiple'"> class="chooseNum"
<template v-if="isOperate"> :class="{ isTrueAnswer: item3.IsAnswer }"
<view class="chooseNum" :class="{ myAnswer: item3.IsAnswer }" >
@click="multipleChange(item2, item3)">{{ item3.Name }} {{ item3.Name }}
</view> </view>
<view class="chooseName" @click="multipleChange(item2, item3)" <view
v-html="item3.Content"></view> class="chooseName"
</template> :class="{ isTrueAnswer: item3.IsAnswer }"
<template v-else> v-html="item3.Content"
<view class="chooseNum" :class="{ isTrueAnswer: item3.IsAnswer }"> ></view>
{{ item3.Name }} </template>
</view> </view>
<view class="chooseName" :class="{ isTrueAnswer: item3.IsAnswer }" <!-- 多选 -->
v-html="item3.Content"></view> <view
</template> class="flex flex_start_center item3"
</view> v-if="item2.QuestionKey === 'multiple'"
<!-- 填空 --> >
<view class="flex flex_start_center item3" v-if="item2.QuestionKey === 'fill-in'"> <template v-if="isOperate">
<view class="chooseNum">{{ index3 + 1 }} </view> <view
<template v-if="isOperate"> class="chooseNum"
<input v-for="cItem in item2.SubAnwser" type="text" v-model="cItem.Content" :class="{ myAnswer: item3.IsAnswer }"
class="chooseName chooseName2" placeholder="请填写答案" @click="multipleChange(item2, item3)"
@input="AnswerChange(item2)" /> >{{ item3.Name }}
</template> </view>
<template v-else> <view
<view v-for="cItem in item2.SubAnwser" class="viewAnswerContent" class="chooseName"
v-html="cItem.Content"></view> @click="multipleChange(item2, item3)"
</template> v-html="item3.Content"
</view> ></view>
<!-- 简答 --> </template>
<view class="flex flex_start_center item3" <template v-else>
v-if="item2.QuestionKey === 'short-answer'"> <view
<template v-if="isOperate"> class="chooseNum"
<textarea type="text" v-for="cItem in item2.SubAnwser" :class="{ isTrueAnswer: item3.IsAnswer }"
v-model="cItem.Content" class="chooseName chooseName2" >
placeholder="请填写答案" @input="AnswerChange(item2)" /> {{ item3.Name }}
</template> </view>
<template v-else> <view
<view v-for="cItem in item2.SubAnwser" class="viewAnswerContent" class="chooseName"
v-html="cItem.Content"></view> :class="{ isTrueAnswer: item3.IsAnswer }"
</template> v-html="item3.Content"
</view> ></view>
</view> </template>
<template v-if="!isOperate"> </view>
<view class="AnswerContent"> <!-- 填空 -->
<view> <view
<text style="color: #8c8a94">正确答案:</text> class="flex flex_start_center item3"
<text class="isTrueAnswer">{{ v-if="item2.QuestionKey === 'fill-in'"
>
<view class="chooseNum">{{ index3 + 1 }} </view>
<template v-if="isOperate">
<input
v-for="cItem in item2.SubAnwser"
type="text"
v-model="cItem.Content"
class="chooseName chooseName2"
placeholder="请填写答案"
@input="AnswerChange(item2)"
/>
</template>
<template v-else>
<view
v-for="cItem in item2.SubAnwser"
class="viewAnswerContent"
v-html="cItem.Content"
></view>
</template>
</view>
<!-- 简答 -->
<view
class="flex flex_start_center item3"
v-if="item2.QuestionKey === 'short-answer'"
>
<template v-if="isOperate">
<textarea
type="text"
v-for="cItem in item2.SubAnwser"
v-model="cItem.Content"
class="chooseName chooseName2"
placeholder="请填写答案"
@input="AnswerChange(item2)"
/>
</template>
<template v-else>
<view
v-for="cItem in item2.SubAnwser"
class="viewAnswerContent"
v-html="cItem.Content"
></view>
</template>
</view>
</view>
<template v-if="!isOperate">
<view class="AnswerContent">
<view>
<text style="color: #8c8a94">正确答案:</text>
<text class="isTrueAnswer">{{
item1.QuestionAnswerList[index2].SubAnswer item1.QuestionAnswerList[index2].SubAnswer
}}</text> }}</text
<text> >
您的答案: <text>
<template v-if="item1.AnswerList[index2].SubAnswer!=''"> 您的答案:
<text v-if="item1.QuestionAnswerList[index2].SubAnswer == item1.AnswerList[index2].SubAnswer"class="isTrueAnswer"> <template
{{ item1.AnswerList[index2].SubAnswer }},回答正确 v-if="item1.AnswerList[index2].SubAnswer != ''"
</text> >
<text v-else class="isNotAnswer"> <text
{{ item1.AnswerList[index2].SubAnswer }},回答错误 v-if="
</text> item1.QuestionAnswerList[index2].SubAnswer ==
</template> item1.AnswerList[index2].SubAnswer
<template v-else> "
<text class="isNotAnswer">未回答</text> class="isTrueAnswer"
</template> >
</text> {{ item1.AnswerList[index2].SubAnswer }},回答正确
</view> </text>
<view style="margin-top: 20rpx" <text v-else class="isNotAnswer">
v-if="item1.AnswerList[index2].StudentScore!=''||item1.AnswerList[index2].StudentScore===0"> {{ item1.AnswerList[index2].SubAnswer }},回答错误
<text style="color: #8c8a94">您的得分:</text> </text>
<text class="isTrueAnswer" </template>
v-if="item1.AnswerList[index2].StudentScore > 0">{{ item1.AnswerList[index2].StudentScore }}</text> <template v-else>
<text class="isNotAnswer" v-else>{{ <text class="isNotAnswer">未回答</text>
</template>
</text>
</view>
<view
style="margin-top: 20rpx"
v-if="
item1.AnswerList[index2].StudentScore != '' ||
item1.AnswerList[index2].StudentScore === 0
"
>
<text style="color: #8c8a94">您的得分:</text>
<text
class="isTrueAnswer"
v-if="item1.AnswerList[index2].StudentScore > 0"
>{{ item1.AnswerList[index2].StudentScore }}</text
>
<text class="isNotAnswer" v-else>{{
item1.AnswerList[index2].StudentScore item1.AnswerList[index2].StudentScore
}}</text> }}</text>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<view class="AnswerContent" v-if="!isOperate && item1.AnswerParse"> <view class="AnswerContent" v-if="!isOperate && item1.AnswerParse">
<view style="word-wrap: break-word"> <view style="word-wrap: break-word">
<text style="color: #8c8a94">解析:</text> <text style="color: #8c8a94">解析:</text>
<view style="color: #000; display: inline-block" v-html="item1.AnswerParse"></view> <view
</view> style="color: #000; display: inline-block"
</view> v-html="item1.AnswerParse"
</view> ></view>
<view class="AnswerBtn clear"> </view>
<view class="AnswerBtnFirst" @click="getBeforeExam()" v-if="ExamIndex!=1||sortIndex!=1">上一题</view> </view>
<view class="AnswerBtnSecond" v-if="sortIndex != sortTotal" @click="getNextExam()">下一题</view> </view>
</view> <view class="AnswerBtn clear">
</swiper-item> <view
<swiper-item v-if="sortIndex != sortTotal"></swiper-item> class="AnswerBtnFirst"
</swiper> @click="getBeforeExam()"
</view> v-if="ExamIndex != 1 || sortIndex != 1"
<van-toast id="van-toast" /> >上一题</view
</view> >
<view
class="AnswerBtnSecond"
v-if="sortIndex != sortTotal"
@click="getNextExam()"
>下一题</view
>
</view>
</swiper-item>
<swiper-item v-if="sortIndex != sortTotal"></swiper-item>
</swiper>
</view>
<van-toast id="van-toast" />
</view>
</template> </template>
<script> <script>
import { import {
ref, ref,
reactive, reactive,
toRefs, toRefs,
toRef, toRef,
getCurrentInstance, getCurrentInstance,
watch, watch,
computed, computed,
onMounted, onMounted,
onUnmounted, onUnmounted,
} from "vue"; } from "vue";
import { import { changeNumToHan } from "../../utils/index";
changeNumToHan const innerAudioContext = uni.createInnerAudioContext();
} from "../../utils/index"; innerAudioContext.autoplay = true;
const innerAudioContext = uni.createInnerAudioContext(); export default {
innerAudioContext.autoplay = true; props: {
export default { paperData: Object,
props: { sort: Number,
paperData: Object, sortTotal: Number,
sort: Number, isLast: Boolean,
sortTotal: Number, startIndex: Number,
isLast: Boolean, isOperate: Boolean,
startIndex: Number, ExamStatus: Number,
isOperate: Boolean, },
ExamStatus: Number, setup(props, context) {
}, let { refs } = getCurrentInstance();
setup(props, context) { console.log(163, refs);
let { let data = reactive({
refs autoplay: false,
} = getCurrentInstance(); sortIndex: props.sort + 1, //大题序号
console.log(163, refs); sortTotal: props.sortTotal, //总共多少道大题
let data = reactive({ data: props.paperData,
autoplay: false, current: 1, //默认从第几个开始-用于从快捷菜单点入
sortIndex: props.sort + 1, //大题序号 ExamIndex: 1, //第几题
sortTotal: props.sortTotal, //总共多少道大题 audioTime: 999,
data: props.paperData, isPlay: true,
current: 1, //默认从第几个开始-用于从快捷菜单点入 statusBarHeight: 0,
ExamIndex: 1, //第几题 isOperate: props.isOperate,
audioTime: 999, ExamStatus: props.ExamStatus,
isPlay: true, audioAction: {
statusBarHeight: 0, method: "pause",
isOperate: props.isOperate, },
ExamStatus: props.ExamStatus, isIOS: false,
audioAction: { });
method: 'pause' data.data.DetailsList.map((item) => {
} let arr = item.Title.split(" "); //按空格分段
}); arr.map((e) => {
data.data.DetailsList.map((item) => { if (e.indexOf("src") != -1) {
let arr = item.Title.split(" "); //按空格分段 item.Src = decodeURIComponent(e.split("url=")[1].slice(0, -1));
arr.map((e) => { }
if (e.indexOf("src") != -1) { });
item.Src = decodeURIComponent(e.split("url=")[1].slice(0, -1)); item.QuestionContentObj.map((_item) => {
} if (_item.QuestionKey === "multiple") {
}); _item.myAnswer = [];
item.QuestionContentObj.map((_item) => { } else {
if (_item.QuestionKey === "multiple") { _item.myAnswer = "";
_item.myAnswer = []; }
} else { });
_item.myAnswer = ""; });
} //判断是否是第一大题
}); if (data.sortIndex === 1) {
}); data.current = 0;
//判断是否是第一大题 //从答题卡进入
if (data.sortIndex === 1) { if (props.startIndex) {
data.current = 0; data.current = props.startIndex - 1;
//从答题卡进入 data.ExamIndex = props.startIndex;
if (props.startIndex) { }
data.current = props.startIndex - 1; } else {
data.ExamIndex = props.startIndex; if (props.startIndex) {
} data.current = props.startIndex;
} else { data.ExamIndex = props.startIndex;
if (props.startIndex) { }
data.current = props.startIndex; }
data.ExamIndex = props.startIndex; watch(data.data, (newVal, oldVal) => {
} if (newVal) {
} context.emit("answerChange", newVal);
watch(data.data, (newVal, oldVal) => { }
if (newVal) { });
context.emit("answerChange", newVal); let methods = {
} changeNumToHan,
}); jumpPage() {
let methods = { uni.navigateTo({
changeNumToHan, url: "/pages/exam/examPaper",
jumpPage() { });
uni.navigateTo({ },
url: "/pages/exam/examPaper", back() {
}); uni.navigateBack();
}, },
back() { //获取总时长
uni.navigateBack(); getTotalTime(url) {
}, innerAudioContext.src = url;
//获取总时长 var Inner = "";
getTotalTime(url) { innerAudioContext.onCanplay(() => {
innerAudioContext.src = url; innerAudioContext.duration;
var Inner = ''; let t = innerAudioContext.duration;
innerAudioContext.onCanplay(() => { let Time = t;
innerAudioContext.duration; var second = parseInt(Time);
let t = innerAudioContext.duration; var hours = Math.floor(second / 3600);
let Time = t second = second - hours * 3600;
var second = parseInt(Time) var mimute = Math.floor(second / 60);
var hours = Math.floor(second / 3600) second = second - mimute * 60;
second = second - hours * 3600 // let aa = hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2);
var mimute = Math.floor(second / 60) let TotalTime =
second = second - mimute * 60 ("0" + mimute).slice(-2) + ":" + ("0" + second).slice(-2);
// let aa = hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2); return TotalTime;
let TotalTime = ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2); });
return TotalTime },
}) audioManage(url) {
}, innerAudioContext.src = url;
audioManage(url) { innerAudioContext.onCanplay(() => {
innerAudioContext.src = url; // 必须。可以当做是初始化时长
innerAudioContext.onCanplay(() => { innerAudioContext.duration;
// 必须。可以当做是初始化时长 // 必须。不然也获取不到时长
innerAudioContext.duration; setTimeout(() => {
// 必须。不然也获取不到时长 let t = innerAudioContext.duration;
setTimeout(() => { data.audioTime = t * 1000;
let t = innerAudioContext.duration; }, 100);
data.audioTime = t * 1000; });
}, 100); if (innerAudioContext.currentTime === innerAudioContext.duration) {
}); data.isPlay = true;
if (innerAudioContext.currentTime === innerAudioContext.duration) { }
data.isPlay = true; if (data.isPlay) {
} innerAudioContext.play();
if (data.isPlay) { // refs.listenCountdown.start();
innerAudioContext.play(); console.log("开始播放");
// refs.listenCountdown.start(); data.isPlay = false;
console.log("开始播放"); } else {
data.isPlay = false; innerAudioContext.stop();
} else { console.log("停了");
innerAudioContext.stop(); data.isPlay = true;
console.log("停了"); }
data.isPlay = true;
}
innerAudioContext.onError((res) => { innerAudioContext.onError((res) => {
console.log(res.errMsg); console.log(res.errMsg);
console.log(res.errCode); console.log(res.errCode);
}); });
}, },
//----------------------------------------选题---------------------------------- //----------------------------------------选题----------------------------------
// 单选or判断 // 单选or判断
singerChange(item2, item3) { singerChange(item2, item3) {
item2.SubAnwser.map((e) => { item2.SubAnwser.map((e) => {
if (e.Name == item3.Name) { if (e.Name == item3.Name) {
e.IsAnswer = true; e.IsAnswer = true;
item2.IsRes = true; //答题标记 item2.IsRes = true; //答题标记
} else { } else {
e.IsAnswer = false; e.IsAnswer = false;
} }
}); });
}, },
// 多选 // 多选
multipleChange(item2, item3) { multipleChange(item2, item3) {
item3.IsAnswer = !item3.IsAnswer; item3.IsAnswer = !item3.IsAnswer;
//标记已回答 //标记已回答
item2.IsRes = item2.SubAnwser.some((e) => { item2.IsRes = item2.SubAnwser.some((e) => {
return e.IsAnswer; return e.IsAnswer;
}); });
}, },
AnswerChange(item) { AnswerChange(item) {
item.IsRes = item.SubAnwser.some((e) => { item.IsRes = item.SubAnwser.some((e) => {
return e.Content && e.Content != ""; return e.Content && e.Content != "";
}); });
}, },
onchange(e) { onchange(e) {
innerAudioContext.stop(); innerAudioContext.stop();
innerAudioContext.onCanplay(() => { innerAudioContext.onCanplay(() => {
// 必须。可以当做是初始化时长 // 必须。可以当做是初始化时长
innerAudioContext.duration; innerAudioContext.duration;
// 必须。不然也获取不到时长 // 必须。不然也获取不到时长
setTimeout(() => { setTimeout(() => {
data.audioTime = 999; data.audioTime = 999;
}, 100); }, 100);
}); });
data.isPlay = true; data.isPlay = true;
data.ExamIndex = e.detail.current; data.ExamIndex = e.detail.current;
if (data.sortIndex == 1) { if (data.sortIndex == 1) {
data.ExamIndex = e.detail.current + 1; data.ExamIndex = e.detail.current + 1;
} }
if (data.ExamIndex === data.data.DetailsList.length + 1) { if (data.ExamIndex === data.data.DetailsList.length + 1) {
this.$emit("getAfterTopic"); this.$emit("getAfterTopic");
} }
if (e.detail.current == 0 && data.sortIndex != 1) { if (e.detail.current == 0 && data.sortIndex != 1) {
this.$emit("getBeforeTopic"); this.$emit("getBeforeTopic");
} }
}, },
//点击上一题 //点击上一题
getBeforeExam() { getBeforeExam() {
data.current = data.current - 1; data.current = data.current - 1;
}, },
//点击下一题 //点击下一题
getNextExam() { getNextExam() {
data.current = data.current + 1; data.current = data.current + 1;
} },
}; getSystem() {
onMounted(() => { let sys = uni.getSystemInfoSync().system;
if (props.isLast) { if ((sys, indexOf("ios") != -1)) {
if (data.sortIndex === 1) { data.isIOS = true;
data.current = props.paperData.DetailsList.length - 1; }
} else { },
data.current = props.paperData.DetailsList.length; };
} onMounted(() => {
} if (props.isLast) {
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight; if (data.sortIndex === 1) {
}); data.current = props.paperData.DetailsList.length - 1;
onUnmounted(() => { } else {
innerAudioContext.stop(); data.current = props.paperData.DetailsList.length;
data.isPlay = true; }
}); }
let that = methods; data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
return { that.getSystem();
...toRefs(data), });
...methods, onUnmounted(() => {
}; innerAudioContext.stop();
}, data.isPlay = true;
}; });
let that = methods;
return {
...toRefs(data),
...methods,
};
},
};
</script> </script>
<style scoped> <style scoped>
.AnswerBtn { .AnswerBtn {
margin-top: 20rpx; margin-top: 20rpx;
} }
.clear { .clear {
clear: both clear: both;
} }
.AnswerBtnFirst { .AnswerBtnFirst {
width: 250rpx; width: 250rpx;
height: 60rpx; height: 60rpx;
text-align: center; text-align: center;
line-height: 60rpx; line-height: 60rpx;
border-radius: 10rpx; border-radius: 10rpx;
border: 1px solid #00ACF9; border: 1px solid #00acf9;
color: #00ACF9; color: #00acf9;
float: left; float: left;
} }
.AnswerBtnSecond { .AnswerBtnSecond {
width: 250rpx; width: 250rpx;
height: 60rpx; height: 60rpx;
text-align: center; text-align: center;
line-height: 60rpx; line-height: 60rpx;
border-radius: 10rpx; border-radius: 10rpx;
background-color: #00ACF9; background-color: #00acf9;
color: #fff; color: #fff;
float: right; float: right;
} }
.name { .name {
height: 90rpx; height: 90rpx;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 800; font-weight: 800;
color: #111111; color: #111111;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.ExamIndex_Box { .ExamIndex_Box {
margin-right: 40rpx; margin-right: 40rpx;
} }
.Single_Before { .Single_Before {
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: bold;
color: #da7878; color: #da7878;
} }
.isTrueAnswer { .isTrueAnswer {
color: green !important; color: green !important;
} }
.isNotAnswer { .isNotAnswer {
color: red !important; color: red !important;
} }
.AnswerContent { .AnswerContent {
font-size: 30rpx; font-size: 30rpx;
padding: 25rpx; padding: 25rpx;
background-color: #f4f4f4; background-color: #f4f4f4;
border-radius: 5px; border-radius: 5px;
} }
.viewAnswerContent { .viewAnswerContent {
width: 100%; width: 100%;
min-height: 44rpx; min-height: 44rpx;
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
padding-bottom: 5px; padding-bottom: 5px;
} }
.Exam_Total { .Exam_Total {
font-size: 25rpx; font-size: 25rpx;
color: gray; color: gray;
} }
.swiper-box { .swiper-box {
height: calc(100vh - 270rpx); height: calc(100vh - 270rpx);
box-sizing: border-box; box-sizing: border-box;
} }
.num { .num {
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
color: #111111; color: #111111;
} }
.item { .item {
/* margin-bottom: 40rpx; */ /* margin-bottom: 40rpx; */
position: relative; position: relative;
} }
.item1 { .item1 {
/* margin: 25rpx 0; */ /* margin: 25rpx 0; */
align-items: center; align-items: center;
overflow-y: auto; overflow-y: auto;
margin-top:30rpx; margin-top: 30rpx;
} }
.questionView { .questionView {
overflow-y: auto; overflow-y: auto;
} }
.audioBox { .audioBox {
width: 120rpx; width: 120rpx;
height: 30rpx; height: 30rpx;
background: #b4ddfe; background: #b4ddfe;
border: 1px solid #35b4fb; border: 1px solid #35b4fb;
border-radius: 4rpx; border-radius: 4rpx;
font-size: 22rpx; font-size: 22rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #00acf9; color: #00acf9;
} }
.item2 { .item2 {
box-sizing: border-box; box-sizing: border-box;
margin: 30rpx 0; margin: 30rpx 0;
/* padding: 0 30rpx; */ /* padding: 0 30rpx; */
} }
.item3 { .item3 {
padding-left: 25rpx; padding-left: 25rpx;
margin: 20rpx 0; margin: 20rpx 0;
} }
.myAnswer { .myAnswer {
background-color: #00acf9 !important; background-color: #00acf9 !important;
color: #ffffff !important; color: #ffffff !important;
} }
.chooseNum { .chooseNum {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
text-align: center; text-align: center;
line-height: 50rpx; line-height: 50rpx;
border-radius: 50%; border-radius: 50%;
border: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
margin-right: 30rpx; margin-right: 30rpx;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #111111; color: #111111;
} }
.chooseName { .chooseName {
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #111111; color: #111111;
} }
.chooseName2 { .chooseName2 {
flex-grow: 1; flex-grow: 1;
border-bottom: 1px solid #111; border-bottom: 1px solid #111;
} }
.questionTitle { .questionTitle {
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #111111; color: #111111;
} }
.listen .van-count-down { .listen .van-count-down {
font-size: 22rpx !important; font-size: 22rpx !important;
color: #00acf9 !important; color: #00acf9 !important;
} }
.Exam_Score { .Exam_Score {
color: #999999; color: #999999;
font-size: 28rpx; font-size: 28rpx;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment