today.wxml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <view bindtap="blur">
  2. <view class="per_top">
  3. <image src="{{datas.today_record.avatar}}" ></image>
  4. <view class="name">
  5. {{datas.today_record.username}}
  6. <view class="fans">
  7. <navigator url="../follow/follow?id={{user_id}}&type=2" style="display: inline-block;"><text>{{fans}}</text>粉丝</navigator>
  8. <navigator url="../follow/follow?id={{user_id}}&type=1" style="display: inline-block;"><text style="margin-left: 20rpx;">{{followers}}</text>关注</navigator>
  9. </view>
  10. </view>
  11. <navigator url="../homepage/homepage?id={{id}}&record_id={{record_id}}&user_id={{user_id}}">Ta的主页</navigator>
  12. </view>
  13. <view class="per_info">
  14. <view class="rank">
  15. <view class="jp"><image src="../../images/jp.png" ></image></view>
  16. <view class="num">{{datas.today_record.group_rank}}</view>
  17. 排名
  18. </view>
  19. <view class="today_income {{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income_fund}}
  20. <text class="{{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income}}</text>
  21. <text>{{fund_inout}}</text>
  22. </view>
  23. <view class="label">今日收益</view>
  24. <view class="data" style="padding-right:30rpx;border-right: 1px solid rgba(245, 245, 245, 1);">
  25. <text class="label">日期</text><text>{{datas.today_record.stock_date}}</text>
  26. <text class="label">今日资产</text><text>{{datas.today_record.today_fund}}W</text>
  27. <view class = "label" wx:if='{{datas.today_record.is_markt}}'>
  28. 开超市
  29. </view>
  30. <block wx:elif='{{datas.today_record.today_stock_total>0}}'>
  31. <text class="label">初始资金</text><text>{{datas.today_record.init_fund}}W</text>
  32. </block>
  33. <view class="label" wx:else>
  34. 空仓
  35. </view>
  36. </view>
  37. <view class="data" style="padding-left:30rpx;">
  38. <text class="label">胜率</text><text>{{datas.today_record.win_rate}}</text>
  39. <text class="label">总收益</text><text class="{{datas.today_record.total_income[0]=='-' ?'down':'up'}}"> {{datas.today_record.total_income}}</text>
  40. <block wx:if='{{datas.today_record.today_stock_total>0}}'>
  41. <text class="label">仓位</text><text>{{datas.today_record.cangwei}}</text>
  42. </block>
  43. </view>
  44. </view>
  45. <view class="page_top">
  46. <view class="totay_title">
  47. <view class="totay_title_1"><text>持仓(万)</text> <text> 盈亏(万)</text></view>
  48. <view wx:for="{{today_stock}}" class="totay_title_item">
  49. <text style="width: 100rpx;">{{item.name}}</text>
  50. <text style="width: 70rpx;">{{item.fund}}</text>
  51. <text style="width: 70rpx;" class="{{item.money[0]=='-' ?'down':'up'}}">{{item.money}}</text>
  52. </view>
  53. </view>
  54. <view wx:if='{{datas.today_record.today_stock.length>0&&datas.today_record.today_stock.length<9}}' class="container" style="height:400rpx;width: 65%;">
  55. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  56. </view>
  57. <view wx:if='{{datas.today_record.today_stock.length>8}}' class="container" style="height:550rpx;width: 65%;">
  58. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  59. </view>
  60. </view>
  61. <view class="title">持仓图<text class="des"> 除持仓图外,欢迎选手上传买卖点神图</text>
  62. <navigator style="font-size: 26rpx;text-decoration: underline;color: rgb(128, 128, 128);" url="../winloseRank/winloseRank?user_id={{user_id}}&match_id={{datas.match.id}}">个股盈亏排名<image class="more" mode="widthFix" src="../../images/right_icon.png">
  63. </image>
  64. </navigator>
  65. </view>
  66. <view class="imgs" wx:if='{{datas.today_record.today_stock_img.length>0}}'>
  67. <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}}'
  68. class="img" src="{{i}}"></image>
  69. </view>
  70. <view wx:if='{{datas.records.length>1}}'>
  71. <view class="quxian">
  72. <label class="quxian_title">收益曲线</label>
  73. <navigator class="match_info" url="../matchdetail/matchdetail?user_id={{user_id}}&match_id={{datas.match.id}}">本届完整赛况<image class="more" mode="widthFix" src="../../images/right_icon.png">
  74. </image>
  75. </navigator>
  76. </view>
  77. </view>
  78. <view class="content">
  79. <view class="container" wx:if='{{datas.records.length>1}}'>
  80. <ec-canvas ec="{{ ec }}">
  81. </ec-canvas>
  82. </view>
  83. </view>
  84. <view class="content">
  85. <view>每月盈亏</view>
  86. <view class="month">
  87. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  88. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  89. <view class="date-picker">
  90. {{date}}
  91. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  92. </view>
  93. </picker>
  94. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  95. </view>
  96. <view class="day">
  97. <text>日</text><text>一</text><text>二</text>
  98. <text>三</text><text>四</text><text>五</text><text>六</text>
  99. </view>
  100. <view class="days">
  101. <view wx:for='{{days}}'>
  102. <view wx:if='{{!item.income}}' style="color:#999;">
  103. {{item.day}}
  104. <text>{{item.income}}</text>
  105. </view>
  106. <navigator wx:else bind:tap="pushToday" data-match_id="{{id}}" data-record_id="{{item.record_id}}" data-user_id = "{{user_id}}">
  107. <view class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  108. {{item.day}}
  109. <text>{{item.income}}</text>
  110. </view>
  111. </navigator>
  112. </view>
  113. </view>
  114. <view class="calendar" >
  115. 点击具体日期可查看当日持仓
  116. </view>
  117. </view>
  118. <view class="title">今日反思</view>
  119. <view class="content" wx:if='{{datas.today_record.experience}}'>
  120. {{datas.today_record.experience?datas.today_record.experience:'无'}}
  121. </view>
  122. <view class="tab">
  123. <view data-id='0' class="{{page==0?'act':''}}">评论 {{comment_count}}</view>
  124. <view data-id='1' class="{{page==1?'act':''}}" >点赞 {{zan_count?zan_count:0}}</view>
  125. </view>
  126. <view class="content" wx:if='{{comment_list}}'>
  127. <view class="list" wx:for="{{comment_list}}">
  128. <image src="{{item.user_avatar}}" data-id="{{item.user_id}}" bind:tap="userCenter" ></image>
  129. <view class="msg">
  130. <text class="_name" data-id="{{item.user_id}}" bind:tap="userCenter">{{item.user_name}}</text>
  131. <view class="_content">{{item.content}}</view>
  132. <view class="answer" wx:if="{{item.children.length>0}}">
  133. <view wx:for="{{item.children}}" wx:for-item='i'>
  134. <text data-id="{{i.user_id}}" bind:tap="userCenter">{{i.user_name}}:</text>
  135. {{i.content}}</view>
  136. </view>
  137. <view class="addr">
  138. <text>{{item.ctime}}</text><text>来自{{item.location}}</text>
  139. <image wx:if="{{author_user_id==datas.today_record.user_id||item.user_id==author_user_id}}" class="del" data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="delmsg" mode="widthFix" src="../../images/delete.png"></image>
  140. <image data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="answer" mode="widthFix" src="../../images/msg.png"></image>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- <view class="content" wx:if='{{datas.today_record.wanzhu_comment}}'>
  146. <view class="title">顽主点评</view>
  147. {{datas.today_record.wanzhu_comment?datas.today_record.wanzhu_comment:'无'}}
  148. </view> -->
  149. </view>
  150. <view class="post">
  151. <image class="{{zan?'zan':''}}" bindtap="zan" mode="widthFix" src="../../images/zan.png"></image>
  152. <input confirm-type='send' bindconfirm='sendmsg' value="{{comment}}" placeholder-style="color:#999" maxlength="1000" bindinput="inputchange" focus='{{focus}}' type="text" placeholder="{{text}}"/>
  153. <button bindtap="sendmsg">提交</button>
  154. </view>