index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!--nova-werun/pages/home/sport/sport-home/index.wxml-->
  2. <nav type="back" title="运动" background-color="{{'#4F9AF7'}}" front-color="{{'#333333'}}"></nav>
  3. <view class="all" style="height: {{contentHeight}}rpx;">
  4. <view>
  5. <view class="textbox">
  6. <view class="text">今日积累运动</view>
  7. <view class="number" data-url="../../statistics/index" bindtap="gourl">{{distance}}米 ></view>
  8. </view>
  9. <view class="mapbox">
  10. <view class="map">
  11. <map class="map" enable-zoom="ture" enable-scroll="ture" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="18" markers="{{markers}}"></map>
  12. </view>
  13. <!-- <view class="button" data-url="/nova-werun/pages/home/sport/sport-start/index?type={{type}}" bindtap="go">GO</view> -->
  14. <view class="button" data-url="/nova-werun/pages/home/sport/sport-start/index?type={{type}}" bindtap="showPopup">GO</view>
  15. </view>
  16. </view>
  17. </view>
  18. <van-popup round show="{{show}}" >
  19. <view class="model">
  20. <view class="content">
  21. <view class="close">
  22. <view class="h2">选择运动类型</view>
  23. <van-icon name="cross" size="50rpx" bind:tap="onClose" />
  24. </view>
  25. <view class="btnBox">
  26. <view class="btn" data-url="/nova-werun/pages/home/sport/sport-start/index?type=walk" bind:tap="gourl">
  27. 步行
  28. </view>
  29. <view class="btn" data-url="/nova-werun/pages/home/sport/sport-start/index?type=run" bind:tap="gourl">
  30. 跑步
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </van-popup>