today.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 wx:if='{{datas.today_record.today_stock.length>0&&datas.today_record.today_stock.length<9}}' class="container" style="height:400rpx;">
  46. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  47. </view>
  48. <view wx:if='{{datas.today_record.today_stock.length>8}}' class="container" style="height:550rpx;">
  49. <ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec1 }}"></ec-canvas>
  50. </view>
  51. </view>
  52. <view class="title">持仓图<text class="des">(除持仓图外,欢迎选手上传买卖点神图)</text></view>
  53. <view class="imgs" wx:if='{{datas.today_record.today_stock_img.length>0}}'>
  54. <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}}'
  55. class="img" src="{{i}}"></image>
  56. </view>
  57. <view wx:if='{{datas.records.length>1}}'>
  58. <view class="quxian">
  59. <label class="quxian_title">收益曲线</label>
  60. <navigator class="match_info" url="../matchdetail/matchdetail?user_id={{user_id}}&match_id={{datas.match.id}}">本届完整赛况
  61. <image class="more" mode="widthFix" src="../../images/right_icon.png">
  62. </image>
  63. </navigator>
  64. </view>
  65. </view>
  66. <view class="content">
  67. <view class="container" wx:if='{{datas.records.length>1}}'>
  68. <ec-canvas ec="{{ ec }}">
  69. </ec-canvas>
  70. </view>
  71. </view>
  72. <view class="content">
  73. <view>每月盈亏</view>
  74. <view class="month">
  75. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  76. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  77. <view class="date-picker">
  78. {{date}}
  79. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  80. </view>
  81. </picker>
  82. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  83. </view>
  84. <view class="day">
  85. <text>日</text><text>一</text><text>二</text>
  86. <text>三</text><text>四</text><text>五</text><text>六</text>
  87. </view>
  88. <view class="days">
  89. <view wx:for='{{days}}'>
  90. <view wx:if='{{!item.income}}' style="color:#999;">
  91. {{item.day}}
  92. <text>{{item.income}}</text>
  93. </view>
  94. <navigator wx:else bind:tap="pushToday" data-match_id="{{id}}" data-record_id="{{item.record_id}}" data-user_id = "{{user_id}}">
  95. <view class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  96. {{item.day}}
  97. <text>{{item.income}}</text>
  98. </view>
  99. </navigator>
  100. </view>
  101. </view>
  102. <view class="calendar" >
  103. 点击具体日期可查看当日持仓
  104. </view>
  105. </view>
  106. <view class="title">今日反思</view>
  107. <view class="content" wx:if='{{datas.today_record.experience}}'>
  108. {{datas.today_record.experience?datas.today_record.experience:'无'}}
  109. </view>
  110. <view class="tab">
  111. <view data-id='0' class="{{page==0?'act':''}}">评论 {{comment_count}}</view>
  112. <view data-id='1' class="{{page==1?'act':''}}" >点赞 {{zan_count?zan_count:0}}</view>
  113. </view>
  114. <view class="content" wx:if='{{comment_list}}'>
  115. <view class="list" wx:for="{{comment_list}}">
  116. <image src="{{item.user_avatar}}" ></image>
  117. <view class="msg">
  118. <text class="_name">{{item.user_name}}</text>
  119. <view class="_content">{{item.content}}</view>
  120. <view class="answer" wx:if="{{item.children.length>0}}">
  121. <view wx:for="{{item.children}}" wx:for-item='i'>
  122. <text>{{i.user_name}}:</text>
  123. {{i.content}}</view>
  124. </view>
  125. <view class="addr">
  126. <text>{{item.ctime}}</text><text>来自{{item.location}}</text>
  127. <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>
  128. <image data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="answer" mode="widthFix" src="../../images/msg.png"></image>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <!-- <view class="content" wx:if='{{datas.today_record.wanzhu_comment}}'>
  134. <view class="title">顽主点评</view>
  135. {{datas.today_record.wanzhu_comment?datas.today_record.wanzhu_comment:'无'}}
  136. </view> -->
  137. </view>
  138. <view class="post">
  139. <image class="{{zan?'zan':''}}" bindtap="zan" mode="widthFix" src="../../images/zan.png"></image>
  140. <input confirm-type='send' bindconfirm='sendmsg' value="{{comment}}" placeholder-style="color:#999" maxlength="1000" bindinput="inputchange" focus='{{focus}}' type="text" placeholder="{{text}}"/>
  141. <button bindtap="sendmsg">提交</button>
  142. </view>