Procházet zdrojové kódy

替换了 游戏中的动态图,修改了基本脑波值

智方网络_吖荣 před 3 roky
rodič
revize
f4b29eab1e
2 změnil soubory, kde provedl 15 přidání a 16 odebrání
  1. 3 3
      src/pages/index/index.vue
  2. 12 13
      src/pages/start/index.vue

+ 3 - 3
src/pages/index/index.vue

@@ -190,9 +190,9 @@ export default {
   },
   onHide() {},
   onLoad($option) {
-    // if (process.env.NODE_ENV == "development") {
-    //   wx.setStorageSync("token", "ZbNv-hpdpmxk895iqUrEwe4kCJjEWCJD");
-    // }
+    if (process.env.NODE_ENV == "development") {
+      wx.setStorageSync("token", "ZbNv-hpdpmxk895iqUrEwe4kCJjEWCJD");
+    }
 
 
     if (game_store.getters.getGameStatus() == 1) {

+ 12 - 13
src/pages/start/index.vue

@@ -175,7 +175,9 @@ export default {
       mode: 0,
 
       timeData: {},
-      mode_item: {},
+      mode_item: {
+        name: ""
+      },
       device_power: 100,
 
       user_info: {},
@@ -411,7 +413,7 @@ export default {
       $this.high_alphas.push($data['high_alpha']);
       $this.low_betas.push($data['low_beta']);
       $this.high_betas.push($data['high_beta']);
-      $this.cates.push(" ");
+      $this.cates.push("");
 
       if ($this.att_list.length > 15) {
         $this.att_list.shift();
@@ -423,7 +425,7 @@ export default {
         $this.high_alphas.shift();
         $this.low_betas.shift();
         $this.high_betas.shift();
-        $this.cates.shift(" ")
+        $this.cates.shift()
       }
 
       $this.attList.push($data["att"]);
@@ -490,7 +492,7 @@ export default {
         canvasId: "lineCanvas",
         type: "line",
         width: 360,
-        height: 193,
+        height: 250,
         legend: true,
         background: "#302D43",
         dataLabel: false,
@@ -503,9 +505,7 @@ export default {
         },
         xAxis: {
           disableGrid: false,
-          gridColor: "#302D43",
-          fontColor: "#FFFFFF",
-
+          gridColor: "#302D43"
         },
         series: [{
           name: "Att(专注度)",
@@ -536,7 +536,7 @@ export default {
         canvasId: "areaCanvas",
         type: "line",
         width: 360,
-        height: 193,
+        height: 250,
         legend: true,
         background: "#302D43",
         dataLabel: false,
@@ -550,9 +550,7 @@ export default {
         },
         xAxis: {
           disableGrid: false,
-          gridColor: "#302D43",
-          fontColor: "#FFFFFF",
-
+          gridColor: "#302D43"
         },
         series: [
           {
@@ -595,6 +593,7 @@ export default {
     },
   },
   mounted() {
+    // $this.charts(["","","","","",],[10,20,30,40,50],[11,21,31,41,51],[12,22,33,44,55])
     $this._deviceId = game_store.getters.getDeviceId();
     $this._serviceId = game_store.getters.getServiceId();
     $this._characteristicId = game_store.getters.getCharacterId();
@@ -686,7 +685,7 @@ export default {
   );
   background-color: #46425e;
   padding: 5px;
-  height: 850px;
+  height: 925px;
 }
 
 .game_panel {
@@ -862,7 +861,7 @@ export default {
 
 .chart {
   width: 360px;
-  height: 193px;
+  height: 250px;
   background: #302d43;
   opacity: 0.6;
   border-radius: 10px;