|
@@ -186,6 +186,22 @@ export default {
|
|
|
isShowDesc.value = true
|
|
|
}
|
|
|
|
|
|
+ function focusStar(idx) {
|
|
|
+ desc.name = rawData.value[idx].name
|
|
|
+ desc.detail = rawData.value[idx].description
|
|
|
+ isShowDesc.value = true
|
|
|
+ window.gUnityInst.SendMessage('Page4', 'OnClickPlaneId', idx + 1)
|
|
|
+ }
|
|
|
+ onMounted(async () => {
|
|
|
+ const url = window.location.href
|
|
|
+ if (url.includes('id=')) {
|
|
|
+ const id = url.split('id=')[1]
|
|
|
+ // console.log('ppppppppppppppppp', id)
|
|
|
+ setTimeout(() => {
|
|
|
+ focusStar(Number(id) - 1)
|
|
|
+ }, 400)
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
// 详情数据
|
|
|
const G4info = ref({
|
|
@@ -207,7 +223,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
window.handleClickPlanet = function (id) {
|
|
|
-
|
|
|
G4info.value = {
|
|
|
company: [],
|
|
|
person: [],
|
|
@@ -221,20 +236,6 @@ export default {
|
|
|
onClickStar(id - 1)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- onMounted(async () => {
|
|
|
- const url = window.location.href
|
|
|
- if (url.includes('id=')) {
|
|
|
- const id = url.split('id=')[1]
|
|
|
- // console.log('ppppppppppppppppp', id)
|
|
|
- setTimeout(() => {
|
|
|
- onClickStar(Number(id) - 1)
|
|
|
- }, 400)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
window.handleMovedPlanet = function (id) {
|
|
|
console.log('moved planet', id)
|
|
|
}
|