comment.wxml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <!--pages/comment/comment.wxml-->
  2. <scroll-view scroll-y='{{true}}' bindscrolltolower='next'>
  3. <navigator hover-class="none" class="list" wx:for='{{list}}' bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}">
  4. <view class="name">{{item.username}} <text>选手</text> <view>TOP <text>{{item.group_rank}}</text></view></view>
  5. <view class="info">
  6. 日期: <view>{{item.stock_date}}(收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  7. </view>
  8. <view class="info">
  9. 资产: <view><label>{{item.init_fund}}w</label> (收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  10. </view>
  11. <view class="info">
  12. 持仓:
  13. <view wx:if='{{item.is_markt}}'>开超市</view>
  14. <view wx:elif='{{item.today_stock.length>0}}'>
  15. <block wx:for="{{item.today_stock}}" wx:for-item='i'>{{i.name}}({{i.fund}}w)</block>
  16. </view>
  17. <view wx:else>空仓</view>
  18. </view>
  19. <view class="comment">
  20. <text>顽主点评</text>
  21. {{item.wanzhu_comment}}
  22. </view>
  23. </navigator>
  24. <block wx:if='{{total >= 20}}'>
  25. <view class='loading' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  26. </block>
  27. <view wx:if="{{list.length<=0&&show}}" class="not_data">-暂无数据-</view>
  28. </scroll-view>