homepage.wxml 4.8 KB

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