homepage.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <view class="per_top">
  2. <image src="{{datas.today_record.avatar}}" ></image>
  3. <view class="name">
  4. {{datas.today_record.username}}
  5. <view class="fans">
  6. <text>{{fans}}</text>粉丝
  7. <navigator url="../follow/follow" style="display: inline-block;"><text style="margin-left: 20rpx;">{{followers}}</text>关注</navigator>
  8. </view>
  9. </view>
  10. <block wx:if='{{type!=1}}'>
  11. <view class="follow" style="width:140rpx;" wx:if='{{is_follow}}' data-action='cancel' bindtap="followPlayer">取消关注</view>
  12. <view class="follow" wx:else bindtap="followPlayer">+ 关注</view>
  13. </block>
  14. <navigator class="follow" url="../style/style" wx:else>编辑</navigator>
  15. </view>
  16. <view class="style">
  17. <view wx:if='{{datas.today_record.style.length>0}}' style="padding-bottom: 0;">
  18. <text>风格</text>
  19. <view style="display: inline-block;width: 70%;vertical-align: top;"><label wx:for='{{datas.today_record.style}}' class="tag">{{item}}</label></view>
  20. </view>
  21. <view>
  22. <text>股龄</text>{{datas.stock_age}}年
  23. </view>
  24. <!-- <view>
  25. <text>城市</text>重庆
  26. </view> -->
  27. <view>
  28. <text>跟踪股票</text>
  29. <block wx:for="{{datas.stock_follow}}">{{item}}</block>
  30. </view>
  31. </view>
  32. <view class="style" style="margin: 0;">
  33. <view class="game">参赛 <picker>第49届顽主杯实盘大赛</picker></view>
  34. <view>
  35. <text>时间</text>{{datas.today_record.stock_date}}
  36. </view>
  37. <view>
  38. <text>排名</text>{{datas.today_record.group_rank}}({{datas.today_record.match_group_name}})
  39. </view>
  40. <view>
  41. <text>初始资产</text>{{datas.today_record.today_fund}}W
  42. </view>
  43. <view>
  44. <text>结束资产</text>{{datas.today_record.today_fund}}W( 收益<label class="{{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income}}</label>)
  45. </view>
  46. <view>
  47. <text>胜率</text>{{datas.today_record.win_rate}}(最大回撤 <label class="{{datas.today_record.badest_income[0]=='-' ?'down':'up'}}"> {{datas.today_record.badest_income}} </label>)
  48. </view>
  49. </view>
  50. <view class="content">
  51. <!-- <view class="title">收益曲线</view> -->
  52. <view class="container" wx:if='{{datas.records.length>0}}'>
  53. <ec-canvas ec="{{ ec }}">
  54. </ec-canvas>
  55. </view>
  56. </view>
  57. <view class="content">
  58. <view class="title">每月盈亏</view>
  59. <view class="month">
  60. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  61. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  62. <view class="date-picker">
  63. {{date}}
  64. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  65. </view>
  66. </picker>
  67. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  68. </view>
  69. <view class="day">
  70. <text>日</text><text>一</text><text>二</text>
  71. <text>三</text><text>四</text><text>五</text><text>六</text>
  72. </view>
  73. <view class="days">
  74. <view wx:for='{{days}}'>
  75. <view wx:if='{{!item.income}}' style="color:#999;">
  76. {{item.day}}
  77. <text>{{item.income}}</text>
  78. </view>
  79. <view wx:else class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  80. {{item.day}}
  81. <text>{{item.income}}</text>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="days_stock">
  87. <view class="title">每日持股
  88. </view>
  89. <view class="stock" wx:for='{{stockList}}' wx:if="{{index<3}}">
  90. <navigator hover-class="none">
  91. <view class="info">
  92. <view class="date">{{item.stock_date}}(今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  93. </view>
  94. <view class="info">
  95. 资产: <view><label>{{item.today_fund}}w</label> (总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  96. </view>
  97. <view class="info">
  98. 持仓:
  99. <view wx:if='{{item.is_markt}}'>开超市</view>
  100. <view wx:elif='{{item.today_stock.length>0}}'>
  101. <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
  102. </view>
  103. <view wx:else>空仓</view>
  104. </view>
  105. <view class="info" wx:if='{{item.experience}}'>
  106. 今日反思:{{item.experience}}
  107. </view>
  108. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  109. 顽主点评:{{item.wanzhu_comment}}
  110. </view>
  111. </navigator>
  112. <view class="imgs">
  113. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  114. class="img" src="{{i}}"></image>
  115. </view>
  116. <view class="comment">
  117. <image mode="widthFix" src="../../images/msg.png"></image>
  118. <text>{{item.comments_count}}</text>
  119. <image mode="widthFix" src="../../images/zan.png"></image>
  120. <text>{{item.zans_count}}</text>
  121. </view>
  122. </view>
  123. <view class="look_all">
  124. <navigator hover-class="none" url="../day/day?id={{id}}&player_id={{player_id}}">
  125. 查看全部
  126. </navigator>
  127. </view>
  128. </view>
  129. <view wx:if="type==1" class="content" style="margin-top: 100rpx;"><view bindtap="logout" class="logout">退出登录</view></view>