|
@@ -80,7 +80,7 @@
|
|
<!-- 工作记忆 WorkingMemory -->
|
|
<!-- 工作记忆 WorkingMemory -->
|
|
<working-memory v-if="gameFlag.WorkingMemory" @game-over="gameOver" />
|
|
<working-memory v-if="gameFlag.WorkingMemory" @game-over="gameOver" />
|
|
|
|
|
|
- <cocos-dialog v-if="gameFlag.CocosDialog" :code="cocosType" @game-over="gameOver" />
|
|
|
|
|
|
+ <cocos-dialog v-if="gameFlag.CocosDialog" :code="cocosType" :url="cocosUrl" @game-over="gameOver" />
|
|
|
|
|
|
<voice-imp ref="VoiceImpRef" />
|
|
<voice-imp ref="VoiceImpRef" />
|
|
</div>
|
|
</div>
|
|
@@ -133,6 +133,7 @@ const gameFlag = ref<StrKeyObj>({
|
|
SetTransferTest: false // 定式转移测验
|
|
SetTransferTest: false // 定式转移测验
|
|
})
|
|
})
|
|
const cocosType = ref('')
|
|
const cocosType = ref('')
|
|
|
|
+const cocosUrl = ref('')
|
|
const VoiceImpRef = ref()
|
|
const VoiceImpRef = ref()
|
|
|
|
|
|
const beginGame = () => {
|
|
const beginGame = () => {
|
|
@@ -148,11 +149,9 @@ const beginGame = () => {
|
|
tempPlanId = JSON.parse(currentPlanInfo).id
|
|
tempPlanId = JSON.parse(currentPlanInfo).id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ cocosUrl.value = `${window.location.origin}/cocos/${cocosType.value}/?userID=${userStore.user.id}&planID=${tempPlanId}`
|
|
VoiceImpRef.value.pauseIntro()
|
|
VoiceImpRef.value.pauseIntro()
|
|
- window.open(
|
|
|
|
- `${window.location.origin}/cocos/${cocosType.value}/?userID=${userStore.user.id}&planID=${tempPlanId}`,
|
|
|
|
- '_blank'
|
|
|
|
- )
|
|
|
|
|
|
+ gameFlag.value.CocosDialog = true
|
|
} else {
|
|
} else {
|
|
VoiceImpRef.value.pauseIntro()
|
|
VoiceImpRef.value.pauseIntro()
|
|
gameFlag.value[props.gameInfo.code] = true
|
|
gameFlag.value[props.gameInfo.code] = true
|