From 90b0218652f797d2c22305f4de007b20681ed4a7 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 07 十月 2023 17:17:15 +0800 Subject: [PATCH] 代码更新 --- src/components/poplayer/location.vue | 29 ++++++++++++++++++----------- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/components/poplayer/location.vue b/src/components/poplayer/location.vue index 4efa550..52e990e 100644 --- a/src/components/poplayer/location.vue +++ b/src/components/poplayer/location.vue @@ -5,20 +5,25 @@ class="close" @click.stop="closehandle" ></div> - <!-- <div class="title">鐐逛綅璇︽儏</div> --> <div class="content"> - <div class="ssdw">{{ state.list[KEY["鎵�灞炲崟浣�"]] }}</div> - <div class="lxr">鑱旂郴浜猴細{{ state.list[KEY["鑱旂郴浜�"]] }}</div> - <div class="dz">鍦板潃锛歿{ state.list[KEY["鍦板潃"]] }}</div> - <!-- <div class="con-item" v-for="(item, index) in KEY" :key="index"> - <span class="name">{{ index }}锛�</span> - <span class="value">{{ state.list[item] }}</span> - </div> --> + <div class="ssdw">{{ state.list.name }}</div> + + <div + class="lxr" + v-if=" state.list.address" + >鍦板潃锛歿{ state.list.address }}</div> + <div + class="lxr" + v-if=" state.list.code" + >鍦板潡缂栧彿锛歿{ state.list.code }}</div> + <div + class="lxr" + v-if=" state.list.area" + >鍦板潡闈㈢Н锛歿{ state.list.area }} 骞虫柟绫�</div> </div> </div> </div> </template> - <script> import store from "@/utils/store"; import keys from "@/utils/poiKeys"; @@ -35,7 +40,7 @@ }, data() { return { - state: store.Poplayer, + state: store.localLayer, KEY: {}, }; }, @@ -43,8 +48,10 @@ mounted() { if (this.list) { this.state.list = this.list; + } - this.KEY = keys[this.state.list.POITYPE]; + // this.KEY = keys[this.state.list.POITYPE]; + }, watch: { "state.list": function (val) { -- Gitblit v1.9.3