diff --git a/src/App.vue b/src/App.vue index 84baeff..27ea797 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,256 +1,292 @@ + to { + transform: scale(0); + opacity: 0; + } + } + + .scale-out { + animation: scaleOut 0.3s ease-out forwards; + transform-origin: center center; + } + + @keyframes rotate { + from { + transform: rotate(0deg); + } + + to { + transform: rotate(360deg); + } + } + + @keyframes pumpIn { + from { + transform: scale(2); + } + + to { + transform: scale(1); + } + } + + .pump-in { + animation: pumpIn 0.3s ease-out forwards; + transform-origin: center center; + } + + .share-canvas { + width: 300px; + height: 530px; + position: absolute; + top: -1000px; + left: 0; + } + + .truncate { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .modal { + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + .user-row { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 15px; + padding-top: 7px; + position: relative; + } + + .half-time-tip { + width: 100%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + + .half-time-tip>text:last-child { + margin-top: 20px; + color: #fff9; + } + + .see-more { + display: flex; + align-items: center; + justify-content: center; + margin-top: 20rpx; + } + + .see-more>text { + color: #39a8ff; + font-size: 13px; + } + + .see-more>image { + width: 15px; + } + + @font-face { + font-family: "DINCondensed"; + src: url("https://static.shelingxingqiu.com/font/DIN-Condensed-Bold-2.ttf") format("truetype"); + font-weight: 700; + font-style: normal; + font-display: swap; + } + \ No newline at end of file diff --git a/src/apis.js b/src/apis.js index 3d3c697..5de830c 100644 --- a/src/apis.js +++ b/src/apis.js @@ -6,8 +6,8 @@ try { switch (envVersion) { case "develop": // 开发版 - // BASE_URL = "http://192.168.1.30:8000/api/shoot"; - BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; + BASE_URL = "http://localhost:8000/api/shoot"; + // BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; break; case "trial": // 体验版 BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; diff --git a/src/audioManager.js b/src/audioManager.js index 1e8f3de..3460d75 100644 --- a/src/audioManager.js +++ b/src/audioManager.js @@ -40,25 +40,25 @@ export const audioFils = { 未上靶: "https://static.shelingxingqiu.com/attachment/2025-11-12/de6n45o3tsm1v4unam.mp3", "1环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin1aq7gxjih5l.mp3", + "https://static.shelingxingqiu.com/shootaudio/1%E7%8E%AF.mp3", "2环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin64tdgx2s4at.mp3", + "https://static.shelingxingqiu.com/shootaudio/2%E7%8E%AF.mp3", "3环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxinlmf87vt8z65.mp3", + "https://static.shelingxingqiu.com/shootaudio/3%E7%8E%AF.mp3", "4环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxinniv97sx0q9u.mp3", + "https://static.shelingxingqiu.com/shootaudio/4%E7%8E%AF.mp3", "5环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin7j01kknpb7k.mp3", + "https://static.shelingxingqiu.com/shootaudio/5%E7%8E%AF.mp3", "6环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin4syy1015rtq.mp3", + "https://static.shelingxingqiu.com/shootaudio/6%E7%8E%AF.mp3", "7环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin3iz3dvmjdai.mp3", + "https://static.shelingxingqiu.com/shootaudio/7%E7%8E%AF.mp3", "8环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxinnjd42lhpfiw.mp3", + "https://static.shelingxingqiu.com/shootaudio/8%E7%8E%AF.mp3", "9环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxin69nj1xh7yfz.mp3", + "https://static.shelingxingqiu.com/shootaudio/9%E7%8E%AF.mp3", "10环": - "https://static.shelingxingqiu.com/attachment/2025-09-17/dcutxinnvsx0tt7ksa.mp3", + "https://static.shelingxingqiu.com/shootaudio/10%E7%8E%AF.mp3", X环: "https://static.shelingxingqiu.com/attachment/2026-02-09/dga8puwekpe2gmtbu4.mp3", 向上调整: "https://static.shelingxingqiu.com/attachment/2025-11-12/de6ellf5pfvu3l8dhr.mp3", @@ -80,6 +80,10 @@ export const audioFils = { "https://static.shelingxingqiu.com/attachment/2025-11-13/de7kzzllq0futwynso.mp3", 练习开始: "https://static.shelingxingqiu.com/attachment/2025-11-14/de88w0lmmt43nnfmoi.mp3", + 射箭声音: + "https://static.shelingxingqiu.com/shootaudio/%E6%9C%AA%E4%B8%8A%E9%9D%B6.mp3", + 命中: + "https://static.shelingxingqiu.com/shootaudio/%E5%91%BD%E4%B8%AD.mp3" }; // 版本控制日志函数 diff --git a/src/websocket.js b/src/websocket.js index 49046fe..8489783 100644 --- a/src/websocket.js +++ b/src/websocket.js @@ -14,8 +14,8 @@ function createWebSocket(token, onMessage) { switch (envVersion) { case "develop": // 开发版 - // url = "ws://192.168.1.30:8000/socket"; - url = "wss://apitest.shelingxingqiu.com/socket"; + url = "ws://localhost:8000/socket"; + // url = "wss://apitest.shelingxingqiu.com/socket"; break; case "trial": // 体验版 url = "wss://apitest.shelingxingqiu.com/socket";