dashboard.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--components/dashboard/dashboard.wxml-->
  2. <view class="container">
  3. <view class="dashboard">
  4. <view class="content">
  5. <view class="count" style="height: 100%">
  6. <view class="textFlag">
  7. <image src="/static/img/img_shuidi.png" role="img"></image>
  8. <text class="textcurrentMonth">本月用水</text>
  9. </view>
  10. <view class="number">{{userInfo.intNum || 0}}<text>.{{userInfo.floatNum}}t</text></view>
  11. <image class="imgbackground" src="/static/img/bg_benyueyongshui1.png"></image>
  12. </view>
  13. <!-- <view class="item" wx:for="{{userInfo.laddertype? waterStages : [waterStages[0]]}}" wx:key="index"
  14. style="background-color: {{item.background}}">
  15. <view class="icon" style="background-color: {{item.color}}"></view>
  16. <view class="name">{{item.name}}</view>
  17. </view> -->
  18. </view>
  19. <view class="wave-wrap">
  20. <view class="wave-inner" style="height: {{userInfo.percentage}}%;">
  21. <image wx:if="{{userInfo.percentage > 30}}" class="bubble" src="/static/img/bg_blister2.png"></image>
  22. <view wx:if="{{userInfo.percentage < 100 && userInfo.percentage > 0}}" class="after"></view>
  23. <view wx:if="{{userInfo.percentage < 100 && userInfo.percentage > 0}}" class="before"></view>
  24. </view>
  25. </view>
  26. <!-- <view class="ruler">
  27. <view wx:for="{{waterStages}}" wx:key="index" class="item" style="height: calc(100% / {{waterStages.length}})">
  28. <view class="long-scale top" wx:if="{{index == waterStages.length - 1}}}">
  29. <text class="line"></text>
  30. <text class="number">{{item.maxValue}}</text>
  31. </view>
  32. <view class="area">
  33. <view class="bg" style="background-color: {{item.background}}"></view>
  34. <view class="scale">
  35. <text wx:for="{{[1,2,3,4]}}" wx:key="index" class="line"></text>
  36. </view>
  37. </view>
  38. <view class="long-scale">
  39. <text class="line"></text>
  40. <text class="number">{{item.minValue}}</text>
  41. </view>
  42. </view>
  43. </view> -->
  44. </view>
  45. </view>