手动输入区间
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="page-wrap">
|
||||
<view class="main">
|
||||
<view class="logo">
|
||||
<image src="https://file.wsdns.cn/20230801/84480e0c65b044ebb869f8f2754bc0b1.png" mode="widthFix"></image>
|
||||
<image src="@/static/logo-chang.png" mode="widthFix"></image>
|
||||
<!-- <image src="https://oss.jimeigroup.cn/static/flash-logo-text.png" mode="widthFix"></image> -->
|
||||
<!-- <text class="logo-name">
|
||||
爱尚家找房
|
||||
|
||||
@@ -9,16 +9,18 @@
|
||||
</view>
|
||||
<view class="search-tools">
|
||||
<view class="region">
|
||||
<uni-data-select class="select-width" v-model="where.region" :localdata="region" placeholder="区域"
|
||||
<uni-data-select class="select-width" v-model="where.keywords" :localdata="houseArea" placeholder="区域"
|
||||
@change="onSearch"></uni-data-select>
|
||||
</view>
|
||||
<view class="region">
|
||||
<uni-data-select class="select-width" v-model="where.priceScene" :localdata="price" placeholder="价格区间"
|
||||
@change="onSearch"></uni-data-select>
|
||||
<u--input class="where-input" v-model="where.priceScene" type="number" @confirm="onSearch" placeholder="价格区间" clearable border="none" :customStyle="{height: '35px'}"/>
|
||||
<!-- <uni-data-select class="select-width" v-model="where.priceScene" :localdata="price" placeholder="价格区间"
|
||||
@change="onSearch"></uni-data-select> -->
|
||||
</view>
|
||||
<view class="region">
|
||||
<uni-data-select class="select-width" v-model="where.extentScene" :localdata="extent" placeholder="面积"
|
||||
@change="onSearch"></uni-data-select>
|
||||
<u--input class="where-input" v-model="where.extentScene" type="number" @confirm="onSearch" placeholder="面积m²" clearable border="none" :customStyle="{height: '35px'}"/>
|
||||
<!-- <uni-data-select class="select-width" v-model="where.extentScene" :localdata="extent" placeholder="面积"
|
||||
@change="onSearch"></uni-data-select> -->
|
||||
</view>
|
||||
<view class="region">
|
||||
<uni-data-select class="select-width" v-model="where.sortScene" :localdata="sort" placeholder="排序"
|
||||
@@ -137,6 +139,7 @@
|
||||
],
|
||||
menu,
|
||||
region,
|
||||
houseArea:[],
|
||||
price,
|
||||
extent,
|
||||
sort,
|
||||
@@ -233,6 +236,14 @@
|
||||
text: d
|
||||
}
|
||||
})
|
||||
|
||||
app.houseArea = res.data.house_area[0].map(d => {
|
||||
console.log('d: ', d);
|
||||
return {
|
||||
value: d,
|
||||
text: d
|
||||
}
|
||||
})
|
||||
|
||||
uni.request({
|
||||
url: 'https://file.wsdns.cn/json/city.js',
|
||||
@@ -394,4 +405,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.where-input{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,12 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<u-navbar placeholder fixed>
|
||||
<template slot="left">
|
||||
<view style="display: flex;align-items: center;height: 44px;">
|
||||
<image style="height: 30px;" src="@/static/logo-chang.png" mode="heightFix"></image>
|
||||
</view>
|
||||
</template>
|
||||
</u-navbar>
|
||||
<!-- 搜索 -->
|
||||
<u-sticky offset-top="5" zIndex="999">
|
||||
<view class="search-fix fixed" v-if="scrollTop < 30">
|
||||
|
||||
Reference in New Issue
Block a user