homepage.wxml 2.8 KB

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