|
@@ -77,7 +77,7 @@
|
|
|
block
|
|
|
round
|
|
|
size="small"
|
|
|
- type="info"
|
|
|
+ :type="leftButton"
|
|
|
@click="userClick('L')"
|
|
|
>
|
|
|
<van-icon name="arrow-left" />
|
|
@@ -88,7 +88,7 @@
|
|
|
block
|
|
|
round
|
|
|
size="small"
|
|
|
- type="info"
|
|
|
+ :type="rightButton"
|
|
|
@click="userClick('R')"
|
|
|
>
|
|
|
<van-icon name="arrow" />
|
|
@@ -147,7 +147,9 @@ export default {
|
|
|
startMilliSeconds: 0, //反应时
|
|
|
userResponseRecords: [], //用户测试反应记录
|
|
|
saveFalg: true,
|
|
|
- testPlanId: ""
|
|
|
+ testPlanId: "",
|
|
|
+ leftButton: "info", //默认按钮样式
|
|
|
+ rightButton: "info"
|
|
|
};
|
|
|
},
|
|
|
// 页面初始化函数
|
|
@@ -180,9 +182,16 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if (this.testTypeCode == 0 && this.userRightClickDirection != clickFlag) {
|
|
|
- this.$toast.fail("点击错误,请根据图中提示,点击鼠标");
|
|
|
+ if (clickFlag == "L") {
|
|
|
+ this.rightButton = "primary";
|
|
|
+ } else if (clickFlag == "R") {
|
|
|
+ this.leftButton = "primary";
|
|
|
+ }
|
|
|
+ this.$toast.fail("点击错误,请根据按钮颜色提示进行点击");
|
|
|
return;
|
|
|
}
|
|
|
+ this.rightButton = "info";
|
|
|
+ this.leftButton = "info";
|
|
|
this.showDuckEgg = false;
|
|
|
this.showWhiteFlag = true;
|
|
|
let milliSecondsCount = new Date().getTime() - this.startMilliSeconds;
|