Ver código fonte

先开气阀再开酒阀

Tinger 1 ano atrás
pai
commit
f80e8087e6
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/pages/WineOutPage.vue

+ 4 - 4
src/pages/WineOutPage.vue

@@ -130,12 +130,12 @@ export default {
         button: {need: true, text: "开 始 出 酒", countdown: sec}, callback: () => {
           this.stage.current = 1;
           Timer = setTimeout(() => this._onErrorHappened("酒水不足-1"), 3000);
+          this.$utils.EventBus["debug"](`command: open-gas`);
+          this.$utils.Android("openGas");  // 打开气阀
           setTimeout(() => {
-            this.$utils.EventBus["debug"](`command: open-gas`);
-            this.$utils.Android("openGas");  // cell号酒, 一共pulse个流量脉冲
+            this.$utils.EventBus["debug"](`command: open-valve[${this.wine.cell}] for pulses[${this.wine.pulse}]`);
+            this.$utils.Android("openValve", this.wine.cell, this.wine.pulse);  // cell号酒, 一共pulse个流量脉冲
           }, Gap);
-          this.$utils.EventBus["debug"](`command: open-valve[${this.wine.cell}] for pulses[${this.wine.pulse}]`);
-          this.$utils.Android("openValve", this.wine.cell, this.wine.pulse);  // cell号酒, 一共pulse个流量脉冲
         }
       });
     },