today.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <view class="player">
  2. <view class="name">{{datas.today_record.username}} <text>选手</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">风格:<label class="tag">短线</label><label class="tag">重仓</label></view>
  7. <view class="info">
  8. 排名: <view>{{datas.today_record.group_rank}}/54
  9. ({{datas.today_record.match_group_name}})</view>
  10. </view>
  11. <view class="info">
  12. 胜率: <view>80%(最大回撤 <text class='down'>-8%</text>)</view>
  13. </view>
  14. <view class="info">
  15. 日期: <view>{{datas.today_record.stock_date}}</view>
  16. </view>
  17. <view class="info">
  18. 资产:
  19. <view><label>{{datas.today_record.today_fund}}w</label>
  20. (今日收益
  21. <text class="{{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income}}</text>
  22. <text style="color:#F5F5F5;"> | </text>
  23. 总收益
  24. <text class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}">{{datas.today_record.total_income}}</text>
  25. )</view>
  26. </view>
  27. <view class="bottom">
  28. 今日持仓 <text>120.3W</text>
  29. 仓位 <text>80%</text>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="page_top">
  34. <view wx:if='{{datas.today_record.today_stock.length>0}}' class="container" style="height:400rpx;">
  35. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  36. </view>
  37. <!-- <view class="legend">
  38. <view>久盛电气 80w</view>
  39. <view>久盛电气 80w</view>
  40. <view>久盛电气 80w</view>
  41. </view> -->
  42. </view>
  43. <view class="imgs">
  44. <view class="title">交割单</view>
  45. <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}}'
  46. class="img" src="{{i}}"></image>
  47. </view>
  48. <view class="content" wx:if='{{datas.today_record.experience}}'>
  49. <view class="title">操盘总结</view>
  50. {{datas.today_record.experience}}
  51. </view>
  52. <view class="content" wx:if='{{datas.today_record.wanzhu_comment}}'>
  53. <view class="title">顽主点评</view>
  54. {{datas.today_record.wanzhu_comment}}
  55. </view>
  56. <view class="content">
  57. <view class="title">收益曲线</view>
  58. <view class="container" wx:if='{{datas.records.length>0}}'>
  59. <ec-canvas ec="{{ ec }}">
  60. </ec-canvas>
  61. </view>
  62. </view>
  63. <view class="days_stock">
  64. <view class="title">每日持股
  65. <navigator url="../day/day?id={{id}}&player_id={{player_id}}">
  66. 查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image>
  67. </navigator>
  68. </view>
  69. <view class="stock" wx:for='{{stockList}}' wx:if="{{index<3}}">
  70. <navigator url="../record/record?id={{item.id}}">
  71. <view class="info">
  72. <view>{{item.stock_date}}(收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  73. </view>
  74. <view class="info">
  75. 资产: <view><label>{{item.today_fund}}w</label> (收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  76. </view>
  77. <view class="info">持仓: <view>
  78. <block wx:for='{{item.today_stock}}' wx:for-item='i'>
  79. {{i.name}}({{i.fund}}w)
  80. </block>
  81. </view></view>
  82. </navigator>
  83. <view class="imgs">
  84. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  85. class="img" src="{{i}}"></image>
  86. </view>
  87. </view>
  88. </view>