|
@@ -4,7 +4,7 @@
|
|
|
:class="[
|
|
|
'judge-temp',
|
|
|
'judge-temp-' + judgeWidth,
|
|
|
- Isexample ? 'judge-temp-example' : '',
|
|
|
+ Isexample ? 'judge-temp-example' : ''
|
|
|
]"
|
|
|
v-if="Bookanswer"
|
|
|
:style="{ width: judgeWidth + 'px' }"
|
|
@@ -13,7 +13,7 @@
|
|
|
:class="[
|
|
|
'right-btn',
|
|
|
!Isexample && TaskModel != 'ANSWER' ? 'right-btn-hover' : '',
|
|
|
- judgeAnswerClass('true'),
|
|
|
+ judgeAnswerClass('true')
|
|
|
]"
|
|
|
@click="changeOption('true')"
|
|
|
>
|
|
@@ -22,7 +22,7 @@
|
|
|
:class="[
|
|
|
'error-btn',
|
|
|
!Isexample && TaskModel != 'ANSWER' ? 'error-btn-hover' : '',
|
|
|
- judgeAnswerClass('false'),
|
|
|
+ judgeAnswerClass('false')
|
|
|
]"
|
|
|
@click="changeOption('false')"
|
|
|
>
|
|
@@ -32,7 +32,7 @@
|
|
|
:class="[
|
|
|
'unso-btn',
|
|
|
!Isexample && TaskModel != 'ANSWER' ? 'unso-btn-hover' : '',
|
|
|
- judgeAnswerClass('unso'),
|
|
|
+ judgeAnswerClass('unso')
|
|
|
]"
|
|
|
@click="changeOption('unso')"
|
|
|
>
|
|
@@ -50,7 +50,7 @@ export default {
|
|
|
"Isexample",
|
|
|
"TaskModel",
|
|
|
"judgeCorrectAnswer",
|
|
|
- "judgeAnswer",
|
|
|
+ "judgeAnswer"
|
|
|
],
|
|
|
data() {
|
|
|
return {};
|
|
@@ -71,7 +71,7 @@ export default {
|
|
|
return value;
|
|
|
},
|
|
|
judgeAnswerClass() {
|
|
|
- return function (type) {
|
|
|
+ return function(type) {
|
|
|
let _this = this;
|
|
|
let classname = "";
|
|
|
let answer = _this.Bookanswer.judge.correct;
|
|
@@ -113,7 +113,7 @@ export default {
|
|
|
|
|
|
return classname;
|
|
|
};
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
watch: {},
|
|
|
//方法集合
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
@@ -162,10 +162,10 @@ export default {
|
|
|
updated() {}, //生命周期 - 更新之后
|
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
destroyed() {}, //生命周期 - 销毁完成
|
|
|
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+ activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang='scss' scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
//@import url(); 引入公共css类
|
|
|
.judge-temp {
|
|
|
display: flex;
|
|
@@ -175,8 +175,8 @@ export default {
|
|
|
a {
|
|
|
width: 32px;
|
|
|
height: 32px;
|
|
|
- background: #fff url("../../../../assets/NPC/right-btn-gray.png")
|
|
|
- center no-repeat;
|
|
|
+ background: url("../../../../assets/NPC/right-btn-gray.png") center
|
|
|
+ no-repeat;
|
|
|
background-size: 24px;
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
@@ -185,27 +185,27 @@ export default {
|
|
|
align-items: center;
|
|
|
&.right-btn-hover:hover,
|
|
|
&.active {
|
|
|
- background: #727272 url("../../../../assets/NPC/right-btn-white.png")
|
|
|
- center no-repeat;
|
|
|
- background-size: 24px;
|
|
|
- border-color: #727272;
|
|
|
+ background: #727272 url("../../../../assets/NPC/right-btn-white.png")
|
|
|
+ center no-repeat;
|
|
|
+ background-size: 24px;
|
|
|
+ border-color: #727272;
|
|
|
}
|
|
|
&.error-btn {
|
|
|
- background: #fff url("../../../../assets/NPC/error-btn-gray.png")
|
|
|
- center no-repeat;
|
|
|
+ background: url("../../../../assets/NPC/error-btn-gray.png") center
|
|
|
+ no-repeat;
|
|
|
background-size: 24px;
|
|
|
margin-left: 4px;
|
|
|
&.error-btn-hover:hover,
|
|
|
&.active {
|
|
|
background: #727272 url("../../../../assets/NPC/error-btn-white.png")
|
|
|
- center no-repeat;
|
|
|
+ center no-repeat;
|
|
|
background-size: 24px;
|
|
|
border-color: #727272;
|
|
|
}
|
|
|
}
|
|
|
&.unso-btn {
|
|
|
- background: #fff url("../../../../assets/newImage/common/unso-btn.png")
|
|
|
- center no-repeat;
|
|
|
+ background: url("../../../../assets/newImage/common/unso-btn.png") center
|
|
|
+ no-repeat;
|
|
|
background-size: 18px;
|
|
|
margin-left: 4px;
|
|
|
&.unso-btn-hover:hover,
|
|
@@ -254,4 +254,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|