day.wxml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <scroll-view scroll-y='{{true}}' bindscrolltolower='next'>
  2. <view class="stock" wx:for='{{list}}'>
  3. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{user_id}}" >
  4. <view class="info">
  5. <view>{{item.stock_date}}(今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  6. </view>
  7. <view class="info">
  8. 资产: <view><label>{{item.today_fund}}w</label> (总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)</view>
  9. </view>
  10. <view class="info">持仓: <view>
  11. <block wx:for='{{item.today_stock}}' wx:for-item='i'>
  12. {{i.name}}({{i.fund}}w)
  13. </block>
  14. </view></view>
  15. <view class="info" wx:if='{{item.experience}}'>
  16. 今日反思:{{item.experience}}
  17. </view>
  18. <view class="info" wx:if='{{item.wanzhu_comment}}'>
  19. 顽主点评:{{item.wanzhu_comment}}
  20. </view>
  21. </navigator>
  22. <view class="imgs">
  23. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' bindtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  24. class="img" src="{{i}}"></image>
  25. </view>
  26. <view class="comment">
  27. <image mode="widthFix" src="../../images/msg.png"></image>
  28. <text>{{item.comments_count}}</text>
  29. <image mode="widthFix" src="../../images/zan.png"></image>
  30. <text>{{item.zans_count}}</text>
  31. </view>
  32. </view>
  33. <block wx:if='{{total >= 20}}'>
  34. <view class='loading' wx:if='{{followList.length < total}}'>上拉加载更多...</view>
  35. </block>
  36. <view wx:if="{{list.length<=0&&show}}" class="not_data">-暂无数据-</view>
  37. </scroll-view>