OutputLine.wxml 1.29 KB
<view class="bar-wrap">
  <view class="searchList">
  <block wx:for="{{opts.lineList}}"  wx:for-item="item" wx:key="index">
    <view class="search-text {{dataType==item.type?'active':''}}"  data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
    <view class="search-unit">单位:{{(opts.lineList.length == 2 && dataType==1)||opts.lineList.length == 3 && dataType==3?'元':'单'}}</view>
  </view>
    <view class="searchTime">
      <block wx:for="{{dimension}}"  wx:for-item="item" wx:key="index">
        <view class="time {{timePeriod==item.type?'active':''}}" data-condition="timePeriod" data-type="{{item.type}}" bindtap="selectCondition">{{item.text}}</view>
      </block>
    <view class="flex" bindtap="selectTime">
        <glsx-image  class="time-icon" src="output/output-time.png"></glsx-image>
        <view class="temporal" >{{startTime?startTime+'-'+endTime:'自定义'}}</view>
        <glsx-image  class="arrows" src="output/arrow.png"></glsx-image>
    </view>
    </view>
  <view class="container">
    <line-echart class="f2-chart" period="{{timePeriod}}" chartData="{{chartData}}" color="{{opts.lineColr}}" tickCount="{{opts.tickCount}}" keys="{{opts.keys}}"/>
  </view>
  <view class="remind">请左右滑动查阅更多信息</view>
</view>