avg.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!--pages/avg/avg.wxml-->
  2. <view class="title"><text>{{match_name}}</text></view>
  3. <view class="info">当日人均盈亏(算术平均)
  4. </view>
  5. <view wx:if="{{cur >= 0}}" class="tab">
  6. <view wx:for='{{list}}' bindtap="tabChange" data-id='{{index}}' class="{{index==cur?'act':''}}">
  7. {{index==0 ? '全体选手':item.name}}
  8. </view>
  9. </view>
  10. <view class="content">
  11. <view class="container" wx:if="{{days.length > 1}}">
  12. <ec-canvas ec="{{ ec }}">
  13. </ec-canvas>
  14. </view>
  15. </view>
  16. <view class="content">
  17. <view>每日指数</view>
  18. <view class="month">
  19. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  20. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  21. <view class="date-picker">
  22. {{date}}
  23. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  24. </view>
  25. </picker>
  26. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  27. </view>
  28. <view class="day">
  29. <text>日</text><text>一</text><text>二</text>
  30. <text>三</text><text>四</text><text>五</text><text>六</text>
  31. </view>
  32. <view class="days">
  33. <view wx:for='{{days}}'>
  34. <view wx:if='{{!item.income}}' style="color:#999;">
  35. {{item.day}}
  36. <text>{{item.income}}</text>
  37. </view>
  38. <view class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  39. {{item.day}}
  40. <text>{{item.income}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>