detail.wxml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="part top">
  2. <image mode="widthFix" src="../images/bank.png"></image>
  3. <view class="rank"> <text>{{datas.cur_rank?datas.cur_rank:''}}</text>当前排名 </view>
  4. <view class='label'>
  5. 日期 <text>{{datas.stock_date}}</text>
  6. </view>
  7. <view class='label'>
  8. 分组 <text>{{datas.match_group}}</text>
  9. </view>
  10. </view>
  11. <view class="info">
  12. <view> <text>{{datas.init_fund}}</text>初始资产 </view>
  13. <view> <text>{{datas.today_fund}}</text>今日资产 </view>
  14. <view> <text style="color:#3FB35B;">{{datas.today_income}}</text>当日收益 </view>
  15. <view> <text style="color:#FF5151;">{{datas.total_income}}</text>总收益 </view>
  16. </view>
  17. <view class="part">
  18. <text class="tag blue">昨日持股</text>
  19. <view class="list">
  20. <view wx:for='{{datas.yesterday_stock}}' wx:for-item='stock'>
  21. {{stock.name}} <text>{{stock.fund}}</text>
  22. </view>
  23. </view>
  24. <text class="tag blue">今日持股</text>
  25. <view class="list">
  26. <view wx:for='{{datas.today_stock}}' wx:for-item='stock'>
  27. {{stock.name}} <text>{{stock.fund}}</text>
  28. </view>
  29. </view>
  30. </view>