today.wxml 7.6 KB

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