[baozhangchao] 3 年前
父节点
当前提交
80dad0408f
共有 5 个文件被更改,包括 12 次插入8 次删除
  1. 2
    2
      src/pages/game/game.js
  2. 1
    0
      src/pages/game/index.vue
  3. 7
    4
      src/pages/homePage.vue
  4. 1
    1
      src/utils/request.js
  5. 1
    1
      vue.config.js

+ 2
- 2
src/pages/game/game.js 查看文件

@@ -80,7 +80,7 @@ export default function game ({ el, center, onError, onSuccess, onBingo }) {
80 80
   // 目标轿厢与子弹轿厢的映射字典
81 81
   const mntMap = {}
82 82
 
83
-  
83
+
84 84
   // 修复一个单页面应用, 不能重复加载图片的bug
85 85
   Two.Texture.ImageRegistry = new Two.Registry();
86 86
 
@@ -410,5 +410,5 @@ function makeBg ({ two, center }) {
410 410
     bgBox.width = bgTexture.image.naturalWidth;
411 411
     bgBox.height = bgTexture.image.naturalHeight;
412 412
     bgBox.scale = scale;
413
-  }) 
413
+  })
414 414
 }

+ 1
- 0
src/pages/game/index.vue 查看文件

@@ -53,6 +53,7 @@ const gameInit = () => {
53 53
       }, 1000)
54 54
     },
55 55
     onSuccess: () => {
56
+      gameOver()
56 57
       successRef.value.play()
57 58
       firesRef.value.toggle()
58 59
       // alert('你真牛逼')

+ 7
- 4
src/pages/homePage.vue 查看文件

@@ -70,9 +70,9 @@ export default {
70 70
 //   }
71 71
 // }
72 72
 @keyframes scaleDraw {
73
-  0% {
74
-    transform: scale(0.9);
75
-  }
73
+  // 0% {
74
+  //   transform: scale(0.5);
75
+  // }
76 76
   25% {
77 77
     transform: scale(1.1);
78 78
   }
@@ -80,7 +80,7 @@ export default {
80 80
     transform: scale(0.9);
81 81
   }
82 82
 
83
-  75% {
83
+  100% {
84 84
     transform: scale(1);
85 85
   }
86 86
 }
@@ -92,6 +92,9 @@ export default {
92 92
   display: flex;
93 93
   justify-content: center;
94 94
   animation: scaleDraw 1.4s ease-out 1;
95
+  animation-delay: 0.2s;
96
+  transform: scale(0.5);
97
+  animation-fill-mode: forwards;
95 98
 
96 99
   > img {
97 100
     width: 85%;

+ 1
- 1
src/utils/request.js 查看文件

@@ -2,7 +2,7 @@
2 2
 import axios from 'axios'
3 3
 import { LoginUser, } from './api'
4 4
 import { getCode } from './initial'
5
-export const domain = process.env.NODE_ENV === 'development' ? '' : 'http://colmo-service.dianyang.njyunzhi.com'
5
+export const domain = process.env.NODE_ENV === 'development' ? '' : 'http://roundabout-service.honghe.njyunzhi.com'
6 6
 
7 7
 let token = ''
8 8
 export default function (url, options) {

+ 1
- 1
vue.config.js 查看文件

@@ -5,7 +5,7 @@ module.exports = defineConfig({
5 5
   devServer: {
6 6
     proxy: {
7 7
       '/api': {
8
-        target: "http://192.168.89.147:9000/",
8
+        target: "http://roundabout-service.honghe.njyunzhi.com/",
9 9
         // ws: true,
10 10
         changeOrigin: true,
11 11
         // pathRewrite: {