index.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--index.wxml-->
  2. <view wx:if="{{datas.notices.length>0}}" class="marquee_container"
  3. style="{{'--marqueeWidth--:'+-12*datas.notices.length+'em'}}">
  4. <view class="zd"></view>
  5. <image src="../images/tttz.png" mode="widthFix"></image>
  6. <view class="marquee_text">
  7. <navigator url="../intro/intro?id={{item.id}}" wx:for="{{datas.notices}}">{{item.name}}</navigator>
  8. </view>
  9. </view>
  10. <view class="part" wx:if='{{datas.match_name}}' style="margin-bottom:0;">
  11. <view class="title">
  12. {{datas.match_name}}
  13. <image src="../images/bank.png"></image>
  14. <view class="rank"> <text>{{datas.cur_rank?datas.cur_rank:' '}}</text>当前排名 </view>
  15. </view>
  16. </view>
  17. <view class="container" wx:if='{{datas.records.length>0}}'>
  18. <ec-canvas id="mychart" canvas-id="mychart-line" ec="{{ ec }}">
  19. </ec-canvas>
  20. </view>
  21. <navigator class="part part1" wx:for='{{datas.records}}' url="../detail/detail?id={{item.id}}">
  22. <view class="item">
  23. <text class="tag">日期</text>{{item.stock_date}}
  24. </view>
  25. <view class="item">
  26. <text class="tag red">今日资产</text>{{item.today_fund}}w
  27. <text class="tag border">当日收益</text>
  28. <text class="{{item.today_income[0]=='-'?'down':'up'}}">{{item.today_income?item.today_income:''}}</text>
  29. <text class="tag border">总收益</text><text class="{{item.total_income[0]=='-'?'down':'up'}}">{{item.total_income?item.total_income:''}}</text>
  30. </view>
  31. <view class="item">
  32. <text class="tag blue">持仓</text>
  33. <view class="list">
  34. <view wx:if='{{item.is_markt}}'>开超市</view>
  35. <block wx:if='{{!item.is_markt && item.today_stock.length>0}}'>
  36. <view wx:for='{{item.today_stock}}' wx:for-item='stock' >
  37. {{stock.name}} <text wx:if='{{stock.fund>0}}'>{{stock.fund}}万</text></view>
  38. </block>
  39. <view wx:if='{{!item.is_markt && item.today_stock.length<=0 && item.auto_complete<=0}}'>空仓</view>
  40. <view wx:if='{{!item.is_markt && item.today_stock.length<=0 && item.auto_complete>0}}'>请假</view>
  41. </view>
  42. </view>
  43. </navigator>
  44. <view style="text-align:center;padding:100px 0;" wx:if='{{datas.records.length==0}}'>暂无数据</view>