today.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 wx:if='{{datas.today_record.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 class="legend">
  52. <view>久盛电气 80w</view>
  53. <view>久盛电气 80w</view>
  54. <view>久盛电气 80w</view>
  55. </view> -->
  56. </view>
  57. <view class="imgs" wx:if='{{datas.today_record.today_stock_img.length>0}}'>
  58. <view class="title">交割单</view>
  59. <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}}'
  60. class="img" src="{{i}}"></image>
  61. </view>
  62. <view class="content" wx:if='{{datas.today_record.experience}}'>
  63. <view class="title">今日反思</view>
  64. {{datas.today_record.experience?datas.today_record.experience:'无'}}
  65. </view>
  66. <view class="tab">
  67. <view data-id='0' class="{{page==0?'act':''}}">评论 {{comment_count}}</view>
  68. <view data-id='1' class="{{page==1?'act':''}}" >点赞 {{zan_count?zan_count:0}}</view>
  69. </view>
  70. <view class="content" wx:if='{{comment_list}}'>
  71. <view class="list" wx:for="{{comment_list}}">
  72. <image src="{{item.user_avatar}}" ></image>
  73. <view class="msg">
  74. <text class="_name">{{item.user_name}}</text>
  75. <view class="_content">{{item.content}}</view>
  76. <view class="answer" wx:if="{{item.children.length>0}}">
  77. <view wx:for="{{item.children}}" wx:for-item='i'>
  78. <text>{{i.user_name}}:</text>
  79. {{i.content}}</view>
  80. </view>
  81. <view class="addr">
  82. <text>{{item.ctime}}</text><text>来自{{item.location}}</text>
  83. <image wx:if="{{user_id==datas.today_record.user_id||item.user_id==user_id}}" class="del" data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="delmsg" mode="widthFix" src="../../images/delete.png"></image>
  84. <image data-id='{{item.id}}' data-name='{{item.user_name}}' catchtap="answer" mode="widthFix" src="../../images/msg.png"></image>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- <view class="content" wx:if='{{datas.today_record.wanzhu_comment}}'>
  90. <view class="title">顽主点评</view>
  91. {{datas.today_record.wanzhu_comment?datas.today_record.wanzhu_comment:'无'}}
  92. </view> -->
  93. </view>
  94. <view class="post">
  95. <image class="{{zan?'zan':''}}" bindtap="zan" mode="widthFix" src="../../images/zan.png"></image>
  96. <input confirm-type='send' bindconfirm='sendmsg' value="{{comment}}" placeholder-style="color:#999" maxlength="1000" bindinput="inputchange" focus='{{focus}}' type="text" placeholder="{{text}}"/>
  97. <button bindtap="sendmsg">提交</button>
  98. </view>