|
@@ -145,8 +145,8 @@ export default {
|
|
|
widthIframe: 900,
|
|
|
heightIframe: 600,
|
|
|
// this.urlThreeP = "../../../static/BuildFlower/index.html";
|
|
|
- urlThreeP: "../../../static/candle/index.html",
|
|
|
- //urlThreeP: __static + "/candle/index.html",
|
|
|
+ // urlThreeP: "../../../static/candle/index.html",
|
|
|
+ urlThreeP: __static + "/candle/index.html",
|
|
|
flag: 1,
|
|
|
//游戏场景
|
|
|
gameScene: 1,
|
|
@@ -281,30 +281,6 @@ export default {
|
|
|
}
|
|
|
flagAnimation = false;
|
|
|
});
|
|
|
- //设置定时器每秒定时器
|
|
|
- // setInterval(() => {
|
|
|
- // //当按钮开始时需要发送信息到
|
|
|
- // //当按钮处于结束状态时
|
|
|
- // if (that.buttonFlag == "结束") {
|
|
|
- // //当前设备是选择的哪一个
|
|
|
- // //如果选择的是脑电时
|
|
|
- // //判断脑电是否连接
|
|
|
- // //如果脑电连接则发送send(0)
|
|
|
- // if (that.equipment == 1) {
|
|
|
- // if (that.eleFlag == "未连接") {
|
|
|
- // if (that.gameValue != 0) {
|
|
|
- // that.send(0);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (that.pulseFlag == "未连接") {
|
|
|
- // if (that.gameValue != 0) {
|
|
|
- // that.send(0);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }, 1000);
|
|
|
setTimeout(() => {
|
|
|
that.getSize();
|
|
|
}, 5000);
|
|
@@ -343,7 +319,7 @@ export default {
|
|
|
this.meditationData.push(arg["_c"].get("Meditation"));
|
|
|
this.meditationDataAll.push(arg["_c"].get("Meditation"));
|
|
|
if (this.meditationData.length > ll) {
|
|
|
- this.attentionData.shift();
|
|
|
+ this.meditationData.shift();
|
|
|
}
|
|
|
this.thetaData.push(arg["_c"].get("Theta"));
|
|
|
this.thetaDataAll.push(arg["_c"].get("Theta"));
|
|
@@ -676,38 +652,38 @@ export default {
|
|
|
this.clearDataFun();
|
|
|
switch (val) {
|
|
|
case 1:
|
|
|
- this.urlThreeP = "../../../static/candle/index.html";
|
|
|
- //this.urlThreeP = __static + "/candle/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/candle/index.html";
|
|
|
+ this.urlThreeP = __static + "/candle/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
case 2:
|
|
|
- this.urlThreeP = "../../../static/flower/index.html";
|
|
|
- //this.urlThreeP = __static + "/flower/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/flower/index.html";
|
|
|
+ this.urlThreeP = __static + "/flower/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
case 3:
|
|
|
- this.urlThreeP = "../../../static/car/index.html";
|
|
|
- //this.urlThreeP = __static + "/car/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/car/index.html";
|
|
|
+ this.urlThreeP = __static + "/car/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
case 4:
|
|
|
- this.urlThreeP = "../../../static/baobaotong/index.html";
|
|
|
- //this.urlThreeP = __static + "/baobaotong/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/baobaotong/index.html";
|
|
|
+ this.urlThreeP = __static + "/baobaotong/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
case 5:
|
|
|
- this.urlThreeP = "../../../static/bomb/index.html";
|
|
|
- //this.urlThreeP = __static + "/bomb/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/bomb/index.html";
|
|
|
+ this.urlThreeP = __static + "/bomb/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
case 6:
|
|
|
- this.urlThreeP = "../../../static/piaofuqiu/index.html";
|
|
|
- //this.urlThreeP = __static + "/piaofuqiu/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/piaofuqiu/index.html";
|
|
|
+ this.urlThreeP = __static + "/piaofuqiu/index.html";
|
|
|
this.delayTime();
|
|
|
break;
|
|
|
default:
|
|
|
- this.urlThreeP = "../../../static/candle/index.html";
|
|
|
- //this.urlThreeP = __static + "/candle/index.html";
|
|
|
+ // this.urlThreeP = "../../../static/candle/index.html";
|
|
|
+ this.urlThreeP = __static + "/candle/index.html";
|
|
|
}
|
|
|
this.gameScene = val;
|
|
|
this.flag = this.gameScene;
|