matchdetail.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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>第{{datas.today_record.group_rank}}名</label>
  10. </view>
  11. </view>
  12. <view class="style" style="margin: 0;">
  13. <view>
  14. 比赛日期: {{datas.match.start_time}} 至 {{datas.match.end_time}}
  15. </view>
  16. <view>
  17. 我的分组: {{datas.match_group_info.name}}
  18. </view>
  19. <view>
  20. 初始资产: {{datas.today_record.init_fund}}w
  21. </view>
  22. <view>
  23. 结束资产: {{datas.today_record.today_fund}}w
  24. </view>
  25. </view>
  26. <view wx:if='{{datas.records.length>1}}'>
  27. <view class="title">收益曲线</view>
  28. </view>
  29. <view class="content">
  30. <view class="container" wx:if='{{datas.records.length>1}}'>
  31. <ec-canvas ec="{{ ec }}">
  32. </ec-canvas>
  33. </view>
  34. </view>
  35. <view class="content">
  36. <view class="title">每月盈亏</view>
  37. <view class="month">
  38. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  39. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  40. <view class="date-picker">
  41. {{date}}
  42. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  43. </view>
  44. </picker>
  45. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  46. </view>
  47. <view class="day">
  48. <text>日</text><text>一</text><text>二</text>
  49. <text>三</text><text>四</text><text>五</text><text>六</text>
  50. </view>
  51. <view class="days">
  52. <view wx:for='{{days}}'>
  53. <view wx:if='{{!item.income}}' style="color:#999;">
  54. {{item.day}}
  55. <text>{{item.income}}</text>
  56. </view>
  57. <navigator wx:else bind:tap="pushToday" data-match_id="{{match_id}}" data-record_id="{{item.record_id}}" data-user_id = "{{user_id}}" >
  58. <view class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  59. {{item.day}}
  60. <text>{{item.income}}</text>
  61. </view>
  62. </navigator>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="title">每日持股</view>
  67. <view class="days_stock">
  68. <view class="stock" wx:for='{{datas.records}}'>
  69. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}">
  70. <view class="relist">
  71. <image src="{{filters.defaultImg(item.avatar)}}"></image>
  72. <view class="msg">
  73. <text class="name">{{item.username}}</text>
  74. </view>
  75. <view class="msg">
  76. <text class="date">{{item.stock_date}}</text>
  77. </view>
  78. </view>
  79. <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>
  80. </view>
  81. <view class="experience" wx:if="{{item.experience}}">{{item.experience}}</view>
  82. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  83. 顽主点评:{{item.wanzhu_comment}}
  84. </view>
  85. <view class="imgs" wx:if="{{role != 0}}">
  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 class="recomment">
  90. <image mode="widthFix" src="../../images/msg.png"></image>
  91. <text>{{item.comments_count}}</text>
  92. <image mode="widthFix" src="../../images/zan.png"></image>
  93. <text>{{item.zans}}</text>
  94. </view>
  95. </navigator>
  96. <!-- <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{user_id}}" >
  97. <view class="info">
  98. <view class="date"> {{item.stock_date}}(今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  99. </view>
  100. <view class="info">
  101. <view>资产: <label>{{item.today_fund}}w</label> (总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  102. </view>
  103. <view class="info">
  104. 持仓:<label wx:if='{{item.is_markt}}'>开超市</label>
  105. <label wx:elif='{{item.today_stock.length>0}}'>
  106. <block wx:for="{{item.today_stock}}" wx:for-item='i'>{{i.name}}({{i.fund}}w) </block>
  107. </label>
  108. <view wx:else>空仓</view>
  109. </view>
  110. <view class="info" wx:if='{{item.experience}}'>
  111. 今日反思:{{item.experience}}
  112. </view>
  113. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  114. 顽主点评:{{item.wanzhu_comment}}
  115. </view>
  116. </navigator> -->
  117. </view>
  118. </view>