day.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <navigator class="part" wx:for='{{datas.list}}' url="../detail/detail?id={{item.id}}">
  2. <view class="item">
  3. <text class="tag">日期</text>{{item.stock_date}}
  4. </view>
  5. <view class="item">
  6. <text class="tag red">今日资产</text>{{item.today_fund}}w
  7. <text class="tag border">当日收益</text>
  8. <text class="{{item.today_income[0]=='-'?'down':'up'}}">{{item.today_income}}</text>
  9. <text class="tag border">总收益</text>
  10. <text class="{{item.total_income[0]=='-'?'down':'up'}}">{{item.total_income}}</text>
  11. </view>
  12. <view class="item">
  13. <text class="tag blue">持仓</text>
  14. <view class="list">
  15. <view wx:if='{{item.is_markt}}'>开超市</view>
  16. <block wx:if='{{!item.is_markt && item.today_stock.length>0}}'>
  17. <view wx:for='{{item.today_stock}}' wx:for-item='stock' >
  18. {{stock.name}}
  19. <text wx:if='{{stock.fund>0}}'>{{stock.fund}}万</text>
  20. </view>
  21. </block>
  22. <view wx:if='{{!item.is_markt && item.today_stock.length<=0 && item.auto_complete<=0}}'>空仓</view>
  23. <view wx:if='{{!item.is_markt && item.today_stock.length<=0 && item.auto_complete>0}}'>请假</view>
  24. </view>
  25. </view>
  26. <view>
  27. <text class="note">点击持股查看当日交割单</text>
  28. </view>
  29. </navigator>
  30. <view style="text-align:center;padding:100px 0;" wx:if='{{datas.list.length==0}}'>暂无数据</view>