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() {