From a77448eb072f10dd3827694140f87c3069b1dba4 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 07 十月 2023 11:14:40 +0800 Subject: [PATCH] 代码更新 --- src/components/poplayer/location.vue | 31 ++++++++++++++++++++----------- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/components/poplayer/location.vue b/src/components/poplayer/location.vue index 4efa550..c67b803 100644 --- a/src/components/poplayer/location.vue +++ b/src/components/poplayer/location.vue @@ -5,20 +5,27 @@ 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 v-if="state.list.POITYPE == 'dikuaixinxi'"> + <div class="dz"> + {{ state.list.name }} + </div> + <div class="dz"> + {{ state.list.yijilei }} + </div> + <div class="dz"> + {{ state.list.yongdixing }} + </div> + </div> + <div + v-else + class="dz" + >鍦板潃锛歿{ state.list.address }}</div> </div> </div> </div> </template> - <script> import store from "@/utils/store"; import keys from "@/utils/poiKeys"; @@ -35,7 +42,7 @@ }, data() { return { - state: store.Poplayer, + state: store.localLayer, KEY: {}, }; }, @@ -43,8 +50,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