data_statistics.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--parents//pages/growth_track/growth_track.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/footer/footer.wxml" />
  4. <import src="../../../templates/loading/loading.wxml" />
  5. <view class='container'>
  6. <template is='loading' wx:if='{{!isLoaded}}'></template>
  7. <view class='wrapper' wx:else>
  8. <view class='head-item'>
  9. <view class="picker-day">日统计</view>
  10. <picker class="picker" mode="date" fields="day" value="{{date}}" start="2017-10-1" end="2097-10-1" bindchange="changeDate">
  11. <view class='head-month'>
  12. <text>{{date}}</text>
  13. <image src='../../../assets/select_down_icon.png' class='head-month-img'></image>
  14. </view>
  15. </picker>
  16. <view class="picker-Info" bindtap='selectNavCtl' data-index='{{1}}' >详情</view>
  17. </view>
  18. <view class="head-item">
  19. <view class="sign_in_num">到馆人数</view>
  20. <progress class="sign_in_percent" percent="{{(dayInfo.signCount/dayInfo.allCount)*100}}" border-radius="20rpx" stroke-width="15" color="#FF80A8" />
  21. <view class="sign_in_proportion" wx:if='{{dayInfo.signCount>=0 }}' >{{dayInfo.signCount+'/'+dayInfo.allCount}}</view>
  22. </view>
  23. <view class="head-item">
  24. <view class="sign_in_num">离馆人数</view>
  25. <progress class="sign_in_percent" percent="{{(dayInfo.leaveCount/dayInfo.allCount)*100}}" border-radius="20rpx" stroke-width="15" color="#FF80A8" />
  26. <view class="sign_in_proportion" wx:if='{{dayInfo.leaveCount>=0}}'>{{dayInfo.leaveCount+'/'+dayInfo.allCount}}</view>
  27. </view>
  28. <view class='head-item-month'>
  29. <view class="picker-day">月统计</view>
  30. <picker class="picker" mode="date" fields="month" value="{{month}}" start="2017-10" end="2097-10" bindchange="changeMonthDate">
  31. <view class='head-month'>
  32. <text>{{month}}</text>
  33. <image src='../../../assets/select_down_icon.png' class='head-month-img'></image>
  34. </view>
  35. </picker>
  36. <view class="picker-Info"></view>
  37. </view>
  38. <view class='li'>
  39. <!-- 主题借阅分析 -->
  40. <view class='li-rank'>
  41. <view class='li-rank-canvas'>
  42. <ff-canvas id="pieSelect" opts="{{opts}}"></ff-canvas>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="sign_month">
  47. <view class="sign_month_num">本月到馆人数:{{monthInfo.signCount}}</view>
  48. <view class="sign_month_info" bindtap='selectNavCtl' data-index='{{2}}'>详情</view>
  49. </view>
  50. </view>
  51. </view>