Jelajahi Sumber

准备改序列帧

任一存 2 tahun lalu
induk
melakukan
c81e2f4599

+ 30 - 0
.gitignore

@@ -0,0 +1,30 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+.DS_Store
+dist
+dist-ssr
+coverage
+*.local
+
+/cypress/videos/
+/cypress/screenshots/
+
+# Editor directories and files
+.vscode/
+!.vscode/extensions.json
+.idea
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+*.tsbuildinfo

+ 1 - 1
zhengquan/index.html

@@ -7,7 +7,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
   <!-- 本地开发 -->
-  <script src="http://127.0.0.1:8080/staticData/data.js"></script>
+  <script src="/staticData/data.js"></script>
   <!-- 打包配置 -->
   <!-- <script src="./staticData/data.js"></script> -->
 

+ 1 - 1
zhengquan/src/utils/https.ts

@@ -1,5 +1,5 @@
 // 本地开发
-const baseUrl = "http://127.0.0.1:8080/staticData";
+const baseUrl = "/staticData";
 
 // 线上开发
 // const baseUrl = './staticData'

+ 6 - 3
zhengquan/src/views/Scene/ScenePage.vue

@@ -71,6 +71,8 @@ onMounted(() => {
   // 机器人状态改变
   // greeting-招呼 idle-静默 talk-说话
   window.handleRobot = (state: string) => {
+    console.log('handleRobot!!!', state);
+    
     animalStat.value = state
     isReady.value = true
   }
@@ -261,15 +263,16 @@ onMounted(() => {
       height: 150px;
       background-position-x: 0;
       background-repeat: no-repeat;
-      animation: mouse-in 3s;
+      animation-name: xuliezhen-animation;
       animation-timing-function: steps(60);
-      animation-iteration-count: forwards;
+      animation-duration: 3s;
+      animation-iteration-count: infinite;
       transition-property: bottom;
       transition-duration: 0.4s;
       cursor: pointer;
     }
 
-    @keyframes mouse-in {
+    @keyframes xuliezhen-animation {
       from {
         background-position-x: 0;
       }

File diff ditekan karena terlalu besar
+ 2216 - 0
zhengquan/yarn.lock