winlost.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <wxs module="filters" src="../../utils/toFixed.wxs" />
  2. <view class="up-down-view" wx:for="{{winLost}}" wx:for-item="list">
  3. <view class="up-title">
  4. {{list.match_name}}
  5. </view>
  6. <view class="tab">
  7. <view wx:for='{{tabs[index]}}' bindtap="tabChange1" wx:for-index='i' data-tab='{{index}}' data-id='{{i}}' class="{{i==curs[index]?'act':''}}">{{item}}</view>
  8. </view>
  9. <swiper class="swiper-content" style="padding:0rpx 20rpx;height: 1000rpx;" current='{{curs[index]}}' data-tab='{{index}}' bindchange='curChange1'>
  10. <swiper-item class="up-down">
  11. <view class="title_1">
  12. <text>收益率</text><text>资产(w)</text><text>盈利(w)</text>
  13. </view>
  14. <navigator wx:for="{{list.total_income_up}}" hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  15. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  16. <text wx:else class="number">{{index+1}}</text>
  17. <text class="usm">{{item.username}}</text>
  18. <text class="text up">{{ filters.toFix2(item.total_income*100)}}%</text>
  19. <text class="text">{{item.today_fund}}</text>
  20. <text class="text up">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  21. </navigator>
  22. </swiper-item>
  23. <swiper-item class="up-down">
  24. <view class="title_1">
  25. <text>盈利(w)</text><text>资产(w)</text><text>收益率</text>
  26. </view>
  27. <navigator wx:for="{{list.total_win_up}}" hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  28. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  29. <text wx:else class="number">{{index+1}}</text>
  30. <text class="usm">{{item.username}}</text>
  31. <text class="text up">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  32. <text class="text">{{item.today_fund}}</text>
  33. <text class="text up">{{ filters.toFix2(item.total_income*100)}}%</text>
  34. </navigator>
  35. </swiper-item>
  36. <swiper-item class="up-down">
  37. <view class="title_1">
  38. <text>亏损(w)</text><text>资产(w)</text><text>收益率</text>
  39. </view>
  40. <navigator wx:for="{{list.total_win_down}}" hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  41. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  42. <text wx:else class="number">{{index+1}}</text>
  43. <text class="usm">{{item.username}}</text>
  44. <text class="text down">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  45. <text class="text">{{item.today_fund}}</text>
  46. <text class="text down">{{ filters.toFix2(item.total_income*100)}}%</text>
  47. </navigator>
  48. </swiper-item>
  49. <swiper-item class="up-down">
  50. <view class="title_1">
  51. <text>收益率</text><text>资产(w)</text><text>盈利(w)</text>
  52. </view>
  53. <navigator wx:for="{{list.total_income_down}}" hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  54. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  55. <text wx:else class="number">{{index+1}}</text>
  56. <text class="usm">{{item.username}}</text>
  57. <text class="text down">{{ filters.toFix2(item.total_income*100)}}%</text>
  58. <text class="text">{{item.today_fund}}</text>
  59. <text class="text down">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  60. </navigator>
  61. </swiper-item>
  62. </swiper>
  63. </view>
  64. <view wx:if="{{winLost.length>0}}" class="end">~END~</view>
  65. <view style="margin-top: 100rpx;" wx:else class="end">~正在加载~</view>