item.wxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="title">
  2. <view class="title-button">
  3. <button type="default" size="mini">{{button}}</button>
  4. </view>
  5. <view class="title-name">
  6. <text class="title-name-Big">{{object.title}}</text>
  7. <text class="title-name-small">{{object.Withtitle}}</text>
  8. </view>
  9. <view class="tile-number">
  10. <text class="tile-number-Volume">{{object.Volume}}</text>
  11. <text class="tile-number-float">{{object.float}}</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:400px" 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" tuData="{{ chartData }}" ec="{{ ec }}"></ec-canvas>
  29. </view>
  30. </swiper-item>
  31. <swiper-item catchtouchmove='catchTouchMove'>
  32. </swiper-item>
  33. </swiper>
  34. </view>