From 1cc8d070b5e05ed334598c5a06b8261622f77924 Mon Sep 17 00:00:00 2001 From: luJianJun <2587063613@qq.com> Date: Tue, 18 Jul 2023 18:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/homeImage/Mycollect.png | Bin 0 -> 8767 bytes src/assets/homeImage/seachIcon.svg | 11 + src/components/pageTopBar/pageTopBar.vue | 2 +- src/components/seachModule/seachModule.vue | 7 + src/components/seachPage/input.vue | 223 +++++++++++++++++++ src/components/seachPage/select.vue | 0 src/components/selectTabBox/selectTabBox.vue | 77 ++++--- src/main.js | 2 +- src/router/index.js | 25 ++- src/views/housingView/needHousing.vue | 4 +- src/views/housingView/person.vue | 1 + src/views/seachIndex.vue | 190 ++++++++++++++++ 12 files changed, 509 insertions(+), 33 deletions(-) create mode 100644 src/assets/homeImage/Mycollect.png create mode 100644 src/assets/homeImage/seachIcon.svg create mode 100644 src/components/seachPage/input.vue create mode 100644 src/components/seachPage/select.vue create mode 100644 src/views/seachIndex.vue diff --git a/src/assets/homeImage/Mycollect.png b/src/assets/homeImage/Mycollect.png new file mode 100644 index 0000000000000000000000000000000000000000..21dcc0aea8cfb9cb85773e1d8914c13a95343644 GIT binary patch literal 8767 zcmbt)Wl&sA&@QsTLU4B$_aMO~u(-Rsvp@pD0>N2qaSsw)g1ZI{zCeIQLI@HhcyI^= zzx&p$y7&M0{pizkX1dSxbl04zetKecw3P91sButGQ1Db$6!efB{vQD`kaitukm1Oe!Xug#!fRPM5n_=xG_%zL)Zwo1xbBjk zi4q<%GMztqHH#&uF88&WcLmVEw|~s4?G!-}3hqheBwSdYqj=fJI~vB z`pX{6`a=l2_|3O(qOYEFo`YJF3ExnnDuof*0RE@Ufe4sJ_VsCp2o8tuTNxS(vxtfL z166BkYF23J>HEal+4sVFd_ICAP)HOorB(Y64i1K7qn$xc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}5A_Z@%WG0dm6!E^X zz`)$?S1Cc}d3h2(`-o9wx|5}gJ&VDzpe-4>R?bOp?I<)k?#N04LzgYrGYY>Hj&86(edqRVRZ6B`8v=I*fRP0ZDP73m9m;JQYS*%J% lh!E5HU)_3G7Dsy~Fmz(~!6F&${_paJs-l)cy_^m7{{XtqRPX=* literal 0 HcmV?d00001 diff --git a/src/assets/homeImage/seachIcon.svg b/src/assets/homeImage/seachIcon.svg new file mode 100644 index 0000000..6c3930b --- /dev/null +++ b/src/assets/homeImage/seachIcon.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/pageTopBar/pageTopBar.vue b/src/components/pageTopBar/pageTopBar.vue index 66a6431..4cb8ba9 100644 --- a/src/components/pageTopBar/pageTopBar.vue +++ b/src/components/pageTopBar/pageTopBar.vue @@ -39,7 +39,7 @@ -
+
diff --git a/src/components/seachModule/seachModule.vue b/src/components/seachModule/seachModule.vue index b987d35..f6e8dc8 100644 --- a/src/components/seachModule/seachModule.vue +++ b/src/components/seachModule/seachModule.vue @@ -176,6 +176,13 @@ let setSeachConditions = (type, data) => { data.indexOf('iselevator')!==-1?seachAllType['iselevator']=1:seachAllType['iselevator']=0 data.indexOf('issunshinearea')!==-1?seachAllType['issunshinearea']=1:seachAllType['issunshinearea']=0 } + if(type==='school'){ + seachAllType.location=[] + } + if(type==='location'){ + seachAllType.school='' + } + console.log('seachAllType',seachAllType) getDataList(seachAllType) } diff --git a/src/components/seachPage/input.vue b/src/components/seachPage/input.vue new file mode 100644 index 0000000..a6da492 --- /dev/null +++ b/src/components/seachPage/input.vue @@ -0,0 +1,223 @@ + + + + \ No newline at end of file diff --git a/src/components/seachPage/select.vue b/src/components/seachPage/select.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/components/selectTabBox/selectTabBox.vue b/src/components/selectTabBox/selectTabBox.vue index 94838ab..5af0894 100644 --- a/src/components/selectTabBox/selectTabBox.vue +++ b/src/components/selectTabBox/selectTabBox.vue @@ -7,9 +7,9 @@
按区域
+ @click="setSelectPosition('region')">按区域
按学校
+ @click="setSelectPosition('school')">按学校
{{ item.name }}
 >  -
+
{{ selectData.data && selectData.data.length === 0 ? '不限' : selectData.data && selectData.data.length @@ -100,8 +100,7 @@
+ :class="{ 'btn-check': hireTypeObj.hireId === item.title }" @click="setHireId(item)"> {{ item.title }} > {{ hireTypeObj.title || '不限' }}
{{ + v-if="item.title === '不限'" @click="setHireId(item)">{{ item.title }}
@@ -322,6 +321,10 @@ let setSchoolData = () => { let setSchoolObj = (obj) => { schoolSelectObj.id = obj.id schoolSelectObj.title = obj.title + selectTabCheck.id = ''; + selectTabCheck.title = '不限' + selectTabCheck.data = []; + selectData.data = [] setSeachCondition('school', obj.id) } @@ -340,30 +343,44 @@ let nextSchoolData = () => { schoolData.next() } +//设置状态 +let setSelectPosition = (type) => { + selectPosition.value = type + // if (type === 'school') { + // selectTabCheck.id = ''; + // selectTabCheck.title = '不限' + // selectTabCheck.data = []; + // selectData.data = [] + // } else { + // schoolSelectObj.id = '' + // schoolSelectObj.title = '' + // } +} + //点击区域/学校选项 -let clearSelectTabCheck=ref(true) +let clearSelectTabCheck = ref(true) let setSelectData = (id, data = [], title) => { showSelect.value = true - console.log(id ,selectTabCheck.id, data, title) - - if (id === selectTabCheck.id){ - clearSelectTabCheck.value=false + if (id === selectTabCheck.id) { + clearSelectTabCheck.value = false return - } - clearSelectTabCheck.value=true + } + clearSelectTabCheck.value = true selectTabCheck.id = id; selectTabCheck.title = title selectTabCheck.data = data; selectData.data = [] - if(id===''){ + schoolSelectObj.id = '' + schoolSelectObj.title = '' + if (id === '') { setSeachCondition('location', []) } } //取消按钮 let closeSeach = () => { - console.log(selectTabCheck,selectData) + // console.log(selectTabCheck,selectData) showSelect.value = false - clearSelectTabCheck.value=false + clearSelectTabCheck.value = false } //确认按钮 let selectSeach = (data = []) => { @@ -377,6 +394,11 @@ let selectSeach = (data = []) => { }) selectData.data = arr showSelect.value = false + schoolSelectObj.id = '' + schoolSelectObj.title = '' + if (data.length === 0 && selectTabCheck.id) { + data.push(selectTabCheck.id) + } setSeachCondition('location', data) } @@ -420,12 +442,16 @@ let setHireTypeArr = (type, id) => { let hireTypeObj = reactive({ id: '', title: '', hireId: '不限' })//出租方式所选 -let setHireId = (title) => { - if (hireTypeObj.hireId != title) { +let setHireId = (item) => { + console.log(item) + if (hireTypeObj.hireId != item.title) { hireTypeObj.id = '' hireTypeObj.title = '' } - hireTypeObj.hireId = title + if (item.hireType.length === 0) { + setSeachCondition('types', '') + } + hireTypeObj.hireId = item.title } let dropdownCommand = (obj) => { @@ -442,9 +468,9 @@ let setRent = () => { } //清空租金 -let cleanRent=()=>{ - rentObj.min='' - rentObj.max='' +let cleanRent = () => { + rentObj.min = '' + rentObj.max = '' setSeachCondition('rent', rentObj) } @@ -554,8 +580,9 @@ img { .housing-pd { padding: 5px 0 25px 0; } -.pd-t-25{ - padding-top:25px; + +.pd-t-25 { + padding-top: 25px; } .housing-pd-25 { @@ -894,7 +921,7 @@ img { } .select-num { - padding:0px 10px; + padding: 0px 10px; background: inherit; background-color: rgba(80, 227, 194, 1); border: none; diff --git a/src/main.js b/src/main.js index 0bd5147..16836e1 100644 --- a/src/main.js +++ b/src/main.js @@ -22,7 +22,7 @@ import { ElMessage, ElSpace, ElSkeleton, - ElSkeletonItem, + ElSkeletonItem // 其他需要的组件 } from 'element-plus' diff --git a/src/router/index.js b/src/router/index.js index 51f6296..d945a11 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -46,16 +46,33 @@ const routes = [ }, {//个人房源 path: '/personHousing', - component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/person.vue') + component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/person.vue'), + meta:{ + title:'个人房源' + } }, {//中介房源 path: '/intermediaryHousing', - component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/intermediary.vue') + component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/intermediary.vue'), + meta:{ + title:'中介房源' + } }, {//求房源 path: '/needHousing', - component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/needHousing.vue') - }, { + component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/needHousing.vue'), + meta:{ + title:'求房源' + } + }, + {//搜索 + path:'/seachPage', + component:()=> import(/* webpackChunkName: "seachPage" */ '@/views/seachIndex.vue'), + meta:{ + title:'搜索' + } + }, + { path: "/apartment", component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/apartment.vue'), meta: { diff --git a/src/views/housingView/needHousing.vue b/src/views/housingView/needHousing.vue index 5cca5d3..34743ad 100644 --- a/src/views/housingView/needHousing.vue +++ b/src/views/housingView/needHousing.vue @@ -53,8 +53,8 @@ let setSeachSelectData = (data) => { ...data } loading.value = true - // console.log('seachSelectData',seachSelectData.data) - // return + console.log('seachSelectData',seachSelectData.data) + return getDataList(seachSelectData.data) } diff --git a/src/views/housingView/person.vue b/src/views/housingView/person.vue index 7738018..bc1d7ed 100644 --- a/src/views/housingView/person.vue +++ b/src/views/housingView/person.vue @@ -48,6 +48,7 @@ let setSeachSelectData = (data) => { seachSelectData.data = { ...data } + // console.log(data) loading.value = true getDataList(seachSelectData.data) } diff --git a/src/views/seachIndex.vue b/src/views/seachIndex.vue new file mode 100644 index 0000000..4c94798 --- /dev/null +++ b/src/views/seachIndex.vue @@ -0,0 +1,190 @@ + + + + + \ No newline at end of file