matchdetail.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!--pages/matchdetail/matchdetail.wxml-->
  2. <wxs module="filters" src="../../utils/toFixed.wxs" />
  3. <view class="{{total_money[0]=='-' ?'head_loss':'head'}}">
  4. <view class="head_title">{{datas.match.name}}</view>
  5. <view class="head_bsyk">比赛盈亏</view>
  6. <view class="head_money">{{total_money}}</view>
  7. <view class="head_ratio" >
  8. 收益: <label>{{datas.today_record.total_income}}</label>
  9. 排名: <label wx:if="{{datas.today_record.stock_date==datas.match.end_time}}">第{{datas.today_record.group_rank}}名</label>
  10. <label wx:else > 未完赛</label>
  11. </view>
  12. </view>
  13. <view class="style" style="margin: 0;">
  14. <view>
  15. 比赛日期: {{datas.match.start_time}} 至 {{datas.match.end_time}}
  16. </view>
  17. <view>
  18. 我的分组: {{datas.match_group_info.name}}
  19. </view>
  20. <view>
  21. 初始资产: {{datas.today_record.init_fund}}w
  22. </view>
  23. <view>
  24. 结束资产: {{datas.today_record.today_fund}}w
  25. </view>
  26. </view>
  27. <view wx:if='{{datas.records.length>1}}'>
  28. <view class="title">收益曲线</view>
  29. </view>
  30. <view class="content">
  31. <view class="container" wx:if='{{datas.records.length>1}}'>
  32. <ec-canvas ec="{{ ec }}">
  33. </ec-canvas>
  34. </view>
  35. </view>
  36. <view class="title">每日收益</view>
  37. <view class="week_view">
  38. <view wx:if='{{days.length>0}}'>
  39. <view wx:for='{{days}}' wx:if='{{item.data.length>0}}' class="yk">
  40. <view class="week_name">{{item.name}}</view>
  41. <view class="week_incom">
  42. <view wx:for='{{item.data}}' wx:for-item='week' class="{{week.today_income=='0.0%' ?'none':''}} {{week.today_income[0]=='-' ?'down':'up'}}">
  43. {{week.date}}
  44. <text>{{week.today_income}}</text>
  45. </view>
  46. </view>
  47. <view class="week_total">
  48. 周收益
  49. <text class="{{item.total < 0 ?'week_incom down':'up'}}">{{item.total}}%</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="title">每日持股</view>
  55. <view class="days_stock">
  56. <view class="stock" wx:for='{{datas.records}}'>
  57. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}">
  58. <view class="relist">
  59. <image src="{{filters.defaultImg(item.avatar)}}"></image>
  60. <view class="msg">
  61. <text class="name">{{item.username}}</text>
  62. </view>
  63. <view class="msg">
  64. <text class="date">{{item.stock_date}}</text>
  65. </view>
  66. </view>
  67. <view class="item_money"><label class="item_money_title">资产 </label>{{item.today_fund}}w <label class="item_money_title"> 总收益 </label> <label class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</label> <label class="item_money_title"> 今日收益 </label><label class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</label>
  68. </view>
  69. <view class="experience" wx:if="{{item.experience}}">{{item.experience}}</view>
  70. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  71. 顽主点评:{{item.wanzhu_comment}}
  72. </view>
  73. <view class="imgs" wx:if="{{role != 0}}">
  74. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  75. class="img" src="{{i}}"></image>
  76. </view>
  77. <view class="recomment">
  78. <image mode="widthFix" src="../../images/msg.png"></image>
  79. <text>{{item.comments_count}}</text>
  80. <image mode="widthFix" src="../../images/zan.png"></image>
  81. <text>{{item.zans}}</text>
  82. </view>
  83. </navigator>
  84. <!-- <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{user_id}}" >
  85. <view class="info">
  86. <view class="date"> {{item.stock_date}}(今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  87. </view>
  88. <view class="info">
  89. <view>资产: <label>{{item.today_fund}}w</label> (总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  90. </view>
  91. <view class="info">
  92. 持仓:<label wx:if='{{item.is_markt}}'>开超市</label>
  93. <label wx:elif='{{item.today_stock.length>0}}'>
  94. <block wx:for="{{item.today_stock}}" wx:for-item='i'>{{i.name}}({{i.fund}}w) </block>
  95. </label>
  96. <view wx:else>空仓</view>
  97. </view>
  98. <view class="info" wx:if='{{item.experience}}'>
  99. 今日反思:{{item.experience}}
  100. </view>
  101. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  102. 顽主点评:{{item.wanzhu_comment}}
  103. </view>
  104. </navigator> -->
  105. </view>
  106. </view>