From 81773ab04fd259e893c2d7f08dbdc9be772d01c4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 21 Dec 2021 17:18:45 +0800
Subject: [PATCH] +,请求数据,弹框显示,优化代码长度

---
 src/store/modules/popupParams.js |   44 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/popupParams.js b/src/store/modules/popupParams.js
index 7b1ccc1..997c1e2 100644
--- a/src/store/modules/popupParams.js
+++ b/src/store/modules/popupParams.js
@@ -1,7 +1,16 @@
 const popupParams = {
     state: {
         popupBgUrl: null,
-        pupupQRUrl: null
+        pupupQRUrl: null,
+        terminus: null,
+        startingPoint: null,
+        pointPosition: null,
+        stateName: null,
+        siteName: null,
+        introduceText: null,
+        panoramaUrl: null,
+        detailsPopup: false,
+        panoramaPopup: false
     },
     mutations: {
         SET_POPUPBGURL(state, popupBgUrl) {
@@ -9,6 +18,39 @@
         },
         SET_POPUPQRURL(state, pupupQRUrl) {
             state.pupupQRUrl = pupupQRUrl
+        },
+        SET_TERMINUS (state, terminus) {
+            state.terminus = terminus
+        },
+        SET_STARTINGPOINT (state, startingPoint) {
+            state.startingPoint = startingPoint
+        },
+        SET_POINTPOSITION (state, pointPosition) {
+            state.pointPosition = pointPosition
+        },
+        SET_STATENAME (state, stateName) {
+            state.stateName = stateName
+        },
+        SET_SITENAME (state, siteName) {
+            state.siteName = siteName
+        },
+        SET_INTRODUCETEXT (state, introduceText) {
+            state.introduceText = introduceText
+        },
+        SET_PANORAMAURL (state, panoramaUrl) {
+            state.panoramaUrl = panoramaUrl
+        },
+        SET_DETAILSPOPUP (state, detailsPopup) {
+            state.detailsPopup = detailsPopup
+        },
+        SET_PANORAMAPOPUP (state, panoramaPopup) {
+            state.panoramaPopup = panoramaPopup
+        },
+
+        CLEAR_ALL (state, param) {
+            state.siteName = param
+            state.introduceText = param
+            state.panoramaUrl = param
         }
     },
     actions: {

--
Gitblit v1.9.3