homepage.wxml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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>粉丝12
  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. <block wx:if="{{datas.today_record.group_rank}}">
  35. <view>
  36. <text>时间</text>{{datas.today_record.stock_date}}
  37. </view>
  38. <view>
  39. <text>排名</text>{{datas.today_record.group_rank}}({{datas.today_record.match_group_name}})
  40. </view>
  41. <view>
  42. <text>初始资产</text>{{datas.today_record.today_fund}}W
  43. </view>
  44. <view>
  45. <text>结束资产</text>{{datas.today_record.today_fund}}W( 收益<label class="{{datas.today_record.today_income[0]=='-' ?'down':'up'}}">{{datas.today_record.today_income}}</label>)
  46. </view>
  47. <view>
  48. <text>胜率</text>{{datas.today_record.win_rate}}(最大回撤 <label class="{{datas.today_record.badest_income[0]=='-' ?'down':'up'}}"> {{datas.today_record.badest_income}} </label>)
  49. </view>
  50. </block>
  51. </view>
  52. <view class="content">
  53. <!-- <view class="title">收益曲线</view> -->
  54. <view class="container" wx:if='{{datas.records.length>0}}'>
  55. <ec-canvas ec="{{ ec }}">
  56. </ec-canvas>
  57. </view>
  58. </view>
  59. <view class="content">
  60. <view class="title">每月盈亏</view>
  61. <view class="month">
  62. <image bindtap="prev" mode="heightFix" src="../../images/left.png"></image>
  63. <picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
  64. <view class="date-picker">
  65. {{date}}
  66. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  67. </view>
  68. </picker>
  69. <image bindtap="next" mode="heightFix" src="../../images/right.png"></image>
  70. </view>
  71. <view class="day">
  72. <text>日</text><text>一</text><text>二</text>
  73. <text>三</text><text>四</text><text>五</text><text>六</text>
  74. </view>
  75. <view class="days">
  76. <view wx:for='{{days}}'>
  77. <view wx:if='{{!item.income}}' style="color:#999;">
  78. {{item.day}}
  79. <text>{{item.income}}</text>
  80. </view>
  81. <view wx:else class="{{item.income[0]=='-' ? 'down1':'up1'}}">
  82. {{item.day}}
  83. <text>{{item.income}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="days_stock">
  89. <view class="title">每日持股
  90. </view>
  91. <view class="stock" wx:for='{{stockList}}' wx:if="{{index<3}}">
  92. <navigator hover-class="none">
  93. <view class="info">
  94. <view class="date">{{item.stock_date}}(今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  95. </view>
  96. <view class="info">
  97. 资产: <view><label>{{item.today_fund}}w</label> (总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  98. </view>
  99. <view class="info">
  100. 持仓:
  101. <view wx:if='{{item.is_markt}}'>开超市</view>
  102. <view wx:elif='{{item.today_stock.length>0}}'>
  103. <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
  104. </view>
  105. <view wx:else>空仓</view>
  106. </view>
  107. <view class="info" wx:if='{{item.experience}}'>
  108. 今日反思:{{item.experience}}
  109. </view>
  110. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  111. 顽主点评:{{item.wanzhu_comment}}
  112. </view>
  113. </navigator>
  114. <view class="imgs">
  115. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  116. class="img" src="{{i}}"></image>
  117. </view>
  118. <view class="comment">
  119. <image mode="widthFix" src="../../images/msg.png"></image>
  120. <text>{{item.comments_count}}</text>
  121. <image mode="widthFix" src="../../images/zan.png"></image>
  122. <text>{{item.zans_count}}</text>
  123. </view>
  124. </view>
  125. <view class="look_all" wx:if="{{stockList.length>0}}">
  126. <navigator hover-class="none" url="../day/day?id={{id}}&player_id={{player_id}}">
  127. 查看全部
  128. </navigator>
  129. </view>
  130. </view>
  131. <view wx:if="type==1" class="content" style="margin-top: 100rpx;"><view bindtap="logout" class="logout">退出登录</view></view>