手动输入区间
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user