index.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!--nova-werun/components/home/index.wxml-->
  2. <view class="all" style="height: {{screenHeight}}rpx;">
  3. <view class="navbox" style="height: {{navheight}}rpx;">
  4. <view class="nav">
  5. <view class="nav-title">首页</view>
  6. <view class="nav-addbox">
  7. <van-icon name="location-o" size='28rpx' color='white' />
  8. <view class="nav-add">{{address}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="sco" style="height: {{contentHeight}}rpx;">
  13. <!-- 顶部 -->
  14. <view class="topbox">
  15. <view class="top-tex">
  16. 健康运动 go
  17. </view>
  18. <view class="top-tex2">
  19. 积累运动
  20. <view class="top-tex2-tex">225</view>
  21. </view>
  22. </view>
  23. <view class="clockinbox">
  24. <view class="clockinbox2">
  25. <view class="runbox" style="background:{{percentage}}">
  26. <view class="run">
  27. <view class="step-num">{{sharList[0].steps||0}}</view>
  28. <view class="tody-steps">今日步数</view>
  29. </view>
  30. </view>
  31. <!-- 目标 -->
  32. <view class="objbox">
  33. <view class="obj1">
  34. <view class="boj1-ti">目标步数</view>
  35. <view class="obj1-numbox">
  36. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241225/s519td033232206.png"></image>
  37. <view class="obj1-numbox-tex">{{target}}步</view>
  38. </view>
  39. </view>
  40. <view class="obj1" style="margin-top: 32rpx;">
  41. <view class="boj1-ti">连续打卡</view>
  42. <view class="obj1-numbox">
  43. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20250102/tii6p6035434602.png"></image>
  44. <view class="obj1-numbox-tex">7天</view>
  45. </view>
  46. </view>
  47. <view class="obj2">积累打卡7天,超过20%人</view>
  48. </view>
  49. </view>
  50. <view class="today-check" bindtap="gourl" data-url="../../pages/home/sport/sport-home/index">今日打卡</view>
  51. </view>
  52. <van-notice-bar color="#1989fa" color='#000' background="#ecf9ff" background="#fff" left-icon="volume-o" custom-class='a' text="在微信开发者工具中进行测试,确保定位和轨迹绘制的准确性。完成测试后,提交审核并发布小程序。通过以上步骤,您就可以在微信小程序中使用高德地图实现实时运动轨迹的功能。" />
  53. <!-- 类型 -->
  54. <view class="typebox">
  55. <view class="column" wx:for="{{rows}}" wx:key="index" data-url="{{item.url}}" bindtap="gourl" data-active="{{item.active}}">
  56. <image src="{{item.image}}"></image>
  57. <text class="item-text">{{item.text}}</text>
  58. </view>
  59. </view>
  60. <view class="rankbox">
  61. <view class="ran-top">
  62. <view class="top-til" wx:if="{{changetitle=='today'}}">本日排行榜</view>
  63. <view class="top-til" wx:if="{{changetitle=='weekdday'}}">本周排行榜</view>
  64. <view class="top-til" wx:if="{{changetitle=='month'}}">本月排行榜</view>
  65. <view class="top-box" bindtap="change">
  66. 切换
  67. <image style="width: 22rpx;height: 22rpx;" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241226/fejv43122812199.png"></image>
  68. </view>
  69. <view class="top-box" style="margin-left: 20rpx;" wx:if="{{rank=='up'}}" bindtap="changeup">
  70. 正序
  71. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241226/8lu1od115228414.png"></image>
  72. </view>
  73. <view class="top-box" style="margin-left: 20rpx;" wx:if="{{rank=='down'}}" bindtap="changeup">
  74. 逆序
  75. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241226/8lu1od115228414.png"></image>
  76. </view>
  77. </view>
  78. <block wx:for="{{todayList}}" wx:key="index">
  79. <view class="cardbox">
  80. <view class="image1" wx:if="{{index==0}}">1</view>
  81. <view class="image2" wx:if="{{index==1}}">2</view>
  82. <view class="image3" wx:if="{{index==2}}">3</view>
  83. <view class="paiming" wx:if="{{index>=3}}">{{index+1}}</view>
  84. <image class="avarter" src="{{item.user.avatar}}"></image>
  85. <view class="name">
  86. {{item.user.nickname}}
  87. <view class="name2">已打卡12天</view>
  88. </view>
  89. <view class="num">{{item.steps}}</view>
  90. <view class="good">
  91. <view class="good-num">77</view>
  92. <image wx:if="{{isclick}}" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241226/voks1d122210989.png"></image>
  93. <image wx:if="{{!isclick}}" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241226/fihr91122221320.png"></image>
  94. </view>
  95. </view>
  96. </block>
  97. </view>
  98. </view>
  99. </view>