<!--nova-werun/pages/home/sport/sport-home/index.wxml-->
<nav type="back" title="运动" background-color="{{'#4F9AF7'}}" front-color="{{'#333333'}}"></nav>
<view class="all" style="height: {{contentHeight}}rpx;">
    <view class="tab-bar">
        <view style="margin-left: 66rpx;" class="tab-item {{currentTab == 0? 'active' : ''}}" bindtap="switchTab" data-index="0">
            步行
        </view>
        <view style="margin-left: 44rpx;" class="tab-item {{currentTab == 1? 'active' : ''}}" bindtap="switchTab" data-index="1">
            跑步
        </view>
    </view>
    <!-- 走路 -->
    <view wx:if="{{currentTab == 0}}">
            <view class="textbox">
                <view class="text">今日积累行走</view>
                <view class="number" data-url="../../statistics/index"  bindtap="gourl">7公里 ></view>
            </view>
            <view class="mapbox">
                <view class="map">
                    <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="18" markers="{{markers}}"></map>
                </view>
                <view class="button" data-url="../sport-start/index"  bindtap="gourl">GO</view>
            </view>
    </view>
    <!-- 跑步 -->
    <view wx:if="{{currentTab == 1}}">
            <view class="textbox">
                <view class="text">今日积累跑步</view>
                <view class="number" data-url="../../statistics/index"  bindtap="gourl">10公里 ></view>
            </view>
            <view class="mapbox">
                <view class="map">
                    <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="18" markers="{{markers}}"></map>
                </view>
                <view class="button" data-url="../sport-start/index"  bindtap="gourl">GO</view>
            </view>
    </view>
</view>