From d9d7cb36dec70acb8b900e0161472acb2eabee54 Mon Sep 17 00:00:00 2001
From: dengj <209192278@qq.com>
Date: Wed, 15 Nov 2023 15:49:30 +0800
Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E5=8C=BA=E5=9F=9F?=
=?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E5=8F=8A=E5=AE=8C=E5=96=84=E5=AE=9A=E4=BD=8D=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/DropDown/DropDown.vue | 61 +++++-----
components/DropDown/DropDownItem.vue | 106 ++++++++++--------
components/InputAndSwiper/InputAndSwiper.vue | 88 +--------------
pages/index/index.vue | 102 ++++++++++++++++-
.../publish/publishAddress/publishAddress.vue | 3 +-
.../publishInvestment/publishInvestment.vue | 3 +-
pages/publish/publishRent/publishRent.vue | 3 +-
.../publishTransfer/publishTransfer.vue | 3 +-
service/request.js | 8 +-
9 files changed, 203 insertions(+), 174 deletions(-)
diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue
index 759b222..fbb3786 100644
--- a/components/DropDown/DropDown.vue
+++ b/components/DropDown/DropDown.vue
@@ -1,26 +1,21 @@
-
+
-
+
{{item}}
-
+
-
+
-
+
-
+
@@ -31,21 +26,26 @@
*/
import DropDownItem from "./DropDownItem.vue"
export default {
- name:"DropDown",
+ name: "DropDown",
components: {
DropDownItem
},
props: {
postlist: {
- type:Array,
- default(){
- return [['全部', '餐饮美食', '百货超市', '美容美发'],['区域1', '区域2', '区域3', '区域4'],['100m2','200m2','300m2'],['附近的', '最新发布的', '其他']]
+ type: Array,
+ default () {
+ return [
+ ['全部', '餐饮美食', '百货超市', '美容美发'],
+ ['区域1', '区域2', '区域3', '区域4'],
+ ['100m2', '200m2', '300m2'],
+ ['附近的', '最新发布的', '其他']
+ ]
}
}
},
data() {
return {
- title: ['行业','区域','面积','筛选'],
+ title: ['行业', '区域', '面积', '筛选'],
activeIndex: -1,
// postlist: [['全部', '餐饮美食', '百货超市', '美容美发'],['区域1', '区域2', '区域3', '区域4'],['100m2','200m2','300m2'],['附近的', '最新发布的', '其他']]
};
@@ -55,29 +55,33 @@
return this.postlist[this.activeIndex]
}
},
+ created() {
+ this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
+ },
methods: {
- changeActiveIndex(index){
- if(this.activeIndex === index){
+ changeActiveIndex(index) {
+ if (this.activeIndex === index) {
this.activeIndex = -1;
- }else
+ } else
this.activeIndex = index
},
cancelDrop() {
console.log("取消遮罩");
this.activeIndex = -1;
}
- },
-
+ }
}