|
@@ -7,7 +7,7 @@
|
|
|
<uni-combox ref="city" :border="false" v-model="area" :candidates="cities" @updateModel='updateCity' @updateSelector="updateCitySelector"></uni-combox>
|
|
|
</view>
|
|
|
<view style="margin-left: 20rpx;margin-right: 20rpx; flex:1" >
|
|
|
- <u-search placeholder="搜索站点名称" v-model="keyword" :showAction="false" @focus="navigate"></u-search></view>
|
|
|
+ <u-search :height="search_height" placeholder="搜索站点名称" v-model="keyword" :showAction="false" @focus="navigate"></u-search></view>
|
|
|
<view style="margin-right: 20rpx;" v-show="viewMode" @click="listMode">
|
|
|
<text class="iconfont"></text> <text class="list">列表</text>
|
|
|
<!-- <u-icon name="list-dot" size="26" color="#c0c4cc"></u-icon>
|
|
@@ -278,6 +278,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ search_height:88,
|
|
|
showCity:false,
|
|
|
showType:false,
|
|
|
showRadius:false,
|
|
@@ -343,6 +344,12 @@ export default {
|
|
|
},
|
|
|
onLoad(op) {
|
|
|
_self = this;
|
|
|
+
|
|
|
+ var rpx = 40/(uni.upx2px(100)/100);
|
|
|
+ // 验证上面rpx的值
|
|
|
+ var px = uni.upx2px(rpx);
|
|
|
+ this.search_height = rpx;
|
|
|
+
|
|
|
console.log('longitude0 ' + _self.longitude);
|
|
|
console.log('latitude0 ' + _self.latitude);
|
|
|
if (op != null) {
|