|
@@ -11,7 +11,7 @@
|
|
<article v-if="isShowDesc">
|
|
<article v-if="isShowDesc">
|
|
<button
|
|
<button
|
|
class="close"
|
|
class="close"
|
|
- @click="isShowDesc = false"
|
|
|
|
|
|
+ @click="onClickCloseDesc"
|
|
/>
|
|
/>
|
|
<h2>{{ desc.name }}</h2>
|
|
<h2>{{ desc.name }}</h2>
|
|
<img
|
|
<img
|
|
@@ -58,12 +58,23 @@ export default {
|
|
|
|
|
|
const isShowDesc = ref(false)
|
|
const isShowDesc = ref(false)
|
|
const desc = reactive({})
|
|
const desc = reactive({})
|
|
|
|
+ function onClickCloseDesc() {
|
|
|
|
+ isShowDesc.value = false
|
|
|
|
+ gUnityInst.SendMessage('MainPanel', 'ResetCamera')
|
|
|
|
+ }
|
|
|
|
|
|
function onClickStar(idx) {
|
|
function onClickStar(idx) {
|
|
desc.name = rawData.value[idx].name
|
|
desc.name = rawData.value[idx].name
|
|
desc.detail = rawData.value[idx].description
|
|
desc.detail = rawData.value[idx].description
|
|
isShowDesc.value = true
|
|
isShowDesc.value = true
|
|
}
|
|
}
|
|
|
|
+ window.handleClickPlanet = function(id) {
|
|
|
|
+ console.log('click planet', id)
|
|
|
|
+ onClickStar(id)
|
|
|
|
+ }
|
|
|
|
+ window.handleMovedPlanet = function(id) {
|
|
|
|
+ console.log('moved planet', id)
|
|
|
|
+ }
|
|
|
|
|
|
const isShowLoadingMask = ref(true)
|
|
const isShowLoadingMask = ref(true)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -74,8 +85,11 @@ export default {
|
|
|
|
|
|
return {
|
|
return {
|
|
rawData,
|
|
rawData,
|
|
|
|
+
|
|
isShowDesc,
|
|
isShowDesc,
|
|
desc,
|
|
desc,
|
|
|
|
+ onClickCloseDesc,
|
|
|
|
+
|
|
onClickStar,
|
|
onClickStar,
|
|
|
|
|
|
isShowLoadingMask,
|
|
isShowLoadingMask,
|