homepage.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class="per_top">
  2. <view class="headbg"></view>
  3. <image src="{{datas.avatar}}" ></image>
  4. <view class="name">
  5. {{datas.username}}
  6. <view class="fans">
  7. <navigator url="../follow/follow?id={{user_id}}&type=2" style="display: inline-block;"><text>{{datas.fans}}</text>粉丝</navigator>
  8. <navigator url="../follow/follow?id={{user_id}}&type=1" style="display: inline-block;"><text style="margin-left: 20rpx;">{{datas.followers}}</text>关注</navigator>
  9. </view>
  10. </view>
  11. <view class="follow_black">
  12. <block wx:if='{{is_auth_user}}'>
  13. <view class="follow" style="width:140rpx;" wx:if='{{is_follow}}' data-action='cancel' bindtap="followPlayer">取消关注</view>
  14. <view class="follow" wx:else bindtap="followPlayer">+ 关注</view>
  15. <view class="lahei" wx:if='{{is_black}}' bindtap="cancelBlack">取消拉黑</view>
  16. <view class="lahei" wx:else bindtap="black">+ 拉黑</view>
  17. </block>
  18. <block wx:else>
  19. <navigator class="follow" url="../style/style" >编辑</navigator>
  20. <navigator class="lahei" url="../black/black" >黑名单</navigator>
  21. </block>
  22. </view>
  23. </view>
  24. <view class="intro">{{datas.intro}}</view>
  25. <view class="style">
  26. <view>Wo的风格</view>
  27. <view wx:if='{{datas.style.length>0}}' style="padding-bottom: 0;margin-top: 10rpx;">
  28. <view style="display: inline-block;width: 70%;vertical-align: top;"><label wx:for='{{datas.style}}' class="tag">{{item}}</label></view>
  29. </view>
  30. <view style="margin-top: 20rpx;">
  31. 股龄{{age}}年
  32. </view>
  33. </view>
  34. <view class="match">
  35. <view class="match_title">Wo的比赛</view>
  36. <view class="match_list" wx:for="{{matchlist}}" wx:key="item">
  37. <navigator hover-class="none" url='../matchdetail/matchdetail?user_id={{item.user_id}}&match_id={{item.match_id}}'>
  38. <view>
  39. <label class="match_name">{{item.match_info.name}}</label>
  40. <label class="match_group">{{item.match_group_info.name}}</label>
  41. </view>
  42. <view wx:if="{{item.match_info.match_status == 1}}">
  43. <view class="match_date">
  44. <label>比赛日期:{{item.match_info.start_time}} 至 {{item.match_info.end_time}} (未开始) </label>
  45. </view>
  46. <view class="match_day">
  47. <label>请在{{item.match_info.post_start_time}}收盘后提交作业</label>
  48. </view>
  49. </view>
  50. <view wx:else>
  51. <view class="match_money">
  52. <label>资产变化:{{item.today_record.init_fund}}w - {{item.today_record.today_fund}}w</label>
  53. </view>
  54. <view class="match_ratio">
  55. 总收益<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.total_income}}</label>
  56. 胜率<label class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.win_rate}}</label>
  57. 排名<label wx:if="{{item.today_record.stock_date==item.match_info.end_time}}" class="{{item.today_record.total_income[0]=='-' ?'down':'up'}}">{{item.today_record.group_rank}}</label>
  58. <label wx:else style="color: rgb(150, 150, 150);"> 未完赛</label>
  59. </view>
  60. </view>
  61. </navigator>
  62. </view>
  63. </view>