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 @@