|
|
@@ -27,7 +27,7 @@
|
|
|
<input
|
|
|
class="search-input"
|
|
|
type="text"
|
|
|
- placeholder="搜索城市名称或拼音,点击即可选择"
|
|
|
+ placeholder="搜索城市名称"
|
|
|
v-model="searchText"
|
|
|
@input="onSearchInput"
|
|
|
@focus="searchFocused = true"
|
|
|
@@ -260,9 +260,9 @@ export default {
|
|
|
)
|
|
|
// 添加到开头
|
|
|
this.recentCities.unshift(city)
|
|
|
- // 最多保存8个
|
|
|
- if (this.recentCities.length > 8) {
|
|
|
- this.recentCities = this.recentCities.slice(0, 8)
|
|
|
+ // 最多保存4个
|
|
|
+ if (this.recentCities.length > 4) {
|
|
|
+ this.recentCities = this.recentCities.slice(0, 4)
|
|
|
}
|
|
|
uni.setStorageSync('recent_cities', JSON.stringify(this.recentCities))
|
|
|
} catch (e) {
|
|
|
@@ -512,7 +512,7 @@ export default {
|
|
|
right: 0;
|
|
|
transition-property: transform;
|
|
|
transition-duration: 0.3s;
|
|
|
- transform: translateY(460upx);
|
|
|
+ transform: translateY(820upx);
|
|
|
/* #ifndef APP-NVUE */
|
|
|
z-index: 999;
|
|
|
/* #endif */
|
|
|
@@ -674,7 +674,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.search-results {
|
|
|
- height: 500upx;
|
|
|
+ height: 700upx;
|
|
|
}
|
|
|
|
|
|
.search-scroll {
|
|
|
@@ -716,7 +716,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.normal-mode {
|
|
|
- height: 500upx;
|
|
|
+ height: 700upx;
|
|
|
/* #ifndef APP-NVUE */
|
|
|
display: flex;
|
|
|
/* #endif */
|
|
|
@@ -736,6 +736,7 @@ export default {
|
|
|
|
|
|
.recent-section, .hot-section {
|
|
|
border-bottom: 1upx solid #f2f2f2;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
.recent-cities, .hot-cities {
|
|
|
@@ -773,6 +774,7 @@ export default {
|
|
|
.province-section {
|
|
|
flex: 1;
|
|
|
overflow: hidden;
|
|
|
+ min-height: 300upx;
|
|
|
}
|
|
|
|
|
|
.province-scroll {
|