|
@@ -14,10 +14,12 @@ export default createStore({
|
|
haveShownSceneEffect: [false, false, false],
|
|
haveShownSceneEffect: [false, false, false],
|
|
relicDataRaw: projectData['长轴展示文物清单'],
|
|
relicDataRaw: projectData['长轴展示文物清单'],
|
|
hotRelicDataRaw: projectData['宝盒文物清单'],
|
|
hotRelicDataRaw: projectData['宝盒文物清单'],
|
|
- iframeAttrs: null
|
|
|
|
|
|
+ iframeAttrs: null,
|
|
|
|
+ gameEntryPageAttrs: null,
|
|
},
|
|
},
|
|
getters: {
|
|
getters: {
|
|
iframeAttrs: (state) => state.iframeAttrs,
|
|
iframeAttrs: (state) => state.iframeAttrs,
|
|
|
|
+ gameEntryPageAttrs: (state) => state.gameEntryPageAttrs,
|
|
catalogTopology: (state) => {
|
|
catalogTopology: (state) => {
|
|
if (!state.panoData || !state.panoData.catalogRoot || !state.panoData.catalogs) {
|
|
if (!state.panoData || !state.panoData.catalogRoot || !state.panoData.catalogs) {
|
|
return
|
|
return
|
|
@@ -78,6 +80,9 @@ export default createStore({
|
|
setIframeAttrs(state, value) {
|
|
setIframeAttrs(state, value) {
|
|
state.iframeAttrs = value
|
|
state.iframeAttrs = value
|
|
},
|
|
},
|
|
|
|
+ setGameEntryPageAttrs(state, value) {
|
|
|
|
+ state.gameEntryPageAttrs = value
|
|
|
|
+ },
|
|
setPanoData(state, value) {
|
|
setPanoData(state, value) {
|
|
state.panoData = value
|
|
state.panoData = value
|
|
},
|
|
},
|
|
@@ -98,9 +103,15 @@ export default createStore({
|
|
openIframePage({ commit }, attrs) {
|
|
openIframePage({ commit }, attrs) {
|
|
commit('setIframeAttrs', attrs)
|
|
commit('setIframeAttrs', attrs)
|
|
},
|
|
},
|
|
|
|
+ openGameEntryPage({ commit }, attrs) {
|
|
|
|
+ commit('setGameEntryPageAttrs', attrs)
|
|
|
|
+ },
|
|
closeIframePage({ commit }) {
|
|
closeIframePage({ commit }) {
|
|
commit('setIframeAttrs', null)
|
|
commit('setIframeAttrs', null)
|
|
},
|
|
},
|
|
|
|
+ closeGameEntryPage({ commit }) {
|
|
|
|
+ commit('setGameEntryPageAttrs', null)
|
|
|
|
+ },
|
|
},
|
|
},
|
|
modules: {
|
|
modules: {
|
|
}
|
|
}
|