Pārlūkot izejas kodu

增加眼动训练两个游戏的支持

JutarryWu 1 nedēļu atpakaļ
vecāks
revīzija
4a32afc8f6

BIN
public/static/voice/game/introduce/31.mp3


BIN
public/static/voice/game/introduce/32.mp3


+ 3 - 1
src/views/gameCenter/components/Introduction/index.vue

@@ -154,7 +154,9 @@ const beginGame = () => {
   if (props.gameInfo.code?.indexOf('Cocos-') !== -1 || props.gameInfo.typeId === '7') {
     cocosType.value =
       props.gameInfo.code?.indexOf('Cocos-') !== -1 ? <string>props.gameInfo.code?.split('-')[1] : props.gameInfo.code
-    cocosUrl.value = `${window.location.origin}/cocos/${cocosType.value}/?userID=${userStore.user.id}&planID=${tempPlanId}`
+    cocosUrl.value = `${window.location.origin}/${props.gameInfo.code?.indexOf('Cocos-') !== -1 ? 'cocos' : 'jquery'}/${cocosType.value}/?userID=${userStore.user.id}&planID=${tempPlanId}`
+    console.log(cocosUrl.value)
+    debugger
     VoiceImpRef.value.pauseIntro()
     gameFlag.value.CocosDialog = true
   } else {