today.wxml 4.2 KB

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