choose-location.wxml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <import src="../../../common/head.wxml" />
  2. <import src="../../../common/foot.wxml" />
  3. <view class="container page" data-weui-theme="{{theme}}">
  4. <template is="head" data="{{title: 'chooseLocation'}}"/>
  5. <view class="page-body">
  6. <view class="page-section">
  7. <view class="page-body-info">
  8. <text class="page-body-text-small">当前位置信息</text>
  9. <block wx:if="{{hasLocation === false}}">
  10. <text class="page-body-text">未选择位置</text>
  11. </block>
  12. <block wx:if="{{hasLocation === true}}">
  13. <text class="page-body-text">{{locationAddress}}</text>
  14. <view class="page-body-text-location">
  15. <text>E: {{location.longitude[0]}}°{{location.longitude[1]}}′</text>
  16. <text>N: {{location.latitude[0]}}°{{location.latitude[1]}}′</text>
  17. </view>
  18. </block>
  19. </view>
  20. <view class="btn-area">
  21. <button type="primary" bindtap="chooseLocation">选择位置</button>
  22. <button bindtap="clear">清空</button>
  23. </view>
  24. </view>
  25. </view>
  26. <template is="foot" />
  27. </view>