homepage.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <block wx:if='{{is_auth_user}}'>
  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.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.style}}' class="tag">{{item}}</label></view>
  20. </view>
  21. <view>
  22. <text>股龄</text>{{age}}年
  23. </view>
  24. </view>
  25. <view class="match">
  26. <view class="match_title">我的比赛</view>
  27. <view class="match_list" wx:for="{{matchlist}}" wx:key="item">
  28. <navigator hover-class="none" url='../matchdetail/matchdetail?user_id={{item.user_id}}&match_id={{item.match_id}}'>
  29. <view>
  30. <label class="match_name">{{item.match_info.name}}</label>
  31. <label class="match_group">{{item.match_group_info.name}}</label>
  32. </view>
  33. <view wx:if="{{item.match_info.match_status == 2}}">
  34. <view class="match_date">
  35. <label>比赛日期:{{item.match_info.start_time}} 至 {{item.match_info.end_time}} (未开始) </label>
  36. </view>
  37. <view class="match_day">
  38. <label>请在{{item.match_info.post_start_time}}收盘后提交作业</label>
  39. </view>
  40. </view>
  41. <view wx:else>
  42. <view class="match_money">
  43. <label>资产变化:{{item.today_record.init_fund}}w - {{item.today_record.today_fund}}w</label>
  44. </view>
  45. <view class="match_ratio">
  46. 总收益<label class="{{item.today_record.today_income[0]=='-' ?'down':'up'}}">{{item.today_record.total_income}}</label>
  47. 胜率<label class="{{item.today_record.today_income[0]=='-' ?'down':'up'}}">{{item.today_record.win_rate}}</label>
  48. 排名<label class="{{item.today_record.today_income[0]=='-' ?'down':'up'}}">{{item.today_record.rank}}</label>
  49. </view>
  50. </view>
  51. </navigator>
  52. </view>
  53. </view>