浏览代码

日常开发

林旭祥 3 天之前
父节点
当前提交
de07081602
共有 3 个文件被更改,包括 13 次插入12 次删除
  1. 1 1
      src/utils/speech.ts
  2. 10 10
      src/views/home/index.vue
  3. 2 1
      src/views/train/multiple.vue

+ 1 - 1
src/utils/speech.ts

@@ -102,7 +102,7 @@ export const speckText = (text: any) => {
     { lable: '跑', value: 'run.mp3' },
     { lable: '哨声', value: 'shaosheng.mp3' },
     { lable: '哨声2', value: 'shaosheng2.mp3' },
-    { lable: '预备2', value: 'Ready2.mp3' },
+    { lable: '预备2', value: 'Ready2.mp3' },//原团队现已经取消用TTS
   ];
   speechText = '';
   let obj = list.find((item: any) => {

+ 10 - 10
src/views/home/index.vue

@@ -91,16 +91,16 @@ const getJump = (url: string, name: string) => {
       .finally(() => { });
   } else if (url == '/game') {
     // proxy?.$modal.msgWarning('暂不开放使用,敬请期待!');
-    // proxy?.$modal
-    //   .prompt('请输入密码')
-    //   .then((e: any) => {
-    //     if (e.action == 'confirm' && e.value == 'trops') {
-    //       router.push({ path: url });
-    //     }
-    //   })
-    //   .finally(() => { });
-
-     router.push({ path: url });
+    proxy?.$modal
+      .prompt('请输入密码')
+      .then((e: any) => {
+        if (e.action == 'confirm' && e.value == 'trops') {
+          router.push({ path: url });
+        }
+      })
+      .finally(() => { });
+
+    //  router.push({ path: url });
     // if (import.meta.env.DEV) {
     //   proxy?.$modal.msgSuccess('测试环境直接进入');
     //   router.push({ path: url });

+ 2 - 1
src/views/train/multiple.vue

@@ -565,7 +565,8 @@ const getReady = () => {
       multipleItemRefList.value[i].getStopFace();
     }
   }
-  speckText("预备2");
+  //speckText("预备2");
+  speckText("各就位!预备!");
   time.value.ready = 6;
   timerManager.value.readyTimer = setInterval(() => {
     time.value.ready--;