|
@@ -170,18 +170,18 @@ const showFont = () => {
|
|
|
|
|
|
if (list.value[numberFlag.value].color == 'red') {
|
|
|
needColor.value = '红色'
|
|
|
- needJ.value = 'F'
|
|
|
+ needJ.value = '1'
|
|
|
} else if (list.value[numberFlag.value].color == 'yellow') {
|
|
|
needColor.value = '黄色'
|
|
|
- needJ.value = 'G'
|
|
|
+ needJ.value = '2'
|
|
|
|
|
|
} else if (list.value[numberFlag.value].color == 'blue') {
|
|
|
needColor.value = '蓝色'
|
|
|
- needJ.value = 'H'
|
|
|
+ needJ.value = '3'
|
|
|
|
|
|
} else if (list.value[numberFlag.value].color == 'green') {
|
|
|
needColor.value = '绿色'
|
|
|
- needJ.value = 'J'
|
|
|
+ needJ.value = '4'
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -229,29 +229,29 @@ const clickColor = async (val: string) => {
|
|
|
let currentP = false
|
|
|
if (list.value[numberFlag.value].color == 'red') {
|
|
|
needColor.value = '红色'
|
|
|
- needJ.value = 'F'
|
|
|
- if (val == 'f') {
|
|
|
+ needJ.value = '1'
|
|
|
+ if (val == '1') {
|
|
|
responseFlag.value = true
|
|
|
currentP = true
|
|
|
}
|
|
|
} else if (list.value[numberFlag.value].color == 'yellow') {
|
|
|
needColor.value = '黄色'
|
|
|
- needJ.value = 'G'
|
|
|
- if (val == 'g') {
|
|
|
+ needJ.value = '2'
|
|
|
+ if (val == '2') {
|
|
|
responseFlag.value = true
|
|
|
currentP = true
|
|
|
}
|
|
|
} else if (list.value[numberFlag.value].color == 'blue') {
|
|
|
needColor.value = '蓝色'
|
|
|
- needJ.value = 'H'
|
|
|
- if (val == 'h') {
|
|
|
+ needJ.value = '3'
|
|
|
+ if (val == '3') {
|
|
|
responseFlag.value = true
|
|
|
currentP = true
|
|
|
}
|
|
|
} else if (list.value[numberFlag.value].color == 'green') {
|
|
|
needColor.value = '绿色'
|
|
|
- needJ.value = 'J'
|
|
|
- if (val == 'j') {
|
|
|
+ needJ.value = '4'
|
|
|
+ if (val == '4') {
|
|
|
responseFlag.value = true
|
|
|
currentP = true
|
|
|
}
|
|
@@ -304,7 +304,6 @@ const clickColor = async (val: string) => {
|
|
|
// message: `正确率为${score}%`
|
|
|
// })
|
|
|
|
|
|
-
|
|
|
if (score >= 60) {
|
|
|
ElMessage({
|
|
|
type: 'success',
|
|
@@ -526,10 +525,10 @@ const formatterData = () => {
|
|
|
|
|
|
}
|
|
|
const buttonList = ref<any>([
|
|
|
- { name: 'F', val: 'f' },
|
|
|
- { name: 'G', val: 'g' },
|
|
|
- { name: 'H', val: 'h' },
|
|
|
- { name: 'J', val: 'j' }
|
|
|
+ { name: '1', val: '1' },
|
|
|
+ { name: '2', val: '2' },
|
|
|
+ { name: '3', val: '3' },
|
|
|
+ { name: '4', val: '4' }
|
|
|
]);
|
|
|
|
|
|
</script>
|
|
@@ -566,10 +565,10 @@ const buttonList = ref<any>([
|
|
|
</div> -->
|
|
|
<div style="margin-top:20px" class="tip_claFun btn-content" v-show="list.length > 0 && !timingShow && !addFlag">
|
|
|
|
|
|
- <el-button @click="clickColor('f')">F</el-button>
|
|
|
- <el-button @click="clickColor('g')">G</el-button>
|
|
|
- <el-button @click="clickColor('h')">H</el-button>
|
|
|
- <el-button @click="clickColor('j')">J</el-button>
|
|
|
+ <el-button @click="clickColor('1')">1</el-button>
|
|
|
+ <el-button @click="clickColor('2')">2</el-button>
|
|
|
+ <el-button @click="clickColor('3')">3</el-button>
|
|
|
+ <el-button @click="clickColor('4')">4</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="activeTaskTest" v-show="formalTest == '0'">
|
|
@@ -600,7 +599,7 @@ const buttonList = ref<any>([
|
|
|
|
|
|
</div> -->
|
|
|
<div class="tip_cla" v-show="!timingShow && formalTest == '0' && !addFlag">
|
|
|
- F:代表红色 G:代表黄色 H:代表蓝色 J:代表绿色
|
|
|
+ 1:代表红色 2:代表黄色 3:代表蓝色 4:代表绿色
|
|
|
</div>
|
|
|
<!-- <div class="tip_cla" v-show="!timingShow && formalTest == '0' && !addFlag">
|
|
|
当前颜色为<span class="font_sub_one sbclass">{{ needColor }}</span>,请按下 <span class="font_sub_two sbclass">{{
|