From 1d0db2268bc114753f1f2b0fce056cfbaf519a64 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 10 十月 2023 11:06:22 +0800 Subject: [PATCH] 代码更新 --- src/components/poplayer/location.vue | 29 +++++++++++------------------ 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/src/components/poplayer/location.vue b/src/components/poplayer/location.vue index 52e990e..4efa550 100644 --- a/src/components/poplayer/location.vue +++ b/src/components/poplayer/location.vue @@ -5,25 +5,20 @@ class="close" @click.stop="closehandle" ></div> + <!-- <div class="title">鐐逛綅璇︽儏</div> --> <div class="content"> - <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 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> </div> </div> </template> + <script> import store from "@/utils/store"; import keys from "@/utils/poiKeys"; @@ -40,7 +35,7 @@ }, data() { return { - state: store.localLayer, + state: store.Poplayer, KEY: {}, }; }, @@ -48,10 +43,8 @@ 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