From fbb6b00cba7163ca28d3a892d3d5b536ce959c54 Mon Sep 17 00:00:00 2001 From: LuoShijie Date: Sat, 18 Nov 2023 18:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=97=E4=B8=96=E6=9D=B0=E4=BF=AE=E6=94=B9Sh?= =?UTF-8?q?opList=E5=92=8CSearchList=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DropDown/DropDown.vue | 21 ++---- components/SearchShopList/SearchShopList.vue | 64 ++++++++++--------- .../SearchShopListItem/SearchShopListItem.vue | 42 ++++++------ components/ShowShopList/ShowShopList.vue | 36 +++++------ .../ShowShopListItem/ShowShopListItem.vue | 4 +- pages/index/NavBarPages/czxx/czxx.vue | 2 +- pages/index/NavBarPages/xmzs/xmzs.vue | 2 +- 7 files changed, 78 insertions(+), 93 deletions(-) diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue index 12c017a..b37b506 100644 --- a/components/DropDown/DropDown.vue +++ b/components/DropDown/DropDown.vue @@ -30,23 +30,16 @@ components: { DropDownItem }, - props: { - postlist: { - type: Array, - default () { - return [ - ['全部', '餐饮美食', '百货超市', '美容美发'], - ['区域1', '区域2', '区域3', '区域4'], - ['100m2', '200m2', '300m2'], - ['附近的', '最新发布的', '其他'] - ] - } - } - }, data() { return { title: ['行业', '区域', '面积', '筛选'], activeIndex: -1, + postlist: [ + ['全部', '餐饮美食', '百货超市', '美容美发'], + ['区域1', '区域2', '区域3', '区域4'], + ['小于50m²', '50-200m²', '200-600m²', '600-800m²', '800-1000m²', '1000m²以上'], + ['附近的', '最新发布的', '其他'] + ] }; }, computed: { @@ -56,7 +49,7 @@ }, created() { this.postlist[0]=JSON.parse(uni.getStorageSync('classList')) - // this.postlist[1]=JSON.parse(uni.getStorageSync('regionList')) + this.postlist[1]=JSON.parse(uni.getStorageSync('regionList')) }, methods: { changeActiveIndex(index) { diff --git a/components/SearchShopList/SearchShopList.vue b/components/SearchShopList/SearchShopList.vue index 3cdf75f..e4c6e35 100644 --- a/components/SearchShopList/SearchShopList.vue +++ b/components/SearchShopList/SearchShopList.vue @@ -13,13 +13,18 @@