<view>
    <cover-view class="weather">
        <cover-view class="{{totop?'totop inner':'inner'}}">
            <cover-view class="blue-bg">
                <cover-image class="sun" mode="widthFix" src="/img/sun.jpeg"></cover-image>
                <cover-view class="inner-text">
                    <cover-view class="air_tips">{{weather.air_tips}}</cover-view>
                    <cover-view class="wea">
                        <cover-view class="temp">{{weather.tem}}℃</cover-view>
                        <cover-view class="text">{{weather.wea}}</cover-view>
                    </cover-view>
                    <cover-view class="intro">
                        <cover-view class="l"> 天气：{{weather.tem2}}~{{weather.tem1}}℃ {{weather.wea}} </cover-view>
                        <cover-view class="r">{{weather.city}}</cover-view>
                    </cover-view>
                </cover-view>
            </cover-view>
            <cover-view class="bottom">
                <cover-view bindtap="changeTop" class="top">
                    <cover-image src="/img/top.png"></cover-image>
                </cover-view>
            </cover-view>
        </cover-view>
    </cover-view>
    <cover-view class="{{showshop?'showshop shop':'shop'}}">
        <cover-view class="name">{{shop.t_name}}</cover-view>
        <cover-view class="border"></cover-view>
        <cover-view class="add">
            <cover-view class="l">
                <cover-image class="location" src="/img/location-blue.png"></cover-image>
                <cover-view class="text">{{shop.address}}</cover-view>
            </cover-view>
            <cover-view bindtap="toMap" class="r" wx:if="{{shop.distance}}"> {{shop.distance}}kw<cover-image class="right" src="/img/right.png"></cover-image>
            </cover-view>
        </cover-view>
        <cover-view class="border"></cover-view>
        <cover-view bindtap="toMap" class="tomap">导航</cover-view>
    </cover-view>
    <view class="map">
        <map bindmarkertap="bindmarkertap" bindtap="closeshop" id="map" latitude="{{latitude}}" longitude="{{longitude}}" markers="{{markers}}" scale="{{zoomsize}}" showLocation="{{showLocation}}"></map>
        <cover-view class="custom-btn">
            <cover-view bindtap="callUs" class="btn">
                <cover-image class="img" src="/img/service.png"></cover-image>
            </cover-view>
            <cover-view bindtap="tolocation" class="btn">
                <cover-image class="img" src="/img/local.png"></cover-image>
            </cover-view>
        </cover-view>
    </view>
</view>
