detail.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <view class="part top">
  2. <image src="../images/bank.png"></image>
  3. <view class="rank"> <text>{{datas.group_rank?datas.group_rank:0}}</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}}w</text>初始资产 </view>
  13. <view> <text>{{datas.today_fund}}w</text>今日资产 </view>
  14. <view> <text class="{{datas.today_income[0]=='-'?'down':'up'}}">{{datas.today_income}}</text>当日收益 </view>
  15. <view> <text class="{{datas.total_income[0]=='-'?'down':'up'}}">{{datas.total_income}}</text>总收益 </view>
  16. </view>
  17. <view class="part">
  18. <text class="tag blue">今日持股</text>
  19. <view class="list">
  20. <view wx:if='{{datas.is_markt}}'>开超市</view>
  21. <block wx:if='{{!datas.is_markt && datas.today_stock.length>0}}'>
  22. <view wx:for='{{datas.today_stock}}' wx:for-item='stock' >
  23. {{stock.name}} <text wx:if='{{stock.fund>0}}'>{{stock.fund}}万</text></view>
  24. </block>
  25. <view style="width:100%;background:none;" wx:if='{{datas.today_stock_img.length>0}}'>
  26. <text wx:if='{{datas.today_stock_img.length>0}}'>点击查看完整交割单</text>
  27. <image style="width:100rpx;height:100rpx;margin-right:10rpx;" mode="scaleToFill" wx:for='{{datas.today_stock_img}}' wx:for-item='img'
  28. src='{{img}}' data-src="{{img}}" bindtap="prview"></image>
  29. </view>
  30. <view wx:if='{{!datas.is_markt && datas.today_stock.length<=0 && datas.auto_complete<=0}}'>空仓</view>
  31. <view wx:if='{{!datas.is_markt && datas.today_stock.length<=0 && datas.auto_complete>0}}'>请假</view>
  32. </view>
  33. <text class="tag blue">昨日持股</text>
  34. <view class="list">
  35. <view wx:if='{{datas.yesterday_is_markt}}'>开超市</view>
  36. <block wx:if='{{!datas.yesterday_is_markt && datas.yesterday_stock.length>0}}'>
  37. <view wx:for='{{datas.yesterday_stock}}' wx:for-item='stock' >
  38. {{stock.name}} <text wx:if='{{stock.fund>0}}'>{{stock.fund}}万</text></view>
  39. </block>
  40. <view style="width:100%;background:none;" wx:if='{{datas.yesterday_stock_img.length>0}}'>
  41. <text wx:if='{{datas.yesterday_stock_img.length>0}}'>点击查看完整交割单</text>
  42. <image style="width:100rpx;height:100rpx;margin-right:10rpx;" mode="scaleToFill" wx:for='{{datas.yesterday_stock_img}}' wx:for-item='img'
  43. src='{{img}}' data-src="{{img}}" bindtap="prview"></image>
  44. </view>
  45. <view wx:if='{{!datas.yesterday_is_markt && datas.yesterday_stock.length<=0 && datas.yesterday_auto_complete<=0}}'>空仓</view>
  46. <view wx:if='{{!datas.yesterday_is_markt && datas.yesterday_stock.length<=0 && datas.yesterday_auto_complete>0}}'>请假</view>
  47. </view>
  48. </view>