index.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!--nova-werun/pages/home/statistics/index.wxml-->
  2. <nav type="back" title="步数统计" background-color="{{'#4F9AF7'}}" front-color="{{'#333333'}}"></nav>
  3. <view class="all" wx:if="{{active==0}}">
  4. <view class="number">
  5. <view class="num">
  6. <view class="num-num">{{sportsDate.burnCalories||0}}</view>
  7. <view class="num-text">
  8. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20250102/p7a8bu044758822.png?imageView2/1/w/200/h/200"></image>
  9. 卡路里
  10. </view>
  11. </view>
  12. <view class="num">
  13. <view class="num-num">
  14. {{sportsDate.sportDate/60||0}}
  15. <view class="numtext">分钟</view>
  16. </view>
  17. <view class="num-text">
  18. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20250102/opj155044741516.png?imageView2/1/w/200/h/200"></image>
  19. 步数时间
  20. </view>
  21. </view>
  22. <view class="num">
  23. <view class="num-num">{{sportsDate.distance/1000||0}}</view>
  24. <view class="num-text">
  25. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20250102/9i4h5l044715444.png?imageView2/1/w/200/h/200"></image>
  26. 公里
  27. </view>
  28. </view>
  29. </view>
  30. <view class="circlebox">
  31. <view class="runbox" style="background:{{percentage}}">
  32. <view class="run">
  33. <view class="tody-steps">今日步数</view>
  34. <view class="step-num">{{sportsDate.steps||0}}</view>
  35. <view class="objective">
  36. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241102/q12pc1114226514.png?imageView2/1/w/200/h/200" alt="" />
  37. <view class="ob-num">目标:{{target}}</view>
  38. </view>
  39. <view class="achieve">{{percent||0}}% 已完成</view>
  40. </view>
  41. </view>
  42. <!-- <image class="image2" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20250102/14819p045007276.png?imageView2/1/w/200/h/200"></image> -->
  43. </view>
  44. <view class="sharebox">
  45. <button class="share" open-type="share">分享给好友</button>
  46. </view>
  47. <view class="text">
  48. <view class="text2">|</view>
  49. <view class="text3">本周记录</view>
  50. </view>
  51. <block>
  52. <view style="width: 100vw; height: 800rpx;z-index: 0;">
  53. <ec-canvas wx:if="{{option}}" style="width: 100vw; height: 800rpx;z-index: 0;" ec="{{ ec }}"></ec-canvas>
  54. </view>
  55. </block>
  56. </view>
  57. <view class="all2" wx:if="{{active==1}}">
  58. <view class="card1">
  59. <view class="card1-title">
  60. <view>|</view>
  61. 生涯合计
  62. </view>
  63. <view class="card1-in">自{{careerData.startDate||0}}开始,共{{careerData.difDays||0}}天,您走了</view>
  64. <view class="card1-card">
  65. <view class="card1card-number">{{careerData.steps||0}}</view>
  66. <view class="card1card-text">步,累计</view>
  67. </view>
  68. <view class="card1-card2">
  69. <view class="card1-c2c">
  70. <view class="card1-c2cnum">{{careerData.burnCalories||0}}</view>
  71. <view class="card1-c2ctex">卡路里</view>
  72. </view>
  73. <view class="card1-c2c">
  74. <view class="card1-c2cnum" wx:if="{{careerData.sportDate.days||careerData.sportDate.hours}}">{{careerData.sportDate.days}}天{{careerData.sportDate.hours}}小时</view>
  75. <view class="card1-c2cnum" wx:else>不足1小时</view>
  76. <view class="card1-c2ctex">时间</view>
  77. </view>
  78. <view class="card1-c2c">
  79. <view class="card1-c2cnum">{{careerData.distance||0}}</view>
  80. <view class="card1-c2ctex">公里</view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="card2">
  85. <view class="card2-top">
  86. <view class="card2-title">
  87. <view>|</view>
  88. 全网排名
  89. </view>
  90. <view class="card2-title2">今日{{rankOfAll.steps||0}}步</view>
  91. </view>
  92. <view class="card2-bottom">
  93. <block wx:if="{{rankOfAll.percent||rankOfAll.steps}}">
  94. <view class="card2-bottom1">今日步数已超过</view>
  95. <view class="card2-bottom2">
  96. <view class="card2-bottom2t">{{rankOfAll.percent}}</view>
  97. <view class="card2-bottom2t2">%</view>
  98. </view>
  99. <view class="card2-bottom3">的用户,赶紧行动起来</view>
  100. </block>
  101. <block wx:else>
  102. <view class="card2-bottom1">今日排名</view>
  103. <view class="card2-bottom2">
  104. <view class="card2-bottom2t">200</view>
  105. <view class="card2-bottom2t2">之外</view>
  106. </view>
  107. <view class="card2-bottom3">赶紧行动起来吧</view>
  108. </block>
  109. </view>
  110. </view>
  111. <view class="card3">
  112. <view class="card3-top">
  113. <view class="card3-title">
  114. <view>|</view>
  115. 近期趋势
  116. </view>
  117. <view class="card3-title2">
  118. <view class="{{rece==7?'card3-bu2':'card3-bu'}}" data-t="7" bindtap="changeTrend">7天</view>
  119. <view class="{{rece==30?'card3-bu2':'card3-bu'}}" data-t="30" bindtap="changeTrend">30天</view>
  120. </view>
  121. </view>
  122. <view class="card3-midin">
  123. <view class="card3-midin2">
  124. <view class="card3-midinnum">{{receDate.svg||0}}步</view>
  125. <view class="card3-midintex">每日平均</view>
  126. </view>
  127. <view class="card3-midin2">
  128. <view class="card3-midinnum">{{receDate.count||0}}步</view>
  129. <view class="card3-midintex">总计</view>
  130. </view>
  131. </view>
  132. <view class="card3-bottom">
  133. <view style="height: 600rpx;z-index: 0;">
  134. <block>
  135. <ec-canvas wx:if="{{option}}" ec="{{ ec }}"></ec-canvas>
  136. </block>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <van-tabbar fixed="{{false}}" active="{{ active }}" z-index='9999' bind:change="onChange">
  142. <van-tabbar-item>
  143. <image slot="icon" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241113/o1c3n1030041552.png?imageView2/1/w/200/h/200" mode="aspectFit" style="width: 50rpx; height: 50rpx;" />
  144. <image slot="icon-active" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241113/g5fcr1030200091.png?imageView2/1/w/200/h/200" mode="aspectFit" style="width: 50rpx; height: 50rpx;" />
  145. 今日步数
  146. </van-tabbar-item>
  147. <van-tabbar-item>
  148. <image slot="icon" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241113/hc5guq030414553.png?imageView2/1/w/200/h/200" mode="aspectFit" style="width: 50rpx; height: 50rpx;" />
  149. <image slot="icon-active" src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241113/v1hhkk030354434.png?imageView2/1/w/200/h/200" mode="aspectFit" style="width: 50rpx; height: 50rpx;" />
  150. 周期统计
  151. </van-tabbar-item>
  152. </van-tabbar>