diff --git a/components/sl-filter/filter-view.vue b/components/sl-filter/filter-view.vue index 8116cb1..1517906 100644 --- a/components/sl-filter/filter-view.vue +++ b/components/sl-filter/filter-view.vue @@ -5,8 +5,10 @@ - + {{detailItem.title}} @@ -16,16 +18,20 @@ {{item.detailTitle}} - + {{detailItem.title}} @@ -34,12 +60,14 @@ getGasStoreList } from '../../../Utils/Api.js'; import slFilter from '@/components/sl-filter/sl-filter.vue'; + import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; import uSearchBar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue'; let app = getApp(); export default { components: { slFilter, - uSearchBar + uSearchBar, + wybPopup }, data() { return { @@ -82,27 +110,22 @@ 'detailTitle': '', 'reflexTitle': true, 'defaultSelectedIndex': 0, - 'detailList': [ - { - 'detatitle': '汽油', - 'dataList': [{ - 'title': '90#', - 'value': '' - }, { - 'title': '92#', - 'value': '92#' - }, { - 'title': '95#', - 'value': '95#' - }, { - 'title': '98#', - 'value': '98#' - }, { - 'title': '101#', - 'value': '101#' - }] - }, - ] + 'detailList': [{ + 'title': '90#', + 'value': '' + }, { + 'title': '92#', + 'value': '92#' + }, { + 'title': '95#', + 'value': '95#' + }, { + 'title': '98#', + 'value': '98#' + }, { + 'title': '101#', + 'value': '101#' + }, ] }, { 'title': '距离', @@ -150,13 +173,34 @@ pageNum: 1, pageSize: 10, isNoMoreData: false, - searname:'' + searname: '' } }, onLoad() { this.getGasStoreList(); }, + onReachBottom() { + this.getGasStoreList(); + }, methods: { + //显示弹出 + showPopup(item) { + this.$refs.popup.show(); + this.typeId = item; + }, + search(res) { + uni.showToast({ + title: '搜索:' + res.value, + icon: 'none' + }) + }, + input(res) { + this.searname = res; + this.pageNum = 1; + this.isNoMoreData = false; + this.refuelList = []; + this.getGasStoreList(); + }, //查询列表 getGasStoreList() { uni.showLoading({ @@ -168,7 +212,7 @@ } let pagenum = this.pageNum; let params = { - storeName : this.searname, + storeName: this.searname, distance: '999', regionId: '110000', oilNoName: '92#', @@ -195,7 +239,7 @@ //跳转详情 goDetails(items) { uni.navigateTo({ - url: '../refuel-details/refuel-details?id='+items + url: '../refuel-details/refuel-details?id=' + items }) }, result(val) { @@ -211,6 +255,19 @@ background-color: #f6f6f6; } + .stuMenu { + width: 33.3%; + height: 30px; + line-height: 30px; + font-size: 14px; + color: #333333; + + .stuimg { + width: 10px; + vertical-align: middle; + } + } + .sear { margin-left: 10px; width: 50px; diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index bf8386b..da75662 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -7,7 +7,7 @@ - + {{ city }} @@ -407,6 +407,18 @@ console.log(err); }); }, + //搜索跳转 + toSearch() { + uni.navigateTo({ + url: '../../goods/HM-search/HM-search' + }) + }, + //跳转位置 + goPostion(){ + uni.navigateTo({ + url:'/pages/user/positioning/positioning' + }) + }, //扫码 toScan() { uni.scanCode({ diff --git a/pages/user/positioning/positioning.vue b/pages/user/positioning/positioning.vue new file mode 100644 index 0000000..aed2f80 --- /dev/null +++ b/pages/user/positioning/positioning.vue @@ -0,0 +1,64 @@ + + + + +