|
@@ -1,13 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
- <u-navbar :is-back="false" height="88" style="background-color: bisque;">
|
|
|
|
|
|
+ <u-navbar :is-back="false" :height="nav_height" style="background-color: bisque;">
|
|
<view style="display: flex;flex-direction: column; width: 100%;height: 100%;">
|
|
<view style="display: flex;flex-direction: column; width: 100%;height: 100%;">
|
|
<view style="display: flex;flex-direction: row; height: 100%; align-items: center;margin-top:0rpx;padding-top: 0rpx;padding-bottom: 20rpx;">
|
|
<view style="display: flex;flex-direction: row; height: 100%; align-items: center;margin-top:0rpx;padding-top: 0rpx;padding-bottom: 20rpx;">
|
|
<view style="margin-left:20rpx;width: 160rpx;">
|
|
<view style="margin-left:20rpx;width: 160rpx;">
|
|
<uni-combox ref="city" :border="false" v-model="area" :candidates="cities" @updateModel='updateCity' @updateSelector="updateCitySelector"></uni-combox>
|
|
<uni-combox ref="city" :border="false" v-model="area" :candidates="cities" @updateModel='updateCity' @updateSelector="updateCitySelector"></uni-combox>
|
|
</view>
|
|
</view>
|
|
<view style="margin-left: 20rpx;margin-right: 20rpx; flex:1" >
|
|
<view style="margin-left: 20rpx;margin-right: 20rpx; flex:1" >
|
|
- <u-search :height="search_height" placeholder="搜索站点名称" v-model="keyword" :showAction="false" @focus="navigate"></u-search></view>
|
|
|
|
|
|
+ <u-search height="88" placeholder="搜索站点名称" v-model="keyword" :showAction="false" @focus="navigate"></u-search></view>
|
|
<view style="margin-right: 20rpx;" v-show="viewMode" @click="listMode">
|
|
<view style="margin-right: 20rpx;" v-show="viewMode" @click="listMode">
|
|
<text class="iconfont"></text> <text class="list">列表</text>
|
|
<text class="iconfont"></text> <text class="list">列表</text>
|
|
<!-- <u-icon name="list-dot" size="26" color="#c0c4cc"></u-icon>
|
|
<!-- <u-icon name="list-dot" size="26" color="#c0c4cc"></u-icon>
|
|
@@ -179,7 +179,7 @@
|
|
<view>
|
|
<view>
|
|
<Chargermap @onMoveStart="moveStart" @onMoveEnd="moveEnd" ref="amap" @onClicked="onClicked" @onload="mapdown" @clickMap="clickMap"></Chargermap>
|
|
<Chargermap @onMoveStart="moveStart" @onMoveEnd="moveEnd" ref="amap" @onClicked="onClicked" @onload="mapdown" @clickMap="clickMap"></Chargermap>
|
|
<!--@location="location"-->
|
|
<!--@location="location"-->
|
|
- <u-image style='position:absolute;z-index:1023;right:20px;bottom:260px;' src="@/static/img/location.png" width="30px" height="30px" @click="setCenter"></u-image>
|
|
|
|
|
|
+ <u-image style='position:absolute;z-index:1023;right:40rpx;bottom:520rpx;' src="@/static/img/location.png" width="60rpx" height="60rpx" @click="setCenter"></u-image>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view v-if="stationsmap.length>0" class="chargerCard" style="border-radius: 20rpx;" >
|
|
<view v-if="stationsmap.length>0" class="chargerCard" style="border-radius: 20rpx;" >
|
|
@@ -278,7 +278,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- search_height:88,
|
|
|
|
|
|
+ nav_height:88,
|
|
showCity:false,
|
|
showCity:false,
|
|
showType:false,
|
|
showType:false,
|
|
showRadius:false,
|
|
showRadius:false,
|
|
@@ -345,10 +345,10 @@ export default {
|
|
onLoad(op) {
|
|
onLoad(op) {
|
|
_self = this;
|
|
_self = this;
|
|
|
|
|
|
- var rpx = 40/(uni.upx2px(100)/100);
|
|
|
|
|
|
+ //var rpx = 40/(uni.upx2px(100)/100);
|
|
// 验证上面rpx的值
|
|
// 验证上面rpx的值
|
|
- var px = uni.upx2px(rpx);
|
|
|
|
- this.search_height = rpx;
|
|
|
|
|
|
+ var px = uni.upx2px(176);
|
|
|
|
+ this.nav_height = px;
|
|
|
|
|
|
console.log('longitude0 ' + _self.longitude);
|
|
console.log('longitude0 ' + _self.longitude);
|
|
console.log('latitude0 ' + _self.latitude);
|
|
console.log('latitude0 ' + _self.latitude);
|