item.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <scroll-view scroll-y style="height:100%">
  2. <view class="title">
  3. <view class="title-button">
  4. <button type="default" size="mini" bindtap="postfollow">{{follow}}</button>
  5. </view>
  6. <view class="title-name">
  7. <text class="title-name-Big">{{object.Name}}</text>
  8. <!-- <text class="title-name-small">{{object.Withtitle}}</text> -->
  9. </view>
  10. <view class="tile-number">
  11. <!-- <text class="tile-number-Volume">{{object.va}}</text> -->
  12. <text class="tile-number-float" style="color:{{object.color}}">{{object.value}}</text>
  13. </view>
  14. </view>
  15. <view class="swiper-tab">
  16. <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">实际数据</view>
  17. <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">下周预测</view>
  18. </view>
  19. <view class="map">
  20. <!-- <view class="map-line">
  21. <text class="map-line-red"></text>
  22. <text class="map-line-redname">实际</text>
  23. <text class="map-line-blue"></text>
  24. <text class="map-line-bluename">预测</text>
  25. </view> -->
  26. <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:700rpx" bindchange="bindChange">
  27. <swiper-item catchtouchmove='catchTouchMove'>
  28. <view style="width:100%;height:100%">
  29. <ec-canvas id="mychart-dom-line-actual" canvas-id="mychart-line-actual" bind:init="echartInit" data-record="{{realchartData}}" tuData="{{ realchartData }}" ec="{{ ec }}"></ec-canvas>
  30. </view>
  31. </swiper-item>
  32. <swiper-item catchtouchmove='catchTouchMove'>
  33. <ec-canvas id="mychart-dom-line-under" canvas-id="mychart-line-under" bind:init="echartInitunder" data-record="{{nextchartData}}" tuData="{{ nextchartData }}" ec="{{ ec }}"></ec-canvas>
  34. </swiper-item>
  35. </swiper>
  36. </view>
  37. <view class="news">
  38. <text class="news-today">今日快讯</text>
  39. </view>
  40. <block wx:for-index="idx" wx:for='{{newsData}}' wx:key="key" >
  41. <view class='content-item' bindtap="onFold" data-id="{{item.newsId}}" >
  42. <text class='from' >{{item.newsFrom}}</text>
  43. <text class='name'>{{item.newsTitle}}</text>
  44. <text class='wawa'>{{item.newsMiniContent}}</text>
  45. <text class='time'>{{item.newsDate}}</text>
  46. </view>
  47. </block>
  48. </scroll-view>