today.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <view class="player">
  2. <view class="name">{{datas.today_record.username}} <text>{{datas.today_record.badge}}</text>
  3. <view style="width:140rpx;" wx:if='{{is_follow}}' data-action='cancel' bindtap="followPlayer">取消关注</view>
  4. <view wx:else bindtap="followPlayer">+关注</view></view>
  5. <view class="infos">
  6. <view class="info" wx:if='{{datas.today_record.style.length>0}}'>风格:
  7. <label wx:for='{{datas.today_record.style}}' class="tag">{{item}}</label>
  8. </view>
  9. <view class="info">
  10. 排名: <view>{{datas.today_record.group_rank}}/{{datas.today_record.players_num}}
  11. ({{datas.today_record.match_group_name}})</view>
  12. </view>
  13. <view class="info">
  14. 胜率: <view>{{datas.today_record.win_rate}}(最大回撤 <text class="{{datas.today_record.badest_income[0]=='-' ?'down':'up'}}"> {{datas.today_record.badest_income}} </text>)</view>
  15. </view>
  16. <view class="info">
  17. 日期: <view>{{datas.today_record.stock_date}}</view>
  18. </view>
  19. <view class="info">
  20. 资产:
  21. <view><label>{{datas.today_record.today_fund}}w</label>(今日收益
  22. <text class="{{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income}}</text>
  23. <text style="color:#F5F5F5;display:block;height:0;"> </text>
  24. 总收益
  25. <text class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.total_income}}</text>
  26. )</view>
  27. </view>
  28. <view class="bottom" wx:if='{{!datas.today_record.is_markt}}'>
  29. 今日持仓 <text>{{datas.today_record.today_stock_total}}W</text>
  30. 仓位 <text>{{datas.today_record.cangwei}}</text>
  31. </view>
  32. <view class="bottom" wx:else>
  33. 开超市
  34. </view>
  35. </view>
  36. </view>
  37. <view class="page_top">
  38. <view wx:if='{{datas.today_record.today_stock.length>0&&datas.today_record.today_stock.length<9}}' class="container" style="height:400rpx;">
  39. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  40. </view>
  41. <view wx:if='{{datas.today_record.today_stock.length>8}}' class="container" style="height:550rpx;">
  42. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  43. </view>
  44. <!-- <view class="legend">
  45. <view>久盛电气 80w</view>
  46. <view>久盛电气 80w</view>
  47. <view>久盛电气 80w</view>
  48. </view> -->
  49. </view>
  50. <view class="imgs">
  51. <view class="title">交割单</view>
  52. <image wx:for='{{datas.today_record.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{datas.today_record.today_stock_img}}'
  53. class="img" src="{{i}}"></image>
  54. </view>
  55. <view class="content" wx:if='{{datas.today_record.experience}}'>
  56. <view class="title">操盘总结</view>
  57. {{datas.today_record.experience?datas.today_record.experience:'无'}}
  58. </view>
  59. <view class="content" wx:if='{{datas.today_record.wanzhu_comment}}'>
  60. <view class="title">顽主点评</view>
  61. {{datas.today_record.wanzhu_comment?datas.today_record.wanzhu_comment:'无'}}
  62. </view>
  63. <view class="content">
  64. <view class="title">收益曲线</view>
  65. <view class="container" wx:if='{{datas.records.length>0}}'>
  66. <ec-canvas ec="{{ ec }}">
  67. </ec-canvas>
  68. </view>
  69. </view>
  70. <view class="days_stock">
  71. <view class="title">每日持股
  72. <navigator url="../day/day?id={{id}}&player_id={{player_id}}">
  73. 查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image>
  74. </navigator>
  75. </view>
  76. <view class="stock" wx:for='{{stockList}}' wx:if="{{index<3}}">
  77. <navigator url="../record/record?id={{item.id}}">
  78. <view class="info">
  79. <view>{{item.stock_date}}(收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  80. </view>
  81. <view class="info">
  82. 资产: <view><label>{{item.today_fund}}w</label> (收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  83. </view>
  84. <!-- <view class="info">持仓: <view>
  85. <block wx:for='{{item.today_stock}}' wx:for-item='i'>
  86. {{i.name}}({{i.fund}}w)
  87. </block>
  88. </view></view> -->
  89. <view class="info">
  90. 持仓:
  91. <view wx:if='{{item.is_markt}}'>开超市</view>
  92. <view wx:elif='{{item.today_stock.length>0}}'>
  93. <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
  94. </view>
  95. <view wx:else>空仓</view>
  96. </view>
  97. </navigator>
  98. <view class="imgs">
  99. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  100. class="img" src="{{i}}"></image>
  101. </view>
  102. </view>
  103. </view>