item.wxml 2.1 KB

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