[baozhangchao] 3 jaren geleden
bovenliggende
commit
80dad0408f
5 gewijzigde bestanden met toevoegingen van 12 en 8 verwijderingen
  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 Bestand weergeven

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

+ 1
- 0
src/pages/game/index.vue Bestand weergeven

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

+ 7
- 4
src/pages/homePage.vue Bestand weergeven

70
 //   }
70
 //   }
71
 // }
71
 // }
72
 @keyframes scaleDraw {
72
 @keyframes scaleDraw {
73
-  0% {
74
-    transform: scale(0.9);
75
-  }
73
+  // 0% {
74
+  //   transform: scale(0.5);
75
+  // }
76
   25% {
76
   25% {
77
     transform: scale(1.1);
77
     transform: scale(1.1);
78
   }
78
   }
80
     transform: scale(0.9);
80
     transform: scale(0.9);
81
   }
81
   }
82
 
82
 
83
-  75% {
83
+  100% {
84
     transform: scale(1);
84
     transform: scale(1);
85
   }
85
   }
86
 }
86
 }
92
   display: flex;
92
   display: flex;
93
   justify-content: center;
93
   justify-content: center;
94
   animation: scaleDraw 1.4s ease-out 1;
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
   > img {
99
   > img {
97
     width: 85%;
100
     width: 85%;

+ 1
- 1
src/utils/request.js Bestand weergeven

2
 import axios from 'axios'
2
 import axios from 'axios'
3
 import { LoginUser, } from './api'
3
 import { LoginUser, } from './api'
4
 import { getCode } from './initial'
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
 let token = ''
7
 let token = ''
8
 export default function (url, options) {
8
 export default function (url, options) {

+ 1
- 1
vue.config.js Bestand weergeven

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