From 580f7e483fb7d0b7bbefc3dde2ec3779b45b5658 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Fri, 1 Dec 2023 16:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pagesRefuel/pagesRefuel/index.vue | 66 +++++-------------- 1 file changed, 15 insertions(+), 51 deletions(-) diff --git a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue index 1963a4a35..c5e6ececc 100644 --- a/gasStation-uni/pagesRefuel/pagesRefuel/index.vue +++ b/gasStation-uni/pagesRefuel/pagesRefuel/index.vue @@ -12,58 +12,10 @@ - + - - + @@ -127,6 +79,9 @@ title: '', // 店铺列表信息 storeList:[], + list:[], + // 站点名 + storeName:"", map:{ lon:"", lat:"", @@ -144,6 +99,15 @@ }, methods: { + // 查询店铺信息 + queryStore(val){ + this.list = [] + this.storeList.forEach(item => { + if (item.store.name.includes(val.detail.value) || item.store.description.includes(val.detail.value)){ + this.list.push(item) + } + }) + }, // 获取当前经纬度信息 getLonLat(){ let _this = this; @@ -165,7 +129,7 @@ data: data, }).then((res)=>{ _this.storeList = res.data - console.log(res) + _this.list = _this.storeList }) }, goBack() {